Add basic animation
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import defaultTheme from 'tailwindcss/defaultTheme';
|
||||
import plugin from 'tailwindcss/plugin';
|
||||
import typographyPlugin from '@tailwindcss/typography';
|
||||
|
||||
export default {
|
||||
@@ -17,8 +18,24 @@ export default {
|
||||
serif: ['var(--aw-font-serif, ui-serif)', ...defaultTheme.fontFamily.serif],
|
||||
heading: ['var(--aw-font-heading, ui-sans-serif)', ...defaultTheme.fontFamily.sans],
|
||||
},
|
||||
|
||||
animation: {
|
||||
fade: 'fadeInUp 1s both',
|
||||
},
|
||||
|
||||
keyframes: {
|
||||
fadeInUp: {
|
||||
'0%': { opacity: 0, transform: 'translateY(2rem)' },
|
||||
'100%': { opacity: 1, transform: 'translateY(0)' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
plugins: [typographyPlugin],
|
||||
plugins: [
|
||||
typographyPlugin,
|
||||
plugin(({ addVariant }) => {
|
||||
addVariant('intersect', '&:not([no-intersect])');
|
||||
}),
|
||||
],
|
||||
darkMode: 'class',
|
||||
};
|
||||
|
Reference in New Issue
Block a user