首页 > 其他 > 详细

animation transition transform

时间:2019-12-24 15:01:25      阅读:81      评论:0      收藏:0      [点我收藏+]

animation:动画名称 花费时间 运动曲线 何时开始 播放次数 是否反方向

div{width:100px;height:100px;background:red;animation:move 2s;}
@keyframes move{50%{height:200px;transform:scale(1.2);background:black;}}

transition

div{width:100px;height:100px;background:red;transition:height 2s;}
div:hover{height:300px;}

transform

transform:translate(-50%,-50%); // 位移
transform:scale(1.3); // 缩放1.3倍
transform:skew(30deg,20deg); //倾斜x轴30°,y轴20°
transform:rotate(30deg); //旋转30°
transform-origin:left top; //变换中心点为左上角

animation transition transform

原文:https://www.cnblogs.com/menghu1994/p/12091260.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!