-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Delete moving arrow animation (#208)
* remove moving animation * Update src/components/ScrollDownArrow/styles.scss Co-authored-by: Ronak Shah <[email protected]> * fade back in arrow Co-authored-by: Ronak Shah <[email protected]>
- Loading branch information
1 parent
7a278de
commit dd08116
Showing
2 changed files
with
31 additions
and
25 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,38 @@ | ||
.arrow { | ||
cursor: pointer; | ||
left: 50vw; | ||
left: calc(50vw - 15px); | ||
bottom: 50px; | ||
height: 30px; | ||
margin: auto; | ||
position: absolute; | ||
width: 30px; | ||
animation: ca3_fade_move_down 1.5s ease-in-out infinite; | ||
|
||
@keyframes ca3_fade_move_down { | ||
0% { | ||
transform: translate(0, -10px); | ||
opacity: 0; | ||
} | ||
35% { | ||
opacity: 1; | ||
} | ||
70% { | ||
transform: translate(0, 10px); | ||
opacity: 0; | ||
} | ||
100% { | ||
transform: translate(0, 10px); | ||
opacity: 0; | ||
} | ||
} | ||
|
||
@media only screen and (max-width: 1050px) { | ||
display: none; | ||
} | ||
} | ||
} | ||
// ensures the scroll down button fades away as the user scrolls down | ||
@keyframes hide { | ||
from { | ||
opacity: 1; | ||
} | ||
to { | ||
opacity: 0; | ||
} | ||
} | ||
|
||
.hide { | ||
animation: hide 0.5s linear 0s 1 normal forwards; | ||
} | ||
|
||
@keyframes show { | ||
from { | ||
opacity: 0; | ||
} | ||
to { | ||
opacity: 1; | ||
} | ||
} | ||
|
||
.show { | ||
animation: show 0.5s linear 0s 1 normal forwards; | ||
} |
dd08116
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: