大佬教程收集整理的这篇文章主要介绍了html – 背景图像上的CSS3过渡,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
#footerLogo { BACkground: url('ster.png'),-moz-transition: -moz-transform 1s,transition: transform 1s,-o-transition: -o-transform 1s,-webkit-transition: -webkit-transform 1s; BACkground-position: #outlinedtotHeleft; } #footerLogo:hover { BACkground: transform: rotate(360deg); -o-transform: rotate(360deg); -moz-transform: rotate(360deg); -webkit-transform: rotate(360deg); }
我希望这是可能的!我知道JS(jQuery)很容易实现:
$('#something').hover(function(){morecodeherE});
…但我想知道是否有可能只有CSS(3)
HTML:
<div id="footerLogo"> <img src="carenza.png"/> </div>
HTML
<div id="planet"> </div>
CSS
#planet { width:200px; height:200px; BACkground: transparent url(http://cdn3.iconfinder.com/data/icons/nx11/Internet%20-%20Real.png) no-repeat center center; } #planet { -webkit-animation-name: rotate; -webkit-animation-duration:2s; -webkit-animation-iteration-count:infinite; -webkit-animation-timing-function:linear; -moz-animation-name: rotate; -moz-animation-duration:2s; -moz-animation-iteration-count:infinite; -moz-animation-timing-function:linear; } @-webkit-keyframes rotate { from {-webkit-transform:rotate(0deg);} to { -webkit-transform:rotate(360deg);} } @-moz-keyframes rotate { from {-moz-transform:rotate(0deg);} to { -moz-transform:rotate(360deg);} }
以上是大佬教程为你收集整理的html – 背景图像上的CSS3过渡全部内容,希望文章能够帮你解决html – 背景图像上的CSS3过渡所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。