唱片自动旋转的html5代码,纯CSS实现旋转的唱片

这篇博客介绍了如何使用HTML5和CSS实现唱片自动旋转的效果。通过定义关键帧动画`@keyframes`,设置不同阶段的旋转角度,结合CSS的`transform: rotate()`属性,实现了唱片从0度到360度的平滑旋转。同时,文中还提供了暂停和播放旋转状态的样式变化。
摘要由CSDN通过智能技术生成

#s_fm_pic_img {

width:119px;

height:119px;

background: url("./fmsprite_35b05295.png") no-repeat -279px 0;

border-radius: 50%;

animation-play-state: running;

}

.img{-moz-animation:rotate 10s linear infinite;-moz-animation-play-state:paused;-ms-animation:rotate 10s linear infinite;-ms-animation-play-state:paused;animation:rotate 10s linear infinite;animation-play-state:paused;border-radius:50%;-moz-border-radius:50%;-webkit-border-radius:50%;width:119px;height:119px;width:121px \9;height:121px \9;*width:121px;*height:121px;display:inline-block;background:url('./fmsprite_35b05295.png') no-repeat -280px 0;_background:url('./fmsprite_le_5d5804ad.png') no-repeat -280px 0;background:url('./fmsprite_35b05295.png') no-repeat -279px 0 \0;*background:url('./fmsprite_35b05295.png') no-repeat -279px 0}

.fm-disk-animation{-webkit-animation:rotate

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值