Hi there,
i'm trying to make a div that can slide to the left without using jQuery UI, but for some reason the right border of a div twitches during animation. I would appreciate if you could help me.
Here is my code:
-
- var black = $('div.first'),
- red = $('div.second');
- $(black).hover(
- function(){
- $(red).animate({
- left: '-200px',
- width: '200px'
- }, 2000 );
- },
- function(){
- $(red).animate({
- left: '0',
- width: '0'
- } ,2000 );
- }
- );
Thank you!