css3 移动端旋转动画暂停

时间:2018-05-08 18:28:47   收藏:0   阅读:364

 音乐播放图片旋转动画 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;
            }

 

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

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!