Button Text Issue during animation
When I hover over to the button, the animation is good but the button text is not visible, how to solve?
https://codepen.io/hamzacodepen951/pen/MWZNwdV
2 Replies
it's because the before-element is on top of the div,
you can change it by giving the ::before a
z-index: -1
and the .btn itself isolation:isolate
to make sure it doesn't go behind it.
an other option is to use a background gradient for the effect (no need for a pseudo element
thank you, first one seems for simple