Created
April 24, 2017 14:21
-
-
Save Waidoss/e511ad0a0f5f025c89c7570b784cc0dc to your computer and use it in GitHub Desktop.
scroll-to-top-sass
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
.top | |
background-color: $accent-color | |
display: inline-block | |
width: 40px | |
height: 40px | |
border-radius: 10em | |
position: fixed | |
z-index: 999 | |
top: 60% | |
right: -60px | |
text-align: center | |
opacity: .6 | |
transition: right .5s, opacity .3s | |
&:hover | |
cursor: pointer | |
opacity: 1 | |
&:active | |
box-shadow: 0 0 10px $accent-color | |
background-color: #fff | |
.fa | |
color: #444 | |
&.active | |
right: 20px | |
.fa | |
line-height: 37px | |
font-size: 20px | |
color: #fff |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment