Last active
October 21, 2021 23:37
-
-
Save davidsharp/5388435a08e2011d415cf4db1ac01b98 to your computer and use it in GitHub Desktop.
A short and sweet CSS snippet for slightly spooky swaying text and more
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
.sway { | |
display: inline-block; | |
animation-duration: 2s; | |
animation-name: sway; | |
animation-iteration-count: infinite; | |
animation-direction: alternate; | |
animation-timing-function: ease-in-out; | |
} | |
@keyframes sway { | |
from { | |
transform: skewX(15deg); | |
} | |
to { | |
transform: skewX(-15deg); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment