Replies: 2 comments 3 replies
-
Try setting |
Beta Was this translation helpful? Give feedback.
3 replies
-
You have to update the animation classes in the /** @type {import('tailwindcss').Config} */
module.exports = {
// ...
extend: {
keyframes: {
'accordion-down': {
from: {
height: '0',
},
to: {
height: 'var(--radix-accordion-content-height)',
},
},
'accordion-up': {
from: {
height: 'var(--radix-accordion-content-height)',
},
to: {
height: '0',
},
},
},
animation: {
'accordion-down': 'accordion-down 0.3s ease-out', // <--- here
'accordion-up': 'accordion-up 0.3s ease-out', // <--- here
}, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have an accordion component:
I wanted to change the duration of the slide down and slide up using only TailwindCSS but I could not figure out the solution.
I tried to change these values (accordion-up and accordiona-down) but there was no impact:
Beta Was this translation helpful? Give feedback.
All reactions