Class: Animate

Animate

Animation plugin.

new Animate (parent, options)

This is called by Viewport.animate.

Name Type Description
parent
options
See:
Fires:
  • event:animate-end

Classes

Animate

Members

deltaHeight

The change in the viewport's height through the animation.

deltaWidth

The change in the viewport's width through the animation.

height

The viewport's height post-animation.

startHeight

The starting viewport height.

startWidth

The starting viewport width.

time

The time since the animation started.

width

The viewport's width post-animation.

Methods

setupPosition ()

Setup startX, startY, deltaX, deltaY, keepCenter.

This is called during construction.

setupZoom ()

Setup startWidth, startHeight, deltaWidth, deltaHeight, width, height`.

This is called during construction.