Skip to content
Advertisement

Falling hearts animation for browsers

Recently I have downloaded falling hearts animation from this . I have pasted the code below too. It simply displays a heart in my page.and falling hearts animation is not working.I am not able to identify the problem. will anyone tell me what changes I have to made in order to get the hearts falling animation.or is there any other code for the animation?

JavaScript

Advertisement

Answer

got it, you forgot your ‘px’ attribute

JavaScript

and in the document write

JavaScript

EDIT (full code)

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement