Answer the question
In order to leave comments, you need to log in
animate not working with animation type?
This code works without specifying the animation type - easeInSine, specifying - no, I tried other types, it does not work either. Why is the syntax correct?
$(document).ready(function() {
$('#dashboard').hover (
function() {
$(this).animate( {marginLeft: '0px',backgroundColor: 'rgb(27,45,94)'},800,'easeInSine');
//$(this).addClass( "fon" );
}
,
function() {
$(this).animate({marginLeft: '-160px',backgroundColor: 'rgb(55,85,124)' },800, 'easeInSine'
);
});
});
Answer the question
In order to leave comments, you need to log in
this is a non-standard animation type, you need to include gsgd.co.uk/sandbox/jquery/easing
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question