Skip to content

Instantly share code, notes, and snippets.

@davidsharp
Last active November 26, 2021 10:20
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidsharp/56d983789c09e5b14c32859c293e8611 to your computer and use it in GitHub Desktop.
Save davidsharp/56d983789c09e5b14c32859c293e8611 to your computer and use it in GitHub Desktop.
A neat little star wipe for Remark.js presentations
@-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;
}
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@davidsharp
Copy link
Author

You can specify this on specific slides only by using remarks class properties, allowing for different zoom wipes per slide, or none at all

@davidsharp
Copy link
Author

As mentioned above, .remark-visible .remark-slide-content.star {...} would apply it only to slides with a class of star

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment