Skip to main content

Feature: Transitions

Posted in

One more simple and cool feature would be transitions. If someone is interested in that and gets the time, this could become very nice.

Transitions could be:

linear (default)
quad in
quad out
quad in:out
cubic in
cubic out
cubic in:out
quart in
quart out
quart in:out
quint in
quint out
quint in:out
pow in
pow out
pow in:out
expo in
expo out
expo in:out
circ in
circ out
circ in:out
sine in
sine out
sine in:out

Here´s a code snipped the implements the algorithms: http://github.com/mootools/mootools-core/blob/master/Source/Fx/Fx.Transitions.js

greetings André

A demo of the transitions

A demo of the transitions could be viewed here: http://www.robertpenner.com/easing/easing_demo.html

Interesting, all of them may

Interesting, all of them may be a bit much for the code space, but I'll keep an eye on them for the future, maybe even the stepper TL engine would be better.

!c