- 日志
- 好友
- 卖家信用
- 买家信用
- 注册时间
- 2008-11-17
- 在线时间
- 小时
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册账号
x
- <div class="container">
- <div class="row">
- <div class="col-lg-12">
- <div class="jumbotron">
- <h1><span>Hello</span> <span>World</span></h1>
- <p>This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.</p>
- <p><a class="btn btn-primary btn-lg" role="button">Learn more</a></p>
- </div>
- </div>
- </div>
- </div>
复制代码 - <script>
- $(function() {
- $('span').hide();
- $('p').hide();
- animate_show('span:eq(0)', 'slideInLeft');
- animate_delay('span:eq(0)', 'span:eq(1)', 'slideInRight');
- animate_delay('span:eq(1)', 'p:eq(0)', 'fadeInUp');
- animate_delay('p:eq(0)', 'p:eq(1)', 'rotateIn');
- /**
- * 使用一个效果来显示一个元素
- * @param {string} element 元素
- * @param {string} animate animate.css的效果
- * @return {void}
- */
- function animate_show(element, animate) {
- $(element).show().addClass('animated ' + animate);
- }
- /**
- * 顺序显示第二个元素的效果
- * @param {string} element1 等待结束的元素
- * @param {string} element2 接下来要显示的元素
- * @param {string} animate animate.css的效果
- * @return {void}
- */
- function animate_delay(element1, element2, animate) {
- $(element1).one('webkitAnimationEnd mozAnimationEnd oAnimationEnd animationEnd', function() {
- animate_show(element2, animate);
- });
- }
- });
- </script>
复制代码
|
评分
-
查看全部评分
|