首页 > 移动平台 > 详细

css3 移动端旋转动画暂停

时间:2018-05-08 18:28:47      阅读:362      评论:0      收藏:0      [点我收藏+]

 音乐播放图片旋转动画 ios不支持暂停: animation-play-state: paused;

@-webkit-keyframes rotate{
    100% {
           transform: rotate(1turn);
        }
}
.img-wrapper{
    width: 200px;    
    height: 200px;
    margin: 50px auto 0;
    overflow: hidden;
    border-radius: 100px;
}
.animation-start{
    animation: rotate 5s linear infinite;
}
.suspended{
    animation-play-state: paused;
}
.img-wrapper img{
    width: 100%;
    border-radius: 100px;
}
.btn{
                width: 100%;
                height: 30px;
                box-sizing: border-box;
                text-align: center;
                margin-top: 20px;
                line-height: 30px;
                bottom: 100px;
                border: 1px solid #ccc;
            }

 

css3 移动端旋转动画暂停

原文:https://www.cnblogs.com/lvshaonan/p/9009891.html

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