HomeЛюди и блогиRelated VideosMore From: balaji admane

Moving the background images using CSS and Javascript

13 ratings | 2821 views
this videos is uploaded by balaji admane ...... for more tutorials visit https://www.nicedemo.in
Html code for embedding videos on your blog
Text Comments (5)
Stephen Lai (1 year ago)
thanks, I have learned!!!
Prashant Srivastava (1 year ago)
how to move left image through button click event in loop
Himani S (1 year ago)
Thanks .. :)
New Tech Genius (1 year ago)
How do I get it to go in the y coordinate?
balaji admane (1 year ago)
don't forget to maintain the space in Ypos and Xpos ... code <style> #div{ height:200px;width:100%; background-image:url("balaji.png");background-size:cover; } </style> <script> var i=null; function get(){ document.getElementById("div").style.backgroundPosition="0px "+i+"px"; i++; } window.setInterval(get,30); </script> <div id="div"> </div>

Would you like to comment?

Join YouTube for a free account, or sign in if you are already a member.