This is an unstyled version of a jQuery-based on-demand GIF loader.
It starts by displaying a still image, and fetches the actual GIF on a click. The loading can be cancelled. Once loaded, the playback can be stopped and restarted. The autoplay after loading is optional. Neat and tidy markup, all in about 1KB of JavaScript code.
4 Responses
Pro
Alex Pankratov
This is an unstyled version of a jQuery-based on-demand GIF loader.
It starts by displaying a still image, and fetches the actual GIF on a click. The loading can be cancelled. Once loaded, the playback can be stopped and restarted. The autoplay after loading is optional. Neat and tidy markup, all in about 1KB of JavaScript code.
Here is the demo.
4 months ago
Pro
Juani Ruiz EchazĂș
Would love to be able to view the demo... link is broken :S
4 months ago
Pro
Alex Pankratov
Thanks, Juani. Fixed. The perils of posting at 1AM in the morning.
4 months ago
Rebound
Spit and polish
by Alex Pankratov
Spruced up version of the GIF loaded/player that's going onto my portfolio page.
Clicky-click for a live demo
(edit) The code and the demos are now GitHub.
4 months ago