Created
September 10, 2025 13:22
-
-
Save cmbaughman/78ceb0c3e765b96fe3403517a9550539 to your computer and use it in GitHub Desktop.
CSS to include in all websites for smoother scrolling and GPU acceleration for all transforms
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
| html { | |
| scroll-behavior: smooth; | |
| } | |
| .section { | |
| transform: translateZ(0); /* force GPU layer */ | |
| will-change: transform; | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This should be included in all websites to make transforms more smooth and for GPU acceleration.