您的位置:首页 > Web前端 > CSS

H5简单动画的学习仅仅css操作

2017-06-08 23:26 411 查看
1.translate基础动画

.box{
width: 100px;
height: 100px;
background-color: green;
transition: 2s;
}




动画持续2s类似Android 中duraction

鼠标移动上去改变实现动画:

body:hover .box{
margin-left: 100px;
background-color: yellow;
}

2.2d动画
移动距离:

.box:hover div{
transform: translateX(200px);
transform: translateY(200px)
}

3.3d动画旋转
transform: rotate3d(1,0,0,180deg);
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: