1. transition 过渡

-webkit-transition: all .25s ease|linear|ease-in|ease-out|ease-in-out;-moz-transition: all .25s ease|linear|ease-in|ease-out|ease-in-out;-ms-transition: all .25s ease|linear|ease-in|ease-out|ease-in-out;-o-transition: all .25s ease|linear|ease-in|ease-out|ease-in-out;transition: all .25s ease|linear|ease-in|ease-out|ease-in-out;

ease: 默认值,从开始到中止,由快到慢,逐渐变慢。

linear: 元素从开始到中止,速度匀速。

ease-in : 元素越来越快,呈加速状态,这种效果称为渐显效果。

ease-out: 元素越来越慢,呈减速状态,这种效果称为渐隐效果。

ease-in-out: 元素先加速再减速,这种效果称为渐显渐隐效果。

2. transiform    3D/2D转换

2.1   旋转

沿Y轴翻转180°,其内容显示为“反面”。

  transform:rotateY(180deg);-ms-transform:rotateY(180deg); /* Internet Explorer */-moz-transform:rotateY(180deg); /* Firefox */-webkit-transform:rotateY(180deg); /* Safari 和 Chrome */-o-transform:rotateY(180deg); /* Opera */

2.2   翻转

沿Y轴翻转360°,其内容是“正面”。(正负号均可)。

.newsM .look a:hover img{-webkit-transition: all 3s ;-moz-transition: all 3s ;-ms-transition: all 3s ;-o-transition: all 3s ;transition: all 3s ;-webkit-transform: rotateY(-360deg);-moz-transform: rotateY(-360deg);-ms-transform: rotateY(-360deg);-o-transform: rotateY(-360deg);transform: rotateY(-360deg);
}

2.3   放大

放大1.4倍:
.sec5_m_lists ul li a{overflow:hidden;}
.sec5_m_lists ul li:hover a img{width: 100%;-webkit-transform: scale(1.4);-moz-transform: scale(1.4);-ms-transform: scale(1.4);-o-transform: scale(1.4);transform: scale(1.4);
}

3.animate   动画

语法:

animation: name duration timing-function delay iteration-count direction fill-mode play-state;

在css样式中,先给元素添加时间,如元素div;    再其后写动画兼容。

如动画theanimation

元素:

div{
animation:theanimation 3s  alternate;-webkit-animation:theanimation 3s  alternate ;-moz-animation:theanimation 3s  alternate ;-o-animation:theanimation 3s  alternate ;-ms-animation:theanimation 3s  alternate ;
}

兼容:

// 动画
@keyframes theanimation{0% {top:0;left:50%;}100% {top:50%;left:50%;}
}
@-webkit-keyframes theanimation{0% {top:0;left:50%;}100% {top:50%;left:50%;}
}
@-moz-keyframes theanimation{0% {top:0;left:50%;}100% {top:50%;left:50%;}
}
@-o-keyframes theanimation{0% {top:0;left:50%;}100% {top:50%;left:50%;}
}
@-ms-keyframes theanimation{0% {top:0;left:50%;}100% {top:50%;left:50%;}
}

关于动画,更详细内容,请看:https://blog.csdn.net/weixin_42220533/article/details/89476267

transform 、transition、animate动画相关推荐

  1. css3-12 transition+css或transform实现过渡动画

    css3-12 transition+css或transform实现过渡动画 一.总结 一句话总结:首先要设置hover后的效果,然后在transition里面指定执行哪些样式和执行时间为多长. 1. ...

  2. React-Native中Animate动画使用方法汇总整理(六)之缩放的实现

    React-Native中Animate动画使用方法汇总整理(六)之缩放的实现 写作时间:2021/9/24 React-Native版本:0.63.2 目标平台:iOS(安卓平台尚未检测) 整理的进 ...

  3. html5鱼游动动画,C3 animation transform鱼游动动画特效

    C3 animation transform鱼游动动画特效 代码片段: .fishbox{ width: 200px; height: 200px; /*background-color: rgba( ...

  4. animate动画插件的简单运用

    animate动画插件的简单运用 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 开发工 ...

  5. animate动画函数的封装方法

    废话就不多说马上就开始讲解 1,获取样式 首先这里获取的不是行内样式,而是非行内样式,具体可以通过两个属性去获取(为了兼容), 第一个属性是 currentStyle 这个属性是IE的私有属性, 用法 ...

  6. Vue 中使用Animate动画

    1.安装 npm install animate.css --save 2.main.js中引入 import animated from 'animate.css' Vue.use(animated ...

  7. React-Native中Animate动画使用方法汇总整理(四)之timing利用easing实现动画的灵活变换

    React-Native中Animate动画使用方法汇总整理(四)之timing利用easing实现动画的灵活变换 写作时间:2021/9/23 React-Native版本:0.63.2 目标平台: ...

  8. jQuery animate动画效果

    jQuery animate动画效果 1.animate动画效果 2.animate回调函数 3.参数为数学表达式形式 4.滑动选项卡 1.animate动画效果 <!DOCTYPE html& ...

  9. React-Native中Animate动画使用方法汇总整理(一)之简单动画的实现

    React-Native中Animate动画使用方法汇总整理(一)之简单动画的实现 写作时间:2021/9/23 React-Native版本:0.63.2 目标平台:iOS(安卓平台尚未检测) RN ...

最新文章

  1. app、H5、safari、appstore应用主页评分页之间拉起调用、打开手机某些系统功能、app打开文档
  2. 这么多年来,我算想明白了!
  3. [C#] - 从 HTML 代码中 转换 / 提取 可读文字(PlainText)的方法
  4. 对Extjs中store的多种操作
  5. OpenCV相位校正phase corr的实例(附完整代码)
  6. C++相对路径下新建文件夹
  7. 计算机excel素材,excel操作练习题素材.doc
  8. 音频特效生成与算法 2
  9. PDF编辑方法,怎么在PDF中添加图片
  10. 好看的原创弹窗公告代码分享
  11. 光纤交换机 序列号_cisco查看光模块型号序列号命令
  12. 问题 K: 到底有多少个小和尚?
  13. 攻防世界入门 web 十二题
  14. QtDesigner视频手把手教程制作一个弹性,自适应大小的页面布局
  15. 2022年下半年软件设计师考试下午真题(专业解析+参考答案)
  16. TinyXML2 学习
  17. HDU 5514 Frogs 容斥
  18. 前端切图案例课程一则-姜威-专题视频课程
  19. chrom提示某个网站或应用发生了数据泄露导致您的密码外泄, 要怎么操作? chrom是怎么检测你使用的密码被泄露?
  20. 接口自动化测试怎么做?该怎么学习

热门文章

  1. android 自定义空白,小米手机自定义空白卡模拟加密卡门禁卡教程
  2. Easy EDA #学习笔记07# | Arduino 单键长按开关机控制电路 、剩余电量%检测电路
  3. JS点击事件---点击切换图片
  4. JVM 由哪些部分组成?
  5. Java基础个人学习整理
  6. VIM:如何永久显示行号?
  7. JS获取url参数 返回一个对象
  8. 1069 微博转发抽奖(附详细注释,逻辑分析)
  9. mysql mapper配置模糊查询_Mybatis各种模糊查询
  10. 965七年我失去了什么?得到了什么?