HTML Scrolling Image

This page contains examples of scrolling images that were created using the <marquee> tag. For a standards-compliant version, see CSS Scrolling Image instead.

The HTML method of creating a scrolling image is to place an <img> element inside a <marquee> element. Although the <marquee> element is not part of the official HTML specification, it is widely supported by most major browsers.

Right to Left

To make your image scroll left (i.e. from right to left), use behavior="scroll" and direction="left". Here's an example:

Source CodeResult
Swimming fish

Left to Right

To make your image scroll right (i.e. from left to right), use behavior="scroll" and direction="right". Example:

Source CodeResult
Spinning arrow

Scroll Up

To make your image scroll up (i.e. from bottom to top), use behavior="scroll" and direction="up". Example:

Source CodeResult
Arrow pointing up

Scroll Down

To make your image scroll down (i.e. from top to bottom), use behavior="scroll" and direction="down". Like this:

Source CodeResult
Arrow pointing down


You can change the scrolling speed of your marquee. For example, scrollamount="1" sets the marquee to a very slow scroll, while scrollamount="20" will make it faster. You can use whatever number you like though. Like this:

Source CodeResult
Swimming fish Swimming fish Swimming fish Swimming fish

More Marquee Codes

You can do much more with HTML marquees than is covered on this page. Here's the full list of marquee codes on this website:

Marquee Generator

Also check out the Marquee Generator.

Marquee Usability

Try to be careful when using HTML marquees. Many web users dislike websites that contain scrolling or bouncing images and other elements, so try to use them tastefully :)