Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var $body = $('body');
- var flo = $('.hover').hide();
- var tex = $('.text-content').hide();
- $body.on('mouseenter','.default',function() {
- var $this = $(this);
- var posTop = $this.offset();
- var posLeft = $this.offset();
- var minW = $this.width();
- $this.next().css({
- top: posTop,
- left: posLeft,
- minWidth: minW
- }).fadeIn();
- });
- $body.on('mouseout','.hover',function() {
- $(this).delay(100).fadeOut();
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement