-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2146f94
commit 8e4f738
Showing
2 changed files
with
55 additions
and
6 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,25 +1,69 @@ | ||
:root { | ||
--duration: 20s; | ||
} | ||
|
||
.rolling_crop { | ||
animation: 1000s linear 0s infinite normal forwards running rolling_top; | ||
animation: var(--duration, 10s) linear 0s infinite normal forwards running rollingtop; | ||
} | ||
.rolling_crop_clone { | ||
animation: var(--duration, 10s) linear 0s infinite normal none running rollingtopclone; | ||
} | ||
|
||
.rev_rolling_crop { | ||
animation: 1000s linear 0s infinite normal forwards running rolling_bottom; | ||
animation: var(--duration, 10s) linear 0s infinite normal forwards running rollingbottom; | ||
} | ||
.rev_rolling_crop_clone { | ||
animation: var(--duration, 10s) linear 0s infinite normal none running rollingbottomclone; | ||
} | ||
|
||
@keyframes rolling_top { | ||
0% { | ||
transform: translateY(0%); | ||
transform: translateY(0); | ||
} | ||
50% { | ||
display: none; | ||
transform: translateY(-100%); | ||
} | ||
50.1% { | ||
display: none; | ||
transform: translateY(99.8%); | ||
} | ||
100% { | ||
transform: translateY(0); | ||
} | ||
} | ||
|
||
@keyframes rolling_top_clone { | ||
0% { | ||
transform: translateY(100%); | ||
} | ||
100% { | ||
transform: translateY(-100%); | ||
} | ||
} | ||
|
||
@keyframes rolling_bottom { | ||
0% { | ||
transform: translateY(-99%); | ||
transform: translateY(0); | ||
} | ||
50% { | ||
display: none; | ||
transform: translateY(100%); | ||
} | ||
50.1% { | ||
display: none; | ||
transform: translateY(-99.8%); | ||
} | ||
100% { | ||
transform: translateY(0); | ||
} | ||
} | ||
|
||
@keyframes rolling_bottom_clone { | ||
0% { | ||
transform: translateY(-100%); | ||
} | ||
100% { | ||
transform: translateY(1%); | ||
transform: translateY(100%); | ||
} | ||
} |