Skip to content

Instantly share code, notes, and snippets.

@aluissp
Created February 12, 2023 20:45
Show Gist options
  • Save aluissp/df3fb9bd5d67f08e18ff47e3bd512c26 to your computer and use it in GitHub Desktop.
Save aluissp/df3fb9bd5d67f08e18ff47e3bd512c26 to your computer and use it in GitHub Desktop.
Fade in animation in Tailwind CSS
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}'],
theme: {
extend: {
animation: {
fade: 'fadeIn .5s ease-in-out',
},
keyframes: {
fadeIn: {
from: { opacity: 0 },
to: { opacity: 1 },
},
},
},
},
plugins: [],
};
@chillaxdev
Copy link

+1

@janzikmund
Copy link

Nice 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment