Answer the question
In order to leave comments, you need to log in
Animation sequence?
There is such a line
block.stop().animate({width: widthItem, opacity: 1}, 500);
Answer the question
In order to leave comments, you need to log in
In addition. Tricky and complex animations can be done very well with @keyframes. Here's an example: jsfiddle.net/IonDen/nmpkkaqs first changes the width, then the transparency. Can be very flexibly configured. Look for example this article: https://css-tricks.com/snippets/css/keyframe-anima... or this generator: cssanimate.com
You need an animation queue as far as I understand.
Read here for example:
professorweb.ru/my/javascript/jquery/level2/2_5.php
There is even a specific code example.
You can do it like this jsfiddle.net/9h32swz4/1 or like this
var block = $('#iddd'),
widthItem = 300;
block.animate({width: widthItem}, 1500).delay(800).animate({'opacity':'1'},1500)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question