Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $(function(){
  2.    
  3.     $("#login").prepend('<div id="glowContainer"><div id="glow"></div></div>');
  4.     $("#glowContainer").hide();
  5.     $("input").focus(function(){
  6.          $("#glowContainer").stop().fadeIn();
  7.     });
  8.     $("input").blur(function(){
  9.          $("#glowContainer").stop().fadeOut();
  10.     });
  11.    
  12.     function animateGlow(){
  13.         $("#glow").css({backgroundPosition:"0 0"})
  14.             .animate({backgroundPosition:"-3000px 0"},25000,"linear",animateGlow);
  15.     }
  16.    
  17.     animateGlow();
  18.    
  19. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement