Created
August 23, 2023 10:57
-
-
Save gzzhanghao/395d83d331618587d88f0a2e0eff1b61 to your computer and use it in GitHub Desktop.
Prevent iOS safari scroll on focus with pure CSS
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
input:focus { | |
animation: prevent-scroll 1ms; | |
} | |
@keyframes prevent-scroll { | |
from { | |
opacity: 0; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment