Advertisement
Guest User

Untitled

a guest
Jul 26th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var $body = $('body');
  2.  
  3. var flo = $('.hover').hide();
  4. var tex = $('.text-content').hide();
  5.  
  6. $body.on('mouseenter','.default',function() {
  7.     var $this = $(this);
  8.  
  9.     var offset = $this.offset();
  10.  
  11.     $this.next().css({
  12.         top: offset,
  13.         left: offset,
  14.         minWidth: $this.width()
  15.     }).fadeIn();
  16. });
  17.  
  18. $body.on('mouseout','.hover',function() {
  19.     $(this).delay(100).fadeOut();
  20. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement