Denis99992016-03-19 05:18:07
Denis9999, 2016-03-19 05:18:07

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

1 answer(s)
Anton Filippov, 2016-03-19

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 question

Ask a Question

731 491 924 answers to any question