Please note, this is a STATIC archive of website www.cssplay.co.uk from 19 Oct 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.
Mobile Friendly Website

CSSPLAY

Doing it with style

CSS DEMOSStop/start animation

Date : 4th May 2006

For all modern browsers


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.


Because of all the time and effort spent in producing this demonstration I would ask that you respect my copyright.

  1. If you are using this on a personal web site then please retain the copyright comment in the stylesheet.
    A support donation is now required for this demonstration.
  2. If you are using this on a commercial web site, or as a paying job for a client, then please email me asking for permission - stu{at}cssplay.co.uk and again a support donation is required.
  3. 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.

Support CSSPLAY

Your donations keep CSS PLAY running.
If your donation is for the use of a demo then please email me with the demo url after making your donation.


CUSTOM SEARCH

Facebook Twitter rss feed Facebook Fan Page