animate-css / animate.css

🍿 A cross-browser library of CSS animations. As easy to use as an easy thing.
https://animate.style/
Other
80.63k stars 16.23k forks source link

Update animate.css #1698

Closed ayushgupta9906 closed 7 months ago

ayushgupta9906 commented 11 months ago

It appears that there are duplicated property names in the CSS code you've provided. In CSS, when you have multiple declarations for the same property within the same selector, the last declaration will override the previous ones. Therefore, setting a default value for a property would involve either removing the duplicates or ensuring that the desired default value is the last declaration.

If you want to set a In this code, --animate-duration is defined with a default value of 1s in the :root pseudo-class. This ensures that the variable always has a value, but it can still be overridden or modified elsewhere in your CSS if needed.

eltonmesquita commented 7 months ago

See here