发展简史jQuery时间轴特效
发展简史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时间轴特效的更多相关文章
- 基于jQuery发展历程时间轴特效代码
分享一款基于jQuery发展历程时间轴特效代码,带左右箭头,数字时间轴选项卡切换特效下载.效果图如下: 在线预览 源码下载 实现的代码. html代码: <div id="time ...
- Jquery实现超酷的时间轴特效
Timeline时间轴Jquery特效是一款现在互联网上非常流行的一种布局结构,结合了瀑布流布局,最近很多网友问到这种特效,网站上有网友们分享过一款,功能虽然实现,但样式不太好看,今天就把它整理出来分 ...
- jquery时间轴幻灯展示源代码
查看效果:http://hovertree.com/texiao/jquery/75/ 源代码下载:http://hovertree.com/h/bjaf/8jlpc2wu.htm 效果图如下: 代码 ...
- 推荐5款实用的jQuery时间轴插件
1.使用CSS3和jQuery制作的水平时间轴 这是一个可以在PC和移动端表现非常棒的水平时间轴,它由上部水平滑块和下部时间点对应的内容区块,点击时间轴上的时间点,下部内容会滑动到对应的内容区块.使用 ...
- jQuery时间轴插件timeline.js
http://www.jq22.com/jquery-info13695 http://www.jq22.com/jquery-info13357 简要教程 timeline.js是一款jQuery时 ...
- jQuery时间轴插件:jQuery Timelinr
前言 这是一款可用于展示历史和计划的时间轴插件,尤其比较适合一些网站展示发展历程.大事件等场景.该插件基于jQuery,可以滑动切换.水平和垂直滚动.支持键盘方向键.经过扩展后可以支持鼠标滚轮事件. ...
- jQ效果:jQuery时间轴插件jQuery Timelinr
前言 这是一款可用于展示历史和计划的时间轴插件,尤其比较适合一些网站展示发展历程.大事件等场景.该插件基于jQuery,可以滑动切换.水平和垂直滚动.支持键盘方向键.经过扩展后可以支持鼠标滚轮事件. ...
- jquery时间轴tab切换效果实现结合swiper实现滑动显示效果
需求:根据时间轴进行tab页面内容切换(时间轴需要滑动查看并选择) 实现思路: 结合swiper插件实现滑动显示效果 根据transform: translateX进行左侧切换效果的实现(具体实现cs ...
- jQuery时间轴
常见的时间轴导航 横向时间轴
随机推荐
- 监听发现局域网dropbox客户端broadcast-dropbox-listener
监听发现局域网dropbox客户端broadcast-dropbox-listener Dropbox是一款网盘文件同步工具.为了实现局域网内同步,该工具会通过UDP 17500端口发送广播包.N ...
- Luogu2586 [ZJOI2008]杀蚂蚁 ---- 模拟
Luogu2586 [ZJOI2008]杀蚂蚁 题意 还是一道大模拟 https://www.luogu.org/problemnew/show/P2586 大概就是炮塔大蚂蚁的故事 下载这个游戏ht ...
- thumbs.db是什么文件
thumbs.db是什么文件 这是图片缓存文件 Thumbs.db文件是一个数据库,里面保存了这个目录下所有图像文件的缩略图(格式为jpeg) thumbs.db删除不掉 反射获取某个类的 所有字段 ...
- POJ.3648.Wedding(2-SAT)
题目链接 题意看这吧..https://www.cnblogs.com/wenruo/p/5885948.html \(Solution\) 每对夫妇只能有一个坐在新娘这一边,这正符合2-SAT初始状 ...
- 洛谷.1919.[模板]A*B Problem升级版(FFT)
题目链接:洛谷.BZOJ2179 //将乘数拆成 a0*10^n + a1*10^(n-1) + ... + a_n-1的形式 //可以发现多项式乘法就模拟了竖式乘法 所以用FFT即可 注意处理进位 ...
- java中哪些数值不能被初始化
main方法中的变量不能被初始化 final修饰的变量不能被初始化·
- [ Visual Studio ] MSDN
在 Visual Studio 中创建自定义项目和项模板 编写和重构代码 (C++) C# 指南 C#最新版本 使用 MSBuild 如何:管理编辑器模式,进入全屏模式编写代码 自定义代码折叠
- HTML5 Canvas制作雷达图实战
雷达图又叫蜘蛛网图,是一种对各项数据查看很明显的表现图,在很多游戏中,对游戏中的每个角色的分析图一般也用这种图. 下面,用HTML5的Cavas来实现雷达图. 效果 一.创建Canvas var mW ...
- boost.xml_parser中文字符问题 (转)
当使用xml_parser进行读xml时,如果遇到中文字符会出现解析错误. 网上有解决方案说使用wptree来实现,但当使用wptree来写xml时也会出错.而使用ptree来写中文时不会出错. 综合 ...
- android: 在android studio中使用retrolambda的步骤
找了各种说明,包括retrolambda官方文档都没有试成功 最后在这个链接中找到答案:http://blog.csdn.net/qq_26819733/article/details/5222565 ...