100字范文,内容丰富有趣,生活中的好帮手!
100字范文 > 使用CSS3过渡transition效果实例介绍

使用CSS3过渡transition效果实例介绍

时间:2021-05-18 19:33:46

相关推荐

使用CSS3过渡transition效果实例介绍

web前端|css教程

CSS3,transition

web前端-css教程

这篇文章主要为大家详细介绍了CSS3过渡transition效果实例,具有一定的参考价值,感兴趣的小伙伴们可以参考一下

灰鸽子纯净版源码,vscode自动补齐,ubuntu创建一个空文件,文件导入tomcat,sqlite的优点是,故事相册插件,微信 手机前端开发框架,python爬虫崔庆才,php百度搜索,华蓥seo推广,wap网站界面,电脑网页滚轮放大缩小,微邀请模板,dz程序安装lzw

本文实例为大家分享了CSS3过渡transition效果,供大家参考,具体内容如下

微信网页版协议源码,vscode如何编写上位机,ubuntu换密码,cas在tomcat部署,登陆爬虫,php有哪些职位,杭州专业的抖音seo价格,门户网站php源码lzw

效果图:

php ajax实例源码,vscode欢迎页怎么开,ubuntu 教程视频,tomcat启动是那个,墙上黑色爬虫,php显示ip地址,保定seo整站优化排名电话,装饰装修施工企业网站源码,人民网源码模板lzw

实现代码:

transition.html

Transition#block { width: 400px; height: 300px; background-color: #69C; margin: 0 auto; transition: background-color 1s, width 0.5s ease-out; -webkit-transition: background-color 1s, width 0.5s ease-out; } #block:hover { background-color: red; width: 600px; }

transitionDemo.html

TransitionDemo#wrapper { width: 1024px; margin: 0 auto; } .progress-bar-bg { width: 960px; /*background-color: aliceblue;*/ background-color: lightyellow; } .progress-bar { height: 40px; width: 40px; background-color: #69C; border: 1px solid lightyellow; border-radius: 5px; } .progress-bar:hover { width: 960px; } #bar1 { -webkit-transition: width 5s linear; /*-webkit-transition: width 5s steps(6, end);*/ /*-webkit-transition: width 5s step-start;*/ } #bar2 { -webkit-transition: width 5s ease; } #bar3 { -webkit-transition: width 5s ease-in; } #bar4 { -webkit-transition: width 5s ease-out; } #bar5 { -webkit-transition: width 5s ease-in-out; }

linear

ease

ease-in

ease-out

ease-in-out

结果分析:鼠标移动上去后,会发生过渡动画。

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