您好,登录后才能下订单哦!
这篇文章给大家分享的是有关css3技术的hover动画效果有哪些的内容。小编觉得挺实用的,因此分享给大家做个参考,一起跟随小编过来看看吧。
hover动画,简言之就是鼠标移上去触发的动画,就是触发了鼠标的hover事件时能看到的动画!
1.简单动画
html
<span class="ech-big">big</span><span class="ech-small">small</span>
css
.ech-big,.ech-small { transition: all .4s;
2形状变化
html
<span class="ech-skew-l">skew-l</span><span class="ech-skew-r">skew-r</span><span class="ech-skew-l-t">skew-l-t</span><span class="ech-skew-r-t">skew-r-t</span><span class="ech-skew-l-b">skew-l-b</span><span class="ech-skew-r-b">skew-r-b</span>
css
.ech-skew-l, .ech-skew-r, .ech-skew-l-t, .ech-skew-r-b, .ech-skew-l-b, .ech-skew-r-t{ transition: all .4s;
3旋转角度变化
html
<span class="ech-grow-rotate-l">grow-rotate-l</span><span class="ech-grow-rotate-r">grow-rotate-r</span><span class="ech-rotate5">rotate5</span><span class="ech-rotate15">rotate15</span><span class="ech-rotate30">rotate30</span><span class="ech-rotate60">rotate60</span><span class="ech-rotate90">rotate90</span><span class="ech-rotate180">rotate180</span><span class="ech-rotate360">rotate360</span><span class="ech-rotate-5">rotate-5</span><span class="ech-rotate-15">rotate-15</span><span class="ech-rotate-30">rotate-30</span><span class="ech-rotate-60">rotate-60</span><span class="ech-rotate-90">rotate-90</span><span class="ech-rotate-180">rotate-180</span>
css
.ech-grow-rotate-l,.ech-grow-rotate-r, .ech-rotate5, .ech-rotate15, .ech-rotate30, .ech-rotate60, .ech-rotate90, .ech-rotate180, .ech-rotate360, .ech-rotate-5,.ech-rotate-15, .ech-rotate-30, .ech-rotate-60, .ech-rotate-90, .ech-rotate-180{transition: all .4s;
4位移变化
html
<span class="ech-t">up</span>
css
.ech-t,.ech-bottom,.ech-top,.ech-right{ transition: all .4s;
5边框变化
html
<span class="ech-border">border</span>
css
.ech-border,.ech-border-in{ transition: all .4s;
6阴影变化
html
<span class="ech-shadow">shadow</span>
css
.ech-shadow,.ech-shadow-in,.ech-shadow-write,.ech-shadow-big{ transition: all .4s;
7透明度变化
html
<span class="ech-fade-out">fade-out</span>
css
.ech-fade-out,.ech-fade-in{ transition: all .4s;
8圆角变化
html
<span class="ech-rectangle">rectangle</span><span class="ech-radius">radius</span>
css
.ech-radius,.ech-rectangle{ transition: all .4s;
感谢各位的阅读!关于“css3技术的hover动画效果有哪些”这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,让大家可以学到更多知识,如果觉得文章不错,可以把它分享出去让更多的人看到吧!
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。