I've noticed that animateOpen()
, animateClose()
and animateToggle()
are doing the same function, meaning that any one of them can replace the others.
The only difference that I noticed was that the speed of the animation varies from one method to the other as follows:
animateOpen()
, the animation while opening is faster than the animation while closing.animateClose()
, the animation while closing is faster than the animation while opening.animateToggle()
, both speeds are equal.
So, my question is:
Am I missing something? or do I just have to check isOpened()
before using any of them?
I'm asking this question because my problem raised when I wrote animateClose()
somewhere, thinking that if the sliding drawer is already closed then no action will be taken, but I found out that it behaves exactly the same as animateToggle()
.