Home  >  Article  >  Web Front-end  >  这种文字流动效果怎么实现的?_html/css_WEB-ITnose

这种文字流动效果怎么实现的?_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:36:391112browse

网址为: http://www.andthewinnerisnt.com/
这个页面的文字,当你调整页面大小时,如:你将浏览器拉小时,里面的文字会在你鼠标停止移动时“流动”一会,并自己调整大小,这个是怎么实现的?我自己写的页面使用百分比大小可以改变大小,但是不能实现上面的流动。(关于“流动”也许我用词不准确,可以打开页面看看)
我看到这个页面使用了一些三方插件,jquery、modernizr等,我是新手,求告诉具体怎么实现的,最好有小示例。
谢谢


回复讨论(解决方案)

就是css3动画,一个过渡效果:
http://www.w3school.com.cn/tiy/t.asp?f=css3_transition2
在加上font-size的过渡效果就行了。

就是css3动画,一个过渡效果:
http://www.w3school.com.cn/tiy/t.asp?f=css3_transition2
在加上font-size的过渡效果就行了。


需要配合媒体查询或者百分比才能有这个效果吗?没有媒体查询或者百分比,元素大小也不会变啊?谢谢你的回答
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn