Created
January 26, 2024 11:20
-
-
Save ibrahim-kardi/0788baced1b27f80b82a7896c8d63a2f to your computer and use it in GitHub Desktop.
Load delay any section by 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
@keyframes delay { | |
0% { opacity: 0; } | |
100% { opacity: 1; } | |
} | |
/* Apply animation to the section */ | |
section { | |
opacity: 0; /* Initially hide the section */ | |
animation: delay 2s ease forwards; /* Apply animation with 2-second delay */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment