发展简史jQuery时间轴特效。这是一款鼠标滚动到一定的高度动画显示企业发展时间轴特效。效果图如下:

在线预览   源码下载

实现的代码。

html代码:

<div class="wrapper">

        <div class="history">
<div class="start-history">
<p class="cc_history">发展简史</p>
<p class="next_history">PHYLOGENY</p>
<div class="history_left">
<p class="history_L year2006">
<span class="history_2006_span">2006</span>
<b class="history_2006_b">
<span class="history_l_month">10<br />月</span>
<span class="history_l_text">开展基于互联网的视频服务业务<br />CC视频联盟正式公测</span>
</b>
</p>
<p class="history_L yearalmost">
<span class="history_2006_span">2008</span>
<b class="history_2006_b">
<span class="history_l_month">10<br />月</span>
<span class="history_l_text">收购康盛创想<br />旗下视频建站系supev</span>
</b>
</p>
<p class="history_L year2009">
<span class="history_2006_span">2009</span>
<b class="history_2006_b">
<span class="history_l_month">04<br />月</span>
<span class="history_l_text">推出CMedia视频广告平台,<br />对旗下视频媒体进行整合营销</span>
</b>
</p>
<p class="history_L yearalmost">
<span class="history_2006_span blue">2010</span>
<b class="history_2006_b blue">
<span class="history_l_month">01<br />月</span>
<span class="history_l_text">CC视频获得广电总局颁发的<br />音视频许可证</span>
</b>
</p>
<p class="history_L yearalmost">
<span class="history_2006_span blue">2011</span>
<b class="history_2006_b blue">
<span class="history_l_month">08<br />月</span>
<span class="history_l_text smalltext">CC视频获得由迪士尼旗下思伟投资、IDG、江苏高科技投资集团的<br />B轮融资2000万美元</span>
</b>
</p>
<p class="history_L year2011">
<span class="history_2006_span blue">2011</span>
<b class="history_2006_b blue">
<span class="history_l_month">09<br />月</span>
<span class="history_l_text">CC视频荣获“2011年<br />中国云计算最佳应用实践奖”</span>
</b>
</p>
<p class="history_L year2011">
<span class="history_2006_span blue">2012</span>
<b class="history_2006_b blue">
<span class="history_l_month">03<br />月</span>
<span class="history_l_text">CC视频成功举办2012中国<br />远程教育技术创新与应用论坛</span>
</b>
</p>
<p class="history_L year2011">
<span class="history_2006_span yellow">2012</span>
<b class="history_2006_b yellow">
<span class="history_l_month">09<br />月</span>
<span class="history_l_text">CC视频发布视频云<br />开放战略及API2.0</span>
</b>
</p>
<p class="history_L year2013">
<span class="history_2006_span yellow">2013</span>
<b class="history_2006_b yellow">
<span class="history_l_month">04<br />月</span>
<span class="history_l_text smalltxt">CC视频成功举办2013(第二届)中国<br />远程教育技术创新与应用论坛</span>
</b>
</p>
<p class="history_L yearalmost">
<span class="history_2006_span yellow">2015</span>
<b class="history_2006_b yellow">
<span class="history_l_month">01<br />月</span>
<span class="history_l_text full">视频直播CC Live发布</span>
</b>
</p>
</div>
<div class="history-img">
<img class="history_img" src="data:images/history.png" alt="">
</div>
<div class="history_right">
<p class="history_R history_r_2005">
<span class="history_2005_span">2005</span>
<b class="history_2005_b">
<span class="history_r_month">04<br />月</span>
<span class="history_r_text">CC视频成立<br />并入住北京大学留学生创业园</span>
</b>
</p>
<p class="history_R yearalmostr">
<span class="history_2005_span">2007</span>
<b class="history_2005_b">
<span class="history_r_month">12<br />月</span>
<span class="history_r_text">获得国际著名投资商<br />IDG VC投资 </span>
</b>
</p>
<p class="history_R yearalmostr">
<span class="history_2005_span">2009</span>
<b class="history_2005_b">
<span class="history_r_month">01<br />月</span>
<span class="history_r_text">整合Pocle和SupeV后<br />推出CCVMS视频建站系统</span>
</b>
</p>
<p class="history_R yearalmostr">
<span class="history_2005_span">2009</span>
<b class="history_2005_b">
<span class="history_r_month">12<br />月</span>
<span class="history_r_text">CC视频成为Google在大陆地<br />区第一家视频广告合作伙伴</span>
</b>
</p>
<p class="history_R yearalmostr">
<span class="history_2005_span blue">2010</span>
<b class="history_2005_b blue_R">
<span class="history_r_month">10<br />月</span>
<span class="history_r_text">CC视频推出基于视频云计算的<br />第三方服务平台</span>
</b>
</p>
<p class="history_R yearalmostr">
<span class="history_2005_span blue">2011</span>
<b class="history_2005_b blue_R">
<span class="history_r_month">08<br />月</span>
<span class="history_r_text">CC视频参展2011年(第十届)<br />中国互联网大会</span>
</b>
</p>
<p class="history_R year211">
<span class="history_2005_span blue">2011</span>
<b class="history_2005_b blue_R">
<span class="history_r_month">11<br />月</span>
<span class="history_r_text">CC视频荣获<br />“最佳云服务模式奖”</span>
</b>
</p>
<p class="history_R yearalmostr">
<span class="history_2005_span yellow">2012</span>
<b class="history_2005_b yellow_R">
<span class="history_r_month">04<br />月</span>
<span class="history_r_text">CC视频荣获<br />“最佳视频服务提供商”</span>
</b>
</p>
<p class="history_R year211">
<span class="history_2005_span yellow">2012</span>
<b class="history_2005_b yellow_R">
<span class="history_r_month">10<br />月</span>
<span class="history_r_text">CC视频荣获“清科集团中国<br />最具投资价值50强”荣誉</span>
</b>
</p>
<p class="history_R yearalmostr">
<span class="history_2005_span yellow">2014</span>
<b class="history_2005_b yellow_R">
<span class="history_r_month">10<br />月</span>
<span class="history_r_text">CC视频荣获<br />“最佳教育技术提供商”荣誉</span>
</b>
</p>
</div>
<div class="clear"></div>
</div>
<div class="clear"></div>
</div>
</div>

js代码:

$(window).scroll(function () {
var msg = $(".history-img");
var item = $(".history_L");
var items = $(".history_R");
var windowHeight = $(window).height();
var Scroll = $(document).scrollTop();
if ((msg.offset().top - Scroll - windowHeight) <= 0) {
msg.fadeIn(1500);
}
for (var i = 0; i < item.length; i++) {
if (($(item[i]).offset().top - Scroll - windowHeight) <= -100) {
$(item[i]).animate({ marginRight: '0px' }, '50', 'swing');
}
}
for (var i = 0; i < items.length; i++) {
if (($(items[i]).offset().top - Scroll - windowHeight) <= -100) {
$(items[i]).animate({ marginLeft: '0px' }, '50', 'swing');
}
}
});

via:http://www.w2bc.com/article/49706

发展简史jQuery时间轴特效的更多相关文章

  1. 基于jQuery发展历程时间轴特效代码

    分享一款基于jQuery发展历程时间轴特效代码,带左右箭头,数字时间轴选项卡切换特效下载.效果图如下: 在线预览   源码下载 实现的代码. html代码: <div id="time ...

  2. Jquery实现超酷的时间轴特效

    Timeline时间轴Jquery特效是一款现在互联网上非常流行的一种布局结构,结合了瀑布流布局,最近很多网友问到这种特效,网站上有网友们分享过一款,功能虽然实现,但样式不太好看,今天就把它整理出来分 ...

  3. jquery时间轴幻灯展示源代码

    查看效果:http://hovertree.com/texiao/jquery/75/ 源代码下载:http://hovertree.com/h/bjaf/8jlpc2wu.htm 效果图如下: 代码 ...

  4. 推荐5款实用的jQuery时间轴插件

    1.使用CSS3和jQuery制作的水平时间轴 这是一个可以在PC和移动端表现非常棒的水平时间轴,它由上部水平滑块和下部时间点对应的内容区块,点击时间轴上的时间点,下部内容会滑动到对应的内容区块.使用 ...

  5. jQuery时间轴插件timeline.js

    http://www.jq22.com/jquery-info13695 http://www.jq22.com/jquery-info13357 简要教程 timeline.js是一款jQuery时 ...

  6. jQuery时间轴插件:jQuery Timelinr

    前言 这是一款可用于展示历史和计划的时间轴插件,尤其比较适合一些网站展示发展历程.大事件等场景.该插件基于jQuery,可以滑动切换.水平和垂直滚动.支持键盘方向键.经过扩展后可以支持鼠标滚轮事件. ...

  7. jQ效果:jQuery时间轴插件jQuery Timelinr

    前言 这是一款可用于展示历史和计划的时间轴插件,尤其比较适合一些网站展示发展历程.大事件等场景.该插件基于jQuery,可以滑动切换.水平和垂直滚动.支持键盘方向键.经过扩展后可以支持鼠标滚轮事件. ...

  8. jquery时间轴tab切换效果实现结合swiper实现滑动显示效果

    需求:根据时间轴进行tab页面内容切换(时间轴需要滑动查看并选择) 实现思路: 结合swiper插件实现滑动显示效果 根据transform: translateX进行左侧切换效果的实现(具体实现cs ...

  9. jQuery时间轴

    常见的时间轴导航 横向时间轴

随机推荐

  1. HDU4372-Count the Buildings【第一类Stirling数】+【组合数】

    <题目链接> <转载于 >>> > 题目大意: N座高楼,高度均不同且为1~N中的数,从前向后看能看到F个,从后向前看能看到B个,问有多少种可能的排列数. 0 ...

  2. 在netcore中如何注入同一个接口的多个实现

    netcore中自带了Ioc框架,这也影响了我们的编码习惯,以前都是静态类或者直接new对象,现在有了Ioc框架的支持,我们也不必守旧,应当使用起来,接受这种对象管理方式.使用过java的同仁,都习惯 ...

  3. CF 1131 E. String Multiplication

    E. String Multiplication 题意 分析: 从后往前考虑字符串变成什么样子. 设$S_i = p_1 \cdot p_2 \dots p_{i}$,最后一定是$S_{n - 1} ...

  4. jQuery.serialize() 提交form表单

    serialize()函数用于序列化一组表单元素,将表单内容编码为用于提交的字符串. serialize()函数常用于将表单内容序列化,以便用于AJAX提交. 该函数主要根据用于提交的有效表单控件的n ...

  5. Codeforces 994F Compute Power 二分+DP

    题意:给n个任务 每个任务有两个值$a,b$ 现有许多机器 每台最多可以执行两次任务 若存在第二次任务则满足$a_{second}<a_{first}$ 定义代价$val = \frac { \ ...

  6. eclipse更改workspace中出现The superclass "javax.servlet.http.HttpServlet" was not found on the Java----问题》》

    第一步:那是因为在项目中没有告诉它应该在哪个tomcat中运行,右击项目名称----->build path-->configure   path---->library------ ...

  7. Python初识及变量

    第一句python,输出 Hello world #!/usr/bin/evn python #指定解释器 #_*_ coding:utf- _*_ #指定编码 print("hello w ...

  8. netbeans连接数据库SQLserver2008

    数据库设置 第一步:配置SQL,打开SQL server 2008文件下的配置工具里的SQL server配置管理器 设置MSSQLSERVER协议中,开启TCP/IP,端口设置为1433 在SQL ...

  9. 关于SS的一点笔记

    过年的时候抽了点时间了解了下ss的协议.整理了一点笔记,一直没有时间发.今天发一下,免得忘了. SS的结构本身比较简单,他的基本结构如下: ss通常分为client和server两部分 client是 ...

  10. scrollView 刷新显示在中间的问题

    scrollView问题 打开activity之后 屏幕初始位置不是顶部 而是在中间 也就是scroll滚动条不在上面 而是在中间 楼主你好,我大概是和你遇见了同样的问题,你可以灵活处理一下,不要去管 ...