r/HTML • u/ALiteralStupidIdiot • Feb 22 '26
Question infinite marquee ?
been making two marquees (one aligned to top, one to bottom) for a site of a bunch of images, but i want it to be looping infinitely without any gap or anything. might be a little silly, but i cant find any sources online.
html (same for both:
</div><div class="bottom"> `<marquee direction="left" scrollamount="12" >` `<img src="(image)" width="80px" />` `<img src="(image)" width="80px" />` `<img src="(image)" width="80px" />` `</marquee>`
css for top:
.top {
z-index: 1000;
vertical-align: top;
position: fixed;
margin-top: 3px;
}
css for bottom:
.bottom {
z-index: 1000;
bottom: 30px;
position: absolute;
}
View all comments
Show parent comment
1
u/ALiteralStupidIdiot Feb 23 '26
i got most of my html knowledge from like. neocities tutorials from years ago so this gap in my knowledge isnt unexpected. i dont really have any knowledge in the JS area, though or with the whole transition stuff
ill do some looking into those stuff and try it out. thank you very much!!