Animation problem
hello guys, I am working with my self project, I just want to make my btn background is to make animation, and I dont know why the animation is not working. heres my code for css and my html. can u check guys whats wrong in my code. Thank you!
2 Replies
you probably need to increase your background-size to be bigger than the button so the position has space to move around
this is a super basic example I played around with a year or so ago
https://codepen.io/CA-Carl/full/wvPvEYm
incase you arent using scss
this is the basic html setup
this is the basic css
I left the styling for the class .btn because it explains the sizing decisions