Last active
July 8, 2017 18:26
-
-
Save vgordeew/472a25f1782f23738a683644b458d0e0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// HTML | |
<div class="page-header"> | |
<div class="home-arrow"> | |
<a href="#last-work-nav" class="smoth-scroll" data-target="anchor"> | |
<i class="fa fa-arrow-down"></i> | |
</a> | |
</div> | |
</div> | |
// CSS | |
.page-header .home-arrow | |
font-size: 14px | |
width: 22px | |
line-height: 24px | |
color: #DB0A5B | |
text-align: center | |
position: absolute | |
bottom: 150px | |
left: 50% | |
-webkit-transform: translate(-50%, -50%) | |
transform: translate(-50%, -50%) | |
.page-header .home-arrow a | |
color: $main-color | |
font-size: 30px | |
.page-header .home-arrow .fa | |
display: inline-block | |
-webkit-transform-style: preserve-3d | |
transform-style: preserve-3d | |
-webkit-animation-name: home-arrow | |
animation-name: home-arrow | |
animation-duration: 2s | |
-webkit-animation-duration: 2s | |
-webkit-animation-iteration-count: infinite | |
animation-iteration-count: infinite | |
-webkit-animation-timing-function: linear | |
animation-timing-function: linear | |
@-webkit-keyframes home-arrow | |
from | |
-webkit-transform: translate3d( 0, 0px, 0) | |
transform: translate3d( 0, 0px, 0) | |
filter: alpha(opacity=0) | |
opacity: 0 | |
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)" | |
10% | |
-webkit-transform: translate3d( 0, 5px, 0) | |
transform: translate3d( 0, 5px, 0) | |
filter: alpha(opacity=100) | |
opacity: 1 | |
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)" | |
to | |
-webkit-transform: translate3d( 0, 30px, 0) | |
transform: translate3d( 0, 30px, 0) | |
filter: alpha(opacity=0) | |
opacity: 0 | |
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)" | |
@keyframes home-arrow | |
from | |
-webkit-transform: translate3d( 0, 0px, 0) | |
transform: translate3d( 0, 0px, 0) | |
filter: alpha(opacity=0) | |
opacity: 0 | |
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)" | |
10% | |
-webkit-transform: translate3d( 0, 5px, 0) | |
transform: translate3d( 0, 5px, 0) | |
filter: alpha(opacity=100) | |
opacity: 1 | |
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)" | |
to | |
-webkit-transform: translate3d( 0, 30px, 0) | |
transform: translate3d( 0, 30px, 0) | |
filter: alpha(opacity=0) | |
opacity: 0 | |
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment