jquery flexslider实现一个发展历程大事记时间轴效果代码
代码语言:html
所属分类:布局界面
代码描述:jquery flexslider实现一个发展历程大事记时间轴效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html> <head lang="zh-CN"> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"> <style> @charset "utf-8"; html,body{width:100%; height:100%; padding:0; margin:0;} /* about-history */ .about-history{ height:701px; padding:64px 106px 0; background:url(//repo.bfw.wiki/bfwrepo/image/5d653d54ed035.png) no-repeat center fixed; -webkit-background-size:100% 100%; background-size:100% 100%;} .about-title {margin-bottom: 25px;} .about-title h3 {margin: 0 0 10px;font-size:34px;font-weight:400;color: #2c2c2c;} .about-title p {margin: 0;font-size: 36px;font-weight: 300;color: #ECECEC;} .title-white h3{ color:#d6d6d6;} .title-white p{ color:rgba(222,222,222,.09);} .about-history-list{ position:relative;} .about-history-list .flex-viewport{ padding:0 31px;} .about-history-list .flex-viewport:before{ position:absolute; top:50%; right:0; left:0; border-top:1px solid #C7C7C7; content:'';} .about-history-list .slides li{ position:relative; width:253px; height:470px; margin-right:31px;} .about-history-list .slides li .item{ position:absolute; right:-32px; bottom:0; left:-32px; min-height:152px; padding:44px 0 0 0; background-color:#fff; -webkit-transition:all .2s ease; -moz-transition:all .2s ease; -ms-transition:all .2s ease; -o-transition:all .2s ease; transition:all .2s ease;} .about-history-list .slides li .item:before{ position:absolute; top:-49px; left:50%; width:20px; height:20px; overflow:hidden; margin-left:-10px; -webkit-border-radius:100%; -moz-border-radius:100%; border-radius:100%; background-color:rgba(218,183,101,.6); content:'';} .about-history-list .slides li .item:after{ position:absolute; top:-45px; left:50%; width:12px; height:12px; overflow:hidden; margin-left:-6px; -webkit-border-radius:100%; -moz-border-radius:100%; border-radius:100%; background-color:#DAB765; content:'';} .about-history-list .slides li:nth-child(even) .item{ top:0; bottom:auto; padding:0 0 44px;} .about-history-list .slides li:nth-child(even) .item:before{ top:auto; bottom:-49px;} .about-history-list .slides li:nth-child(even) .item:after{ top:auto; bottom:-45px;} .about-history-list .slides li .item:hover{ background-color:#DAB765;} .about-history-list .slides li .item h3{ position:absolute; top:0; right:0; left:0; height:44px; line-height:44px; margin:0; font-size:20px; font-weight:400; color:#999999; text-align:center; background-color:#e2e2e2; -webkit-transition:all .2s ease; -moz-transition:all .2s ease; -ms-transition:all .2s ease; -o-transition:all .2s ease; transition:all .2s ease;} .about-history-list .slides li .item:hover h3{ color:#232323; background-color:#fff;} .about-history-list .slides li .item h3:before{ position:absolute; bottom:100%; left:50%; margin-left:.........完整代码请登录后点击上方下载按钮下载查看
网友评论0