javascript - Sliding photos inside footer wordpress -
I have around 30 different logos and I have to put them all in the footer, from which the footer of this page Slide in the article. , Where the background is slowly sliding through. How can I do this?
You can use this code with jQuery:
HTML:
& lt; Div id = "silde" & gt; & Lt; / Div & gt; CSS:
#sild {height: 191 pixels; Width: 100%; Background image: URL (http://laravel.com/assets/img/quotes.jpg); Background-position: 0; } js:
$ (document) .ready (function () {var posi = 0; setInterval (function () {posi ++; $ ("#silde"). CSS ("background-position", posi + 'px 0');}, 200);}); and you can use posi ++ to move right, to go to the left posi - and you can Here's a sample:
Comments
Post a Comment