美文网首页
动画 移动

动画 移动

作者: 白s圣诞节 | 来源:发表于2018-12-10 14:21 被阅读0次

css3过渡动画:

transition:width 500ms(执行500毫秒) ease,height 500ms ease 500ms(延迟),background-color 500ms ease 1s
变成圆角
transition:border-radius 500ms ease;
所有的一起:
transition:all 500ms ease
div:nth-child(1){
transition:all 1s }

移动

.box{
....
position:
}
.box .pic_info{
width:
height:
background-color:
position:absolute;
left:
top:
transition:all 500ms ease;
}
.box hover .pic_info{
top:
}

变形:

位移:
transform:translate(50px,50px);
旋转:
transform:rotate(30deg)
transform:rotate()

相关文章

网友评论

      本文标题:动画 移动

      本文链接:https://www.haomeiwen.com/subject/tmxqtqtx.html