Image Crawler Using Javascript

+3 raghav garg · February 1, 2015
I am trying to create a image marquee effect using javascript.
I have created it but there is whitespace between last and first image.
Can anyone help me to make it continuous(removing white space)
Here is my code for it.


http://codepen.io/anon/pen/qEPEGr

Thanks in advance..!!

Post a Reply

Replies

Oldest  Newest  Rating
0 william appiah-dankwah · February 16, 2015
i can code. its cool the code is not clear i have copied it exactly, i have replaced the image name.  i am still learning  
0 Samuel Oloruntoba · February 11, 2015
the marquee works fine, what do you want fixed
0 Jay Deshaun · February 19, 2015
It's alright @william, everyone has to start some where and will need to get help some where ( this forum is the best place for help btw ).
0 william appiah-dankwah · February 15, 2015
hay that works nicely whats the code to put images in javascript?
0 mag magz · February 16, 2015
var i = document.createElement('div');
i.id = 'test';
document.getElementsByTagName('body')[0].appendChild(i);
i.innerHTML = '<img src="lion.jpg"></img>';
0 Jay Deshaun · February 16, 2015
Looks nice!

About your problem,
the only reason why you're seeing white space is because you're moving a container of images, not the images them selves where as you could throw one behind the last one being shown.
0 william appiah-dankwah · February 16, 2015
Sorry man i don't know what that code is but it don't work
0 Jay Deshaun · February 16, 2015
@william Um, did you change the src of the image to another picture located either on your computer or on the web?
  • 1

Javascript

107,162 followers
About

A scripting language that is added to standard HTML to create interactive effects, apps, games for the browser.

Links
Moderators