skip to content

Stop/start animation

4th May 2006

Eclipse of the sun animationEclipse of the sun animation

Option 1
Click the above image to start the animation.
Click off the image to stop.

Eclipse of the sun animationEclipse of the sun animation

Option 2
Hover over the above image to start the animation.


Information

Back to the simple stuff again...

If you have a web page that uses animated gifs to demonstrate a principle but you don't want the animation to play endlessly, then this may be the answer.

This is a simple way to have a static image when the page first loads and requires interaction with the visitor to start and stop the animation.

The static image is held as a background image whilst the animated gif loads into the page but remains invisible until your visitor either click the image or hovers over the image (the choice is yours).

Both methods are shown above and they work in all the major browsers. Opera requires the mouse click to be held for option 1. You can even click option 1 AND hover over option 2 to see both animations

This degrades well for CSS off and text only browsers.

Copyright

You may use this method on your personal 'non-profit' web site without seeking my permission. A link back to CSSplay is always appreciated.

Commercial usage is also permitted without seeking approval, but I would ask that a donation is considered to support my work on CSSPlay.

If you are having problems integrating any of my demonstrations into your website then I now offer a service to fault find and correct any errors that you may have introduced. Please email me for more information.




Recommended Sites

CSSplay web design/assistance

"The citroen.co.uk web site uses
CSS Play code for the site drop down menus.
This code works seamlessly in IE 6 & 7, and is an excellent solution to the Creative requirements of the site."

Damon Clark - Brandwidth


Advertise with CSSplay

CSS play pages

CSS (Design) - TOP.ORG

CSS play recommend

PSD to HTMLSitegrinderFree, practical CSS menus, layouts, and examplesEarn from your site today with Netklix text ads