1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > css动画--使用图标进行顺时针与逆时针转圈

css动画--使用图标进行顺时针与逆时针转圈

时间:2020-02-24 21:53:54

相关推荐

css动画--使用图标进行顺时针与逆时针转圈

css动画–使用图标进行顺时针与逆时针转圈

说明:上面顺时针,下面图逆时针

代码如下:

<template><div style="width:1300px;height: 600px;border: 1px solid red;margin:0 auto"><div class="circel"></div><div class="unCircel"></div></div></template><script>export default {name: "CirCelAnimation"}</script><style scoped lang="stylus">.circel{width 100px;height 100px;background url(../../assets/images/circel.png) no-repeatbackground-size coveranimation goCircel 2s linear infinite/* position absolute*/}.unCircel{width 100px;height 100px;background url(../../assets/images/circel.png) no-repeatbackground-size coveranimation unCircel 2s linear infinite/*position absolute*/}@keyframes goCircel{0%{transform rotate(0deg)}100%{transform rotate(360deg)}}@keyframes unCircel{0%{transform rotate(360deg)}100%{transform rotate(0deg)}}</style>

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。