How to display an animation after every n seconds

Hi. I want to create an animation after every 3000ms using jQuery-(animated bounce in that it will bounce every 3000ms. I’ve used the setTimeout and the setInterval method and they don’t seem to be working. It only bounces once every 3000ms and then stops but I want it to run practically all the time. Pls it is urgent. Thanks in advance and happy coding!
Here’s the pen

1 Like

Hey @koladeafolabi. Can’t you use CSS built in animation properties instead of using jQuery? I mean, you could recreate that bounce effect with @keyframes and use animation-delay and animation-iteration-count to infinite and you will get what you asked for. But creating this with JS will be hard (maybe it’s easy, I don’t know).