旋转圆链接动画
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了旋转圆链接动画相关的知识,希望对你有一定的参考价值。
a link with the class becomes circle animated rotating once and fading in
.sp-circle-link { text-align: center; line-height: 100px; width: 100px; height: 100px; background: #fff; color: #3f1616; font-size: 25px; -moz-border-radius: 50%; -webkit-border-radius: 50%; -o-border-radius: 50%; border-radius: 50%; -webkit-animation: fadeInRotate 1s linear 16s backwards; -moz-animation: fadeInRotate 1s linear 16s backwards; -ms-animation: fadeInRotate 1s linear 16s backwards; animation: fadeInRotate 1s linear 16s backwards; -webkit-transform: scale(1); -moz-transform: scale(1) ; -o-transform: scale(1); -ms-transform: scale(1); transform: scale(1); } .sp-circle-link:hover { background: #85373b; color: #fff; } @-webkit-keyframes fadeInRotate{ 0%{ opacity: 0; -webkit-transform: scale(0) rotate(360deg); } 100%{ opacity: 1; -webkit-transform: scale(1) rotate(0deg); } } @-moz-keyframes fadeInRotate{ 0%{ opacity: 0; -moz-transform: scale(0) rotate(360deg); } 100%{ opacity: 1; -moz-transform: scale(1) rotate(0deg); } } @keyframes fadeInRotate{ 0%{ opacity: 0; transform: scale(0) rotate(360deg); } 100%{ opacity: 1; transform: scale(1) rotate(0deg); } }
以上是关于旋转圆链接动画的主要内容,如果未能解决你的问题,请参考以下文章