Artifacts Gallery Guilds Search Wiki Login Register

Welcome, Guest. Please login or register. - Thinking of joining?
Autumn, 27 Sep 2026 - @463.00
Forum Activity: Four Stars ~ Boop! The forum will close in 538.beats! Random | Recent Posts | Guild Recents
News: :sleep: These are fast times on the World Wide Web~ Guild Events: MelonLand's Seasonal RPG Jam
Super News: ~~MelonLand's Halloween Profile Design Contest 2026~~
+  MelonLand Forum
|-+  Da Web Revival
| |-+  ✁ ∙ Web Crafting
| | |-+  ☔︎ ∙ I need Help!
| | | |-+  Best way to make a marquee?


« previous next »
Pages: [1] Print Embed
Author Topic: Best way to make a marquee?  (Read 4895 times)
larvapuppy
Sr. Member ⚓︎
****
View Profile WWWArt


World's Worst Baby Seal
⛺︎ My Room
iMood: larvapuppy
RSS: RSS

Guild Memberships:
Artifacts:
CubesealSpheal, I Choose You!Wave MailsealFirst 1000 Members!Bisexual
« on: Spring, 27 Apr 2024 @059 » Toggle Font Embed

I really like those scrolling marquee sections on people's sites where they show off their buttons, stamps, blinkies etc. I'm wondering how to create one that will hold as many graphics as I want. I tried using css animations to do it but it seems to cut off at the width of the page. I think some people might use a script to do it? Any advice is appreciated  :transport:

Logged

Newest Clothing

Artifact Swap: HE WATCHES YOUcup 4 uStripe²happy shirousa
Memory
Guest

« Reply #1 on: Spring, 27 Apr 2024 @066 » Embed

I really like those scrolling marquee sections on people's sites where they show off their buttons, stamps, blinkies etc. I'm wondering how to create one that will hold as many graphics as I want. I tried using css animations to do it but it seems to cut off at the width of the page. I think some people might use a script to do it? Any advice is appreciated  :transport:

I'm not sure if this works on neocities but lots of resources carrds have textbox codes.

Logged
Memory
Guest

« Reply #2 on: Spring, 27 Apr 2024 @238 » Embed

the <marquee> tag is probably the simplest way  :cheesy:

+ you can always poke around in other people's html/css if you like the way they've done something in particular and want to steal it. just right click and select "view page source" or "inspect" :)

Logged
Melooon
Hero Member ⚓︎
*****
View Profile WWWArt


So many stars!
⛺︎ My Room
SpaceHey: Friend Me!
StatusCafe: melon
iMood: Melonking
Itch.io: My Games
RSS: RSS

Guild Memberships:
Artifacts:
You're a Star!Flinstone VitaminWavy Shoulder-Length Hair with BangsBug!Top HatI got robbed by Dan Q on Melonland!
« Reply #3 on: Spring, 27 Apr 2024 @516 » Toggle Font Embed

The classic HTML marquee is the easy option, but its rendering style is very clunky (it moves in jerky steps), that will suit some sites, but you can also do smoother marquees using CSS - this is the code the forum uses:

Code
<span class="marquee"><span>My scrolling text</span></span>

<style>
.marquee span {
    width: max-content;
    display: inline-block;
    animation: marquee 25s linear infinite;
    padding-left: 100%;
}

.marquee span:hover {
  animation-play-state: paused
}

@keyframes marquee {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}
</style>

Logged


everything lost will be recovered, when you drift into the arms of the undiscovered

Artifact Swap: black n cyan yappin kittayHave a chillpillThe Wizards OrbRed Tulip100 coins<3eyntivemds pet fishcurious fishPlank
larvapuppy
Sr. Member ⚓︎
****
View Profile WWWArt


World's Worst Baby Seal
⛺︎ My Room
iMood: larvapuppy
RSS: RSS

Guild Memberships:
Artifacts:
CubesealSpheal, I Choose You!Wave MailsealFirst 1000 Members!Bisexual
« Reply #4 on: Spring, 15 May 2024 @819 » Toggle Font Embed

The classic HTML marquee is the easy option, but its rendering style is very clunky (it moves in jerky steps), that will suit some sites, but you can also do smoother marquees using CSS - this is the code the forum uses:

