亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

使用CSS和Bootstrap圖標(biāo)制作上下跳動(dòng)的指示箭頭動(dòng)畫效果

  發(fā)布時(shí)間:2018-06-04 16:52:46   作者:佚名   我要評(píng)論
有時(shí)侯頁(yè)面很長(zhǎng),需要指示箭頭告訴用戶下面還有東西。下面腳本之家小編給大家?guī)?lái)了使用CSS和Bootstrap圖標(biāo)制作上下跳動(dòng)的指示箭頭動(dòng)畫效果,感興趣的朋友一起看看吧

有時(shí)侯頁(yè)面很長(zhǎng),需要指示箭頭告訴用戶下面還有東西??梢杂眉僀SS的方法實(shí)現(xiàn)。

HTML:添加一個(gè)鏈接,可修改錨點(diǎn)點(diǎn)擊時(shí)滑動(dòng)到指定位置,這里使用了Bootstrap 3.x版本的一個(gè)向下箭頭作為圖標(biāo)。

<a href="#" class="scroll-down">
  <span> <i class="glyphicon glyphicon-chevron-down"></i> </span>
</a>

CSS: 添加動(dòng)畫效果

/*向下滑動(dòng)的動(dòng)畫效果*/
@-webkit-keyframes drop {
  0%   { top:0px;  opacity: 0;}
  30%  { top:10px; opacity: 1;}
  100% { top:25px; opacity: 0;}
}
@keyframes drop {
  0%   { top:0px;  opacity: 0;}
  30%  { top:10px; opacity: 1;}
  100% { top:25px; opacity: 0;}
}
/*應(yīng)用動(dòng)畫,添加按鈕效果*/
.scroll-down {
    border: 2px solid #bbb;
    border-radius: 50%;
    margin: 0 auto;
    height: 50px;
    width: 50px;
    display: block;
    text-align: center;
    z-index: 10;
    -webkit-transition: all 0.125s ease-in-out 0s;
    -moz-transition: all 0.125s ease-in-out 0s;
    -ms-transition: all 0.125s ease-in-out 0s;
    -o-transition: all 0.125s ease-in-out 0s;
    transition: all 0.125s ease-in-out 0s;
}
.scroll-down span {
    position: relative;
    color: #bbb;
    font-size: 24px;
    -webkit-animation-name: drop;
    -webkit-animation-duration: 1s;
    -webkit-animation-timing-function: linear;
    -webkit-animation-delay: 0s;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-play-state: running;
    animation-name: drop;
    animation-duration: 1s;
    animation-timing-function: linear;
    animation-delay: 0s;
    animation-iteration-count: infinite;
    animation-play-state: running;
}

總結(jié)

以上所述是小編給大家介紹的使用CSS和Bootstrap圖標(biāo)制作上下跳動(dòng)的指示箭頭動(dòng)畫效果,希望對(duì)大家有所幫助,如果大家有任何疑問請(qǐng)給我留言,小編會(huì)及時(shí)回復(fù)大家的。在此也非常感謝大家對(duì)腳本之家網(wǎng)站的支持!

相關(guān)文章

最新評(píng)論