Class Scene

Hierarchy

  • Scene

Constructors

  • The Scene class provides a way to control groups of Tweenables. It is lightweight, minimalistic, and meant to provide performant Tweenable batch control that users of Shifty might otherwise have to implement themselves. It is not a robust timeline solution, and it does not provide utilities for sophisticated animation sequencing or orchestration. If that is what you need for your project, consider using a more robust tool such as Rekapi (a timeline layer built on top of Shifty).

    Please be aware that Scene does not perform any automatic tween cleanup. If you want to remove a Tweenable from a Scene, you must do so explicitly with either remove or empty.

    See the Pen Shifty Scene Demo by Jeremy Kahn (@jeremyckahn) on CodePen.

    See

    https://codepen.io/jeremyckahn/pen/qvZKbe

    Parameters

    Returns Scene

Properties

_tweenables: Tweenable[] = []

Accessors

Methods

Generated using TypeDoc