下载地址

这是一款基于Bootstrap网格系统的响应式横向水平时间轴特效。该水平时间轴特效采用bootstrap网格进行布局,然后通过css代码来进行美化,效果简洁时尚。核心CSS3代码.main-timeline{ position: relative; }.main-timeline:before,.main-timeline:after{ content: ""; display: block; width: 100%; clear: both;}.main-timeline:before{ content: ""; width: 100%; height: 5px; background: #fff; margin: auto 0; position: absolute; top: 50%; left: 0;}.main-timeline .timeline{ width: 22%; float: left; margin-left: 3%; position: relative;}.main-timeline .timeline:before{ content: attr(data-heading); display: inline-block; font-size: 24px; font-weight: bold; color: #fff; transform: rotate(-90deg); position: absolute; top: 30px; left: -2px; z-index: 2;}.main-timeline .timeline:after{ content: ""; width: 5px; height: 60px; border-left: 9px dotted #fff; position: absolute; top: 54%; left: 71px;}.main-timeline .timeline-content{ padding: 15px 0 40px 50px; margin-bottom: 80px; border-radius: 15px; border: 5px solid #fff; text-align: left; background: #f67420; z-index: 1; position: relative;}.main-timeline .timeline:nth-child(even) .timeline-content{ background: #43a6ba; }.main-timeline .timeline-content:before{ content: ""; width: 40px; height: 100%; position: absolute; top: 0; left: 0; background: #d66215; border-radius: 10px 0 0 10px;}.main-timeline .timeline:nth-child(even) .timeline-content:before{ background: #1784ab; }.main-timeline .timeline-content:after{ content: ""; width: 40px; height: 40px; background: #f67420; border-bottom: 5px solid #fff; border-right: 5px solid #fff; position: absolute; bottom: -23px; left: 50px; transform: rotate(45deg); z-index: -1;}.main-timeline .timeline:nth-child(even) .timeline-content:after{ background: #43a6ba; }.main-timeline .description{ font-size: 14px; color: #fff;}.main-timeline .read-more{ display: inline-block; padding-right: 15px; font-size: 16px; font-weight: bold; color: #fff; text-transform: capitalize; position: relative;}.main-timeline .read-more:before{ content: "0da"; font-family: "FontAwesome"; font-size: 24px; position: absolute; top: -6px; right: 0;}.main-timeline .year{ display: inline-block; width: 85px; height: 85px; line-height: 85px; background: #f67420; border-radius: 5px; border: 5px solid #fff; text-align: center; margin-left: 34px; transform: rotate(45deg); position: relative;}.main-timeline .timeline:nth-child(even) .year{ background: #43a6ba; }.main-timeline .year span{ display: block; font-size: 20px; font-weight: bold; color: #fff; transform: rotate(-45deg);}.main-timeline .timeline.bottom{ margin: -7.7% 0 0 7%; }.main-timeline .timeline.bottom:nth-child(5n+1),.main-timeline .timeline.bottom:last-child{ margin-left: 3%; }.main-timeline .timeline.bottom:before{ top: auto; bottom: 110px;}.main-timeline .timeline.bottom:after{ top: auto; left: auto; bottom: 54%; right: 71px; border-color: #fff;}.main-timeline .timeline.bottom .timeline-content{ margin: 80px 0 0 0; padding: 15px 0 40px 50px;}.main-timeline .timeline.bottom .timeline-content:after{ border: none; border-top: 5px solid #fff; border-left: 5px solid #fff; bottom: auto; top: -23px; left: auto; right: 50px;}.main-timeline .timeline.bottom .year{ top: 4px; margin-left: 132px;}@media only screen and (max-width: 1199px){ .main-timeline:before{ width: 5px; height: 100%; top: 0; left: 5%; } .main-timeline .timeline, .main-timeline .timeline.bottom, .main-timeline .timeline.bottom:nth-child(5n+1), .main-timeline .timeline.bottom:last-child{ width: 85%; float: none; margin: 0 0 20px 15%; } .main-timeline .timeline:after, .main-timeline .timeline.bottom:after{ width: 60px; height: 5px; top: 50px; left: -58px; border-top: 9px dotted #fff; } .main-timeline .timeline-content, .main-timeline .timeline.bottom .timeline-content{ margin: 0; } .main-timeline .year, .main-timeline .timeline.bottom .year{ width: 65px; height: 65px; line-height: 60px; margin: 0; position: absolute; top: 20px; left: -15.5%; z-index: 1; } .main-timeline .timeline .timeline-content:after{ display: none; } .main-timeline .timeline.bottom:before{ bottom: auto; top: 30px; left: -2px; }}@media only screen and (max-width: 990px){ .main-timeline .year, .main-timeline .timeline.bottom .year{ left: -16.8%; }}@media only screen and (max-width: 767px){ .main-timeline .timeline:after, .main-timeline .timeline.bottom:after{ display: none; } .main-timeline .year, .main-timeline .timeline.bottom .year{ width: 30px; height: 30px; border: 3px solid #fff; left: -13.5%; } .main-timeline .year span{ display: none; }}@media only screen and (max-width: 480px){ .main-timeline .year, .main-timeline .timeline.bottom .year{ left: -15.5%; }}

dd:

简洁纯CSS3横向水平时间轴js特效代码相关推荐

  1. react.js实现的时间轴js特效

    下载地址 基于react.js实现的时间轴样式特效代码. dd:

  2. 纯CSS3书本打开翻页js特效

    下载地址 纯CSS3书本打开翻页特效是一款基于css3 keyframes属性制作的设置多张背景图片组合成打开的书本自动翻页效果. dd:

  3. 纯css3火箭穿越太空动画js特效

    下载地址 纯css3实现的火箭升空特效,CSS火箭飞跃太空动画特效 dd:

  4. 纯css3绿色卡通树图形js特效

    下载地址 纯css3绿色卡通树图形特效是一款卡通树,创意的树木,绿色的树ui图形特效. dd:

  5. vue图片时间轴滑动_Vue实现可移动水平时间轴

    本文实例为大家分享了Vue实现可移动水平时间轴的具体代码,供大家参考,具体内容如下 里程碑时间轴具体实现 效果图 编辑里程碑效果图 编辑里程碑 里程碑状态: 开始 超期 关闭 {{'阶段名称:'+it ...

  6. html水平进度轴代码,水平时间轴 html + css

    比较粗糙,效果如图 这个是写微信页面时写的,pc 也是一样的效果 代码如下: 预约 行家确认 付款 见面 评价 付款剩余时间:: css: .time_line_box{ position: rela ...

  7. 水平时间轴css代码_使用CSS和JavaScript构建水平时间线

    水平时间轴css代码 在上一篇文章中 ,我向您展示了如何从头开始构建响应式垂直时间轴. 今天,我将介绍创建相关的水平时间线的过程. 与往常一样,要初步了解我们将要构建的内容,请查看相关的CodePen ...

  8. html时间轴横向自动播放,利用jQuery实现日期时间轴自动播放代码

    特效描述:利用jQuery实现 日期时间轴 自动播放代码.利用jQuery实现日期时间轴自动播放代码 代码结构 1. 引入CSS 2. 引入JS 3. HTML代码 渲染未完成延迟动画 渲染完成继续动 ...

  9. 纯CSS3炫酷3D星空动画特效

    效果: 源码: <!DOCTYPE html> <html lang="zh"> <head><meta charset="UT ...

最新文章

  1. GBDT--简单理解
  2. [Android]反编译apk + eclipse中调试smali
  3. 自然语言12_Tokenizing Words and Sentences with NLTK
  4. Skype For Business 2015实战系列2:安装活动目录
  5. 算法不会,尚能饭否之树(1)
  6. ATL COM类之激活
  7. Qml文件的两种加载方式
  8. 如何设置eclipse眼睛保护色-码农必备
  9. DHT11温湿度传感器(zigbee)
  10. 微信 语音识别_微信语音识别_微信语音识别api - 云+社区 - 腾讯云
  11. scikit-learn:4.3. Preprocessing data(standardi/normali/binari..zation、encoding、missing value)
  12. 迅雷和BT有什么区别?迅雷是不是不毁硬盘?速度快吗?
  13. 基于 Node.js + Koa 构建完整的 Web API (配置 ESLint 和使用 Airbnb 编码规范)
  14. 计算机软件资产代码,IT资产命名规则-2015
  15. mac ssh常见问题
  16. 201771010137 赵栋 《面向对象程序设计(java)》第十三周学习总结
  17. 什么是计算机使用及安全管理制度,安全管理制度
  18. (七)集成学习中-投票法Voting
  19. RSA加密(3.0)
  20. 如何长时间坚持一件事情

热门文章

  1. 北斗+车载录像机:“两客一危”的黑匣子
  2. 不会“脱口秀”、“摇滚”的程序员,不是好“模特“!
  3. 视频剪辑软件怎么调声像和音量?
  4. web前端期末大作业 基于HTML+CSS+JavaScript角色管理(带增删改查功能)
  5. 西门子Smart200 PLC配方功能 暴力写法 指针写法
  6. 转转大师免费删除PDF文件密码
  7. perf 补充命令分享
  8. 幻13全能本领衔 ROG多款重磅新品发布
  9. el-select 多选取值_它的新风换气有多厉害?格力风无界新风空调详细评测告诉你!...
  10. LabVIEW——房间温度PID控制实验系统数据采集