gdpr-cookie-consent-banner icon indicating copy to clipboard operation
gdpr-cookie-consent-banner copied to clipboard

Change transition speed for settings modal

Open kratos-digital opened this issue 1 year ago • 3 comments

Is there a way to change transition speed and timing function for settings modal? Now it's default 400ms linear.

kratos-digital avatar Jan 17 '24 11:01 kratos-digital

Only by allowing it as a customisation option, or, if there is a better default we can just change it - what did you want it to be?

antony avatar Feb 12 '24 08:02 antony

There is not some standard, as I know of, but most of the UIs (I think) use 200-250ms as the default duration. I think it would be good to have it as optional prop to pass to the component.

kratos-digital avatar Feb 12 '24 10:02 kratos-digital

I second that it would be great to be able to adjust the transition speed. It’s an individual design choice, and it makes sense to adjust it to align with the rest of the website.

In my case there is a pretty big difference (I use 75 ms to 150 ms, depending on the size of the element to toggle), so the cookie banner transitions feel odd.

silllli avatar Jun 05 '24 16:06 silllli