Created
March 15, 2023 19:40
-
-
Save gui25/e9b576c98b6cf70007ee3befdaacafeb to your computer and use it in GitHub Desktop.
Page Rotation Animation, just copy and past on your browser console
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
const styleElement = document.createElement('style'); | |
styleElement.textContent = ` | |
body > * { | |
transform-style: preserve-3d; | |
animation: rotate 5s linear infinite; | |
} | |
@keyframes rotate { | |
100% { | |
transform: rotateY(1turn); | |
} | |
} | |
`; | |
document.head.appendChild(styleElement); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment