css 向下箭头 - 动画淡化 - 例如:http://www.kinkycurlystraight.com.au
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了css 向下箭头 - 动画淡化 - 例如:http://www.kinkycurlystraight.com.au相关的知识,希望对你有一定的参考价值。
<div class="downArrows">
<a href="#section1">
<span class="m_scroll_arrows unu"></span>
<span class="m_scroll_arrows doi"></span>
<span class="m_scroll_arrows trei"></span>
</a>
</div>
/* ---------------------------------- */
/* ----------- DOWN ARROW ----------- */
/* ---------------------------------- */
.downArrows{
position:absolute;
width:100%;
text-align:center;
bottom:0px;
left:0px;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
}
.m_scroll_arrows {
display: block;
width: 5px;
height: 5px;
-ms-transform: rotate(45deg);
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
border-right: 2px solid white;
border-bottom: 2px solid white;
margin: 0 0 3px 4px;
width: 16px;
height: 16px;
}
.unu {
margin-top: 1px;
}
.unu, .doi, .trei {
-webkit-animation: mouse-scroll 1s infinite;
-moz-animation: mouse-scroll 1s infinite;
animation: mouse-scroll 1s infinite;
}
.unu {
-webkit-animation-delay: .1s;
-moz-animation-delay: .1s;
animation-delay: .1s;
-webkit-animation-direction: alternate;
}
.doi {
-webkit-animation-delay: .2s;
-moz-animation-delay: .2s;
animation-delay: .2s;
-webkit-animation-direction: alternate;
margin-top: -6px;
}
.trei {
-webkit-animation-delay: .3s;
-moz-animation-delay: .3s;
animation-delay: .3s;
-webkit-animation-direction: alternate;
margin-top: -6px;
}
@-webkit-keyframes mouse-wheel {
0% {
opacity: 1;
-webkit-transform: translateY(0);
-ms-transform: translateY(0);
transform: translateY(0);
}
100% {
opacity: 0;
-webkit-transform: translateY(6px);
-ms-transform: translateY(6px);
transform: translateY(6px);
}
}@-moz-keyframes mouse-wheel {
0% {
top: 1px;
}
25% {
top: 2px;
}
50% {
top: 3px;
}
75% {
top: 2px;
}
100% {
top: 1px;
}
}@-webkit-keyframes mouse-scroll {
0% {
opacity: 0;
}
50% {
opacity: .5;
}
100% {
opacity: 1;
}
}@-moz-keyframes mouse-scroll {
0% {
opacity: 0;
}
50% {
opacity: .5;
}
100% {
opacity: 1;
}
}@-o-keyframes mouse-scroll {
0% {
opacity: 0;
}
50% {
opacity: .5;
}
100% {
opacity: 1;
}
}@keyframes mouse-scroll {
0% {
opacity: 0;
}
50% {
opacity: .5;
}
100% {
opacity: 1;
}
}
以上是关于css 向下箭头 - 动画淡化 - 例如:http://www.kinkycurlystraight.com.au的主要内容,如果未能解决你的问题,请参考以下文章
css Bootstrap淡化旋转木马触摸滑块与文本动画
使用纯 CSS 创建向上和向下箭头图标或按钮
如何在没有不透明度的情况下使用 CSS 淡化图像?
具有 100% 宽度的 CSS 背景图像和动画滚动直到图像完成
如何在相应的滚动上获得虚线(带有向下箭头图标)SVG动画?
css 向左向下箭头