DEV Community

Discussion on: 100 underline/overlay animations | The ultimate CSS collection 🥇

Collapse
 
chaveamin profile image
chaveamin • Edited

What's the variable value for --p and --d
and I assume we can't add a border radius to the "All Sides"

Collapse
 
afif profile image
Temani Afif

I am using the variables to make the code shorter so for example instead of using background-position:0% 100% and on hover I make it background-position:100% 100% I use a variable inside the first definition to have var(--p,0%) 100% and later I simply change the value of the variable and make it --p: 100%.

And no, we cannot use border-radius. I will probably prepare another list with radius ;)