I want to add an animation to my button without having to hover on it, exactly like the example here Add CSS shaking animation to a button without hover
but with a differet animation, preferably pulse animation but my coding knowladge is not that much
can anybody help me with that please
thank you in advance.
2
Answers
Here’s the code you can try to add a pulse animation:
To break it down for you:
The animation property applies the pulse effect to the button. This property specifies:
of the @keyframes animation we’ll define next).
repeating indefinitely).
Then the keyframe animation:
This @keyframes rule defines the actual pulse animation. The pulse animation works as follows:
Any button with the class .pulse-button will continuously "pulse" by slightly increasing and then returning to its original size.
Here’s a demo of the working code on JSFiddle