Slide-In Images
This image slides in from the right then stops. You will need to refres this page to see the effect again.
Example:
Code:
Continuous Image Scroll (RTL)
To make the image scroll continuously, we simply change the value of the behavior
attribute to scroll
(i.e. behavior="scroll"
).
Example:
Code:
Faster Scrolling
This example uses scrollamount="30"
to increase the scroll speed.
Faster scrolling works better on continuous scrolling as opposed to slide-in images. This is because slide-in images stop after sliding in. If it slides in too fast, many users might miss the slide-in effect altogether.
Example:
Code:
Left to Right (LTR)
Slide-In Image
This image slides in from the left, then stays where it is. You will need to refresh this page to see the effect again.
Example:
Code:
Continuous Image Scroll (LTR)
Again, we change the behavior
attribute to scroll
in order to make the image scroll continuously.
Example:
Code:
Faster Scrolling
This example uses scrollamount="30"
to increase the scroll speed.
Example:
Code:
Image bouncing back and forth:
Normal Speed
This image bounces at the default speed.
Example:
Code:
Faster Bounce
This example uses scrollamount="30"
to speed up the scrolling/bouncing image.
Example:
Code:
Image Scrolling Up:
This image has a vertical scroll - it starts at the bottom and moves up. As with some of the previous examples, you can adjust the scroll speed by using the scrollamount
attribute. You could also create a vertical slide by using behavior="slide"
.
Example:
Code:
Images Scrolling Down:
This image also has a vertical scroll, but this time it starts at the top and moves down.
Example:
Code:
Various Scrolling Speeds:
This example demonstrates 3 different scrolling speeds.
Example:
Code:
Jumping Images
The following example uses the scrolldelay
attribute to slow the scrolling image down and make it look like it's jumping across the screen. Actually, the example also uses the scrollamount
attribute to increase the size of each jump.
Example:
Code: