Docs

Everything You Need to Know

$.anim

Intro

Truck Tank

Truck has a module for animation call $.anim. This is a tween library. It takes the properties you provide and converts them into CSS3 animations where appropriate. This is not something you would use to create a game. That said, Truck's Anim method creates smooth animations that can be chained together to create complex results. The API is easy to understand and the resulting animation code is easy to reason about. Although Truck comes with animations already implemented in the UI, if you are creating something custom, you can use Truck Animto add that extra pizzazz.

Because Truck Anim uses CSS3 transitions, browsers may sometimes fudge the tweens in unpredictable ways. This depends on the amount of memory, processor and other factors available to the browser. If you need very precise controller over every aspect of your animations, you should look at Raphael, Processing, Green Sock, D3, Velocity, etc.