Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(function(){
- $("#login").prepend('<div id="glowContainer"><div id="glow"></div></div>');
- $("#glowContainer").hide();
- $("input").focus(function(){
- $("#glowContainer").stop().fadeIn();
- });
- $("input").blur(function(){
- $("#glowContainer").stop().fadeOut();
- });
- function animateGlow(){
- $("#glow").css({backgroundPosition:"0 0"})
- .animate({backgroundPosition:"-3000px 0"},25000,"linear",animateGlow);
- }
- animateGlow();
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement