Last active
June 27, 2023 00:24
-
-
Save gko/c16ad2e0ac67c0d8d29067a1565c8c38 to your computer and use it in GitHub Desktop.
setTimeout mixin
This file contains hidden or 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
/** | |
* @include setTimeout(timeout) { | |
* properties to change to | |
* } | |
*/ | |
@use "sass:string"; | |
@mixin setTimeout($timeout) { | |
$animation-name: animation-#{string.unique_id()}; | |
animation-name: $animation-name; | |
animation-duration: 0s; | |
animation-delay: $timeout; | |
animation-iteration-count: 1; | |
animation-fill-mode: forwards; | |
@keyframes #{$animation-name} { | |
100% { | |
@content; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment