Trigger transitions without javascript in CSS on page load

拥有回忆 提交于 2019-12-07 08:58:38

问题


I would like to increase the width of a bar with a CSS transition but don't like to trigger it with a hover event ( like http://jsfiddle.net/TFHn9/ )

I just would like to have an instant animation (when the page loads) - without Javascript of course.

Any chance to achieve that?


回答1:


Css3 keyframes: http://coding.smashingmagazine.com/2011/05/17/an-introduction-to-css3-keyframe-animations/



来源:https://stackoverflow.com/questions/10995039/trigger-transitions-without-javascript-in-css-on-page-load

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!