Flashing object using fadeTo


/ Published in: jQuery
Save to your folder(s)



Copy this code and paste it in your HTML
  1. function doFlash(target)
  2. {
  3. $(target).fadeTo(500, 0.5, function() {
  4. $(target).fadeTo(500, 1, function() {
  5. doFlash(target);
  6. });
  7. });
  8. }
  9.  
  10.  
  11. $(document).ready(function() {
  12. doFlash("img");
  13. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.