hoverexample

Javascript code posted by foszkeh
created at 04 Feb 22:39

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
12
13
   $('#squareex').on('mouseenter mouseleave', function(event){
       if(event.type == 'mouseenter'){
           $('#squareex').stop().animate({
              width: '150px',
               height: '150px'
           }, 200);
       } else{
           $('#squareex').stop().animate({
              width: '100px',
               height: '100px'
           }, 200);
       }
    });
393 Bytes in 2 ms with coderay