喜的朋友是任何人知道如何使用CSS立方贝塞尔在HTML页面如何使用CSS过渡
我已经试过易于有效here
它无法正常工作。当页面加载时,帮助我缓解对div的影响。
这是我的CSS代码:
.container{width:100%;}
.Innerdiv{width:50%;-webkit-transition: all 1s cubic-bezier(.42, 0, 1, 1);
-moz-transition: all 1s cubic-bezier(.42, 0, 1, 1); padding:30px;}
HTML是这里
<div class="container">
<div class="Innerdiv">
<h1>
What is Lorem Ipsum?
</h1>
<p>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
</p>
</div>
</div>
像这样:http://jsfiddle.net/YvR3L/过渡是让动画。但你需要改变它以动画形式..就像我用':hover'做的那样 –
@Bondye如何在页面加载时轻松实现效果 –