Created
April 29, 2024 10:53
-
-
Save iwstkhr/cc3544a4d1d344b4ac9eb05baa8310b5 to your computer and use it in GitHub Desktop.
Fadein Animation in Tailwind 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
<div class="animate-fade-in"> | |
Fadein! | |
</div> |
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
/** @type {import('tailwindcss').Config} */ | |
export default { | |
theme: { | |
extend: { | |
animation: { | |
'fade-in': 'fadeIn 0.3s ease both', | |
}, | |
keyframes: { | |
fadeIn: { | |
from: { opacity: 0 }, | |
to: { opacity: 1 }, | |
}, | |
}, | |
}, | |
}, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment