JavaScript

A5.ViewBoxAnimation Object

IN THIS PAGE

Description

Definition of a redraw animation in the view box.

Properties

typestring

The type of animation to do. There are three basic types. The "slide" type will slide the old HTML out while the new HTML slides in. The "swap" type will slide the old HTML out before sliding the new HTML in from the same edge. The "fade" type will cross fade the new and old HTML. The "slide" and "swap" types are suffixed with the specific edge to animate to ("left", "right", "top" or "bottom"). Values can be "slide-left", "slide-right", "slide-top", "slide-bottom", "swap-left", "swap-right", "swap-top", "swap-bottom" or "fade".

durationnumber

The duration in milliseconds that the animation should take.

tweenstring

The CSS timing function to use for the animation. The default is "ease-in-out".