Skip to content

Instantly share code, notes, and snippets.

@tnylea
Last active January 2, 2023 21:24
Show Gist options
  • Save tnylea/ac5f8e02c7cde51da6c228d61e49cd68 to your computer and use it in GitHub Desktop.
Save tnylea/ac5f8e02c7cde51da6c228d61e49cd68 to your computer and use it in GitHub Desktop.
TailwindCSS config with some common animations
/** @type {import('tailwindcss').Config} */
module.exports = {
theme: {
extend: {
fontFamily: {
thicccboi: [ "thicccboi", "sans-serif" ],
},
keyframes: {
fadeIn: {
'0%' : { opacity: 0 },
'100%': { opacity: 1 }
},
fadeInUp: {
'0%' : {
opacity: 0,
transform: 'translate3d(0, 100%, 0)',
transformStyle: 'preserve-3d',
},
'100%': {
opacity: 1,
transform: 'translate3d(0, 0, 0)',
transformStyle: 'preserve-3d',
}
}
},
animation: {
fadeIn: 'fadeIn 1s ease-in-out',
fadeInUp: 'fadeInUp 0.5s ease'
},
},
},
plugins: [],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment