0

Someone knows how to make these hover effects animating the pseudoclasses :after and :before??

https://tympanus.net/Development/CreativeButtons/

thanks, I'm trying to learn, I don't need the sheet to buy or download

I've just analized it and it appears that there is an element:

section p button (the p I discovered is a better way to center, very nice)

a class for the button:

.btn

a normal pseudoclass for the basic hover effects:

.btn:hover

an after and before pseudoclass:

.btn:after

.btn:before

what I don't understand is how to animate .btn:after and .btn:before

here I have a reference sheet that I'm doing for myself where you can see (the css is not dry because it is a reference sheet and in a future I can use it to look to a specific object, class to reuse or modify

https://codepen.io/Heavybrush/pen/bWgXpx

Heavybrush
  • 79
  • 1
  • 10

0 Answers0