SHARE
TWEET

Untitled

a guest Apr 26th, 2019 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var animating = false,
  2.     duration = 1200;
  3.  
  4. $(".featured_video").on("hover", function(e) {
  5.     if (e.type == "mouseenter" && !animating) {
  6.         animating = true;
  7.         //do [duration]ms animation
  8.         setTimeout(function(){
  9.             animating = false;
  10.         }, duration);
  11.     }
  12. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top