发展简史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时间轴
常见的时间轴导航 横向时间轴
随机推荐
- NumPy学习(索引和切片,合并,分割,copy与deep copy)
NumPy学习(索引和切片,合并,分割,copy与deep copy) 目录 索引和切片 合并 分割 copy与deep copy 索引和切片 通过索引和切片可以访问以及修改数组元素的值 一维数组 程 ...
- android studio 汉化 svn插件汉化。布局文件 属性 汉化 public.xml
android studio 汉化 SvnBundle.properties D:\Android Studio\plugins\svn4idea\lib resources_en.jar\org\j ...
- MySql开启远程用户登录GRANTALLPRIVILEGESON*.*TO'root'@'%'I MySql开启远程用户登录GRANTALLPRIVILEGESON*.*TO'root'@'%'I
MySql开启远程用户登录 GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'huawei' WITH GRANT OPTION; FL ...
- Loadrunner的参数化解析
参数化的用法 例如 1.登录一个网站,我们可以有很多的不同的用户名和密码 2.创建客户时我们可以通过参数化使得客户编号,客户名称使用多种组合 等等.. 那么下面就为大家介绍参数化的用法 参数化有2种 ...
- 关于supervisor的入门指北
关于supervisor的入门指北 在目前这个时间点(2017/07/25),supervisor还是仅支持python2,所以我们要用版本管理pyenv来隔离环境. pyenv 根据官方文档的讲解, ...
- C# 匿名类型如何使用
- dockerfile安装php遇到的坑
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/main/x86_64/APKINDEX.tar.gz fetch http://dl-cdn.alpi ...
- SourceTree + Beynod Compare解决Git冲突的方法
https://www.cnblogs.com/yufeng218/p/6523422.html
- springboot中velocity tool中注入bean
在使用springboo的时候,遇到一个问题,想在tool类中注入一个bean,一直失败,翻了下源码,是因为工具类的初始化方法为反射class调用newInstance方法,详见 http://www ...
- java连接数据库插入数据中文乱码
解决方案: jdbc连接数据库,向表中插入中文查看数据乱码:修改数据库连接url为jdbc:mysql://127.0.0.1:3306/test?characterEncoding=utf-8 注意 ...