Flash Effect Image Loading with Jquery

Load images with flash effect using jquery. It is very useful script to loading images with nice effect on your web projects and also simple just seven lines of code.


<script type=”text/javascript” src=”http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js”></script>
<script type=”text/javascript”>
var i = 0;
$(‘#imagesdiv img’).clone().appendTo($(‘#imagesdiv’));
$(‘#imagesdiv img’).each(function()
var me = this;
var j = i;
}, i)
i += 100

//HTML Code
<div id=”imagesdiv”>
<img src=”1.jpg” alt=”” />
<img src=”2.jpg” alt=”” />
<img src=”3.jpg” alt=”” />
<img src=”4.jpg” alt=”” />

Permanent link to this article: https://blog.openshell.in/2011/01/flash-effect-image-loading-with-jquery/

Leave a Reply

Your email address will not be published.