This page contains HTML code for creating slide-in images.
You can create a slide-in image - or zoom in image - in HTML using
<marquee> tags. You can make your image slide in from any direction - left, right, top, or bottom. Also, you can use any image - photos, animated gifs, icons, etc.
Note: Because slide-in images slide in and then stop, you may need to refresh this page a few times in order to view all examples on the page. This is because the images all start sliding as soon as the page loads.
Top to Bottom
To make your image slide in from the top, use
behavior="slide" direction="down". In this example, I've stacked the same image on top of each other in order to highlight the effect of the slide-in image. Different browsers display slide-in images differently, and it would be easy to miss the effect with only a small image.
Bottom to Top
To make your image slide in from the bottom, use
behavior="slide" direction="up". Example:
Right to Left
To make your image slide in from the right, use
behavior="slide" direction="left". Like this:
Left to Right
To make your image slide in from the left, use
behavior="slide" direction="right". Like this:
Changing the Speed
You can speed up your slide-in image - or slow it down if you prefer. To do this, just add the
scrollamount attribute. For example,
scrollamount="1" results in a very slow slide, while
scrollamount="50" will make the image zoom-in - perhaps too fast for most people to notice it zooming in.
Try to be careful when using marquees in HTML. Many web users dislike websites that contain scrolling images and other elements, so try to use them tastefully :)
Also note that the
<marquee> tag is not part of the official HTML specification. Having said that, it is recognized by most major browsers.
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: