SmohanTimeLine.js 酷炫的時間軸效果

來源:互聯網
上載者:User

標籤:style   blog   http   color   io   os   ar   sp   div   

展示地址

點此下載

原文出處

一、參數說明
item : ‘.item‘, //項目元素top  : 30, //與下一行的間距pointWidth : 22, //時間點寬度cornerWidth : 22, //corner寬度scroll : true  //點擊時間點,是否滑動
二、CSS樣式
/*時間軸樣式*/#TimeLine{width:100%;height:auto;min-height:600px;position:relative;padding:20px 0;margin-top:30px; font-size:14px;}#TimeLine > .lines{width:2px; height:0; background:#c8c8c8; position:absolute; top:-30px;}#TimeLine > .item{width:45%;height:auto; min-height:120px; background:#fff; position:absolute;}#TimeLine > .item:hover{box-shadow:0 1px 10px rgba(0, 0, 0, 0.1); background-color:rgba(255,255,255,.9);}#TimeLine > .item .point{display:block; width:22px; height:22px; background:url(icons.png)-138px 0 no-repeat; z-index:9; position:absolute; cursor:pointer; }#TimeLine > .item .point:hover{ background-position:-138px -22px;}#TimeLine > .item .cornerL,#TimeLine > .item .cornerR{display:block; width:22px; height:30px; background:url(icons.png) 0 -95px no-repeat; position:absolute;}#TimeLine > .item .cornerL{ background-position:-22px -95px;}#TimeLine > .item .cornerR{ background-position:0px -95px;}
三、HTML構建
<div id="TimeLine">    <div class="lines">&nbsp;</div>    ...    <div class="item">        <div class="item-wraper" style="padding:10px;">               內容....任何HTML代碼        </div>    </div>        <div class="item">        <div class="item-wraper" style="padding:10px;">               內容....任何HTML代碼        </div>    </div>    ...</div>
四、外掛程式調用
 $(window).bind(‘resize‘,function(){        $(‘#TimeLine‘).smohanTimeline({item:‘.item‘}); }).resize();

 

SmohanTimeLine.js 酷炫的時間軸效果

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.