I’ve been searching around for the answer and everything seems to lead that this code would work. Any ideas why its not?
$('.entertext').click(function(){
$('.entertext').animate({opacity:0});
//$('.move').animate({top:200, left:350});
//$('.move').animate({top:0, left:0});
$('.move').animate({"left": "-=350px", "top": "-=200px"});
if ($('.move').left > 50) {
$('.homepage').animate({opacity:1.0});
}
//$(this).animate({left:100});
});
Replace
$('.move').leftby
$('.move').offset().leftOr
$('.move').css('left')depending on your need.