Thank you! This was what I was looking for. I hope you don't mind, but I have a couple of follow-up questions. I tried it out on my Everyone page here, and there a couple of things that I'd like to change before adding it to my website, but I'm not sure how.

  • It looks like the marquee increases the width of the page approximately by the width of the marquee content. Is there a way to avoid this so that the marquee stays "hidden" off-page and doesn't widen the page?
  • If I wanted to make a really long marquee, would there be some way to make it 'loop' back around onto itself without there being a space in between the end of the first loop and the start of the 2nd loop?

If Melon or anyone else knows the answers I'd be grateful for the info! :transport:

Logged

Newest Clothing

Artifact Swap: HE WATCHES YOUcup 4 uStripe²happy shirousa
IndigoGolem
Sr. Member ⚓︎
****
View Profile WWW


What's personal text?
⛺︎ My Room
RSS: RSS

Guild Memberships:
Artifacts:
squeezed gentlyVisited on Melon's 10th Anniversary!I got robbed by Dan Q on Melonland!Joined 2025!
« Reply #5 on: Autumn, 19 Sep 2025 @879 » Embed

Thank you! This was what I was looking for. I hope you don't mind, but I have a couple of follow-up questions. I tried it out on my Everyone page here, and there a couple of things that I'd like to change before adding it to my website, but I'm not sure how.

  • It looks like the marquee increases the width of the page approximately by the width of the marquee content. Is there a way to avoid this so that the marquee stays "hidden" off-page and doesn't widen the page?
  • If I wanted to make a really long marquee, would there be some way to make it 'loop' back around onto itself without there being a space in between the end of the first loop and the start of the 2nd loop?

If Melon or anyone else knows the answers I'd be grateful for the info! :transport:

Some docs for you: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/marquee

You can use <marquee width="35%" height="170px"> to set its size. Changing that with CSS style="width:35em; height:72mm;" should also work if you want more options for units.

I'm pretty new to this tag so i don't know how to make it loop. You could try just having several of them, with style="display:inline;" if your browser tries to put each one on its own line as a block element.

Logged

-Indigo, Anve Ozo

Artifact Swap: Spiritual Stone of Firee  unus, pluriumMick Jagger's mouthCreampuffNoid2 coinssnail buddy
Valery_04
Casual Poster ⚓︎
*
View Profile WWW


Zero's girlfriend
⛺︎ My Room

Guild Memberships:
Artifacts:
Nightrave (MMXOC, 8 bits)Joined 2026!
« Reply #6 on: Today at @082 » Toggle Font Embed

I made a code snippet for anyone who wants a CSS marquee more accurate to the 'marquee' HTML element, the '-350%' value must be modified depending of the marquee left or how many marquees you have in the page. I hope it works for anyone!  :transport:

Code
.marquee {
  display: flex;
  width: auto;
  white-space: nowrap;
  box-sizing: border-box;
  width: 100%;
  animation: marquee 25s linear infinite;
  display: inline-block;
  padding-right: 10px;
}
 
@keyframes marquee {
  0% {
    transform: translateX(100%);
  }
  100% { 
    transform: translateX(-350%);
  }
  -350% {
    transform: translateX(0%);
  }
}

Logged

https://file.garden/aTyH7uSsXSbubAjB/Val_logo-pixel.png
Pages: [1] Print Embed 
« previous next »
 

Melonking.Net © Always and ever was! SMF 2.0.19 | SMF © 2021 | Privacy Notice | Send Feedback | Supporters ♥ Forum Guide | Rules | RSS | WAP | Mobile


MelonLand Badges and Other Melon Sites!

MelonLand Project! Visit the MelonLand Forum! Support the Forum
Visit Melonking.Net! Visit the Gif Gallery! Pixel Sea TamaNOTchi
@000 Melon
Land
Forum Art Hub Chat Webring Enter Random Recent Tenement Arcade Want to Login or Join ? Web Craft Guide Graphic Catalogue Wiki Help I'm Lost! Link Land Newsletters Image Stream Minecraft: Online
Zap!
Passport Sites tamaNOTchi Asatte Add your site?
Aero Archive Onio Cafe 32 Bit Cafe Status Cafe