Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var animating = false,
- duration = 1200;
- $(".featured_video").on("hover", function(e) {
- if (e.type == "mouseenter" && !animating) {
- animating = true;
- //do [duration]ms animation
- setTimeout(function(){
- animating = false;
- }, duration);
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement