Last active
November 26, 2021 10:20
-
-
Save davidsharp/56d983789c09e5b14c32859c293e8611 to your computer and use it in GitHub Desktop.
A neat little star wipe for Remark.js presentations
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
@-webkit-keyframes wipe { | |
0% { | |
-webkit-mask-size: 0% 0%; | |
} | |
100% { | |
-webkit-mask-size: 550% 550%; | |
} | |
} | |
.remark-visible .remark-slide-content { | |
-webkit-mask-image: url(./star.svg); | |
-webkit-mask-clip: border-box; | |
-webkit-mask-size: 550% 550%; | |
-webkit-mask-repeat: no-repeat; | |
-webkit-mask-position: center; | |
-webkit-animation: wipe 1s 1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As mentioned above,
.remark-visible .remark-slide-content.star {...}
would apply it only to slides with a class ofstar