beyonk-group / gdpr-cookie-consent-banner

A GDPR compliant cookie consent banner implementation
MIT License
248 stars 42 forks source link

Change transition speed for settings modal #62

Open kratos-digital opened 7 months ago

kratos-digital commented 7 months ago

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

antony commented 6 months ago

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?

kratos-digital commented 6 months ago

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.

silllli commented 3 months ago

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.