r/csshelp • • Jul 06 '23

ANCHOR ELEMENT HOVER ANIMATION USING text-shadow, display and overflow hidden

Hey I saw this effect on leonardo.ai where when you hover over a link or button text it rolls up to reveal a deeper color font. I think they are using text-shadow to achieve this. They are hiding the overflow and making the display: inline-flex. I am seeking help as I was unable to replicate this effect on my own. Any help is appreciated.

2 Upvotes

5 comments sorted by

View all comments

Show parent comment

2

u/arnabiscoding Jul 12 '23

Hey! Thanks a lot!

1

u/be_my_plaything Jul 12 '23

No probs. Hope it helps, just seemed like a far simpler solution that text-shadow to me