Material Motion Exploring solutions that will empower creators with the tools needed to describe and implement rich, interactive motion on any platform. Edit this page · History
Status
Drafting as of Oct 25, 2016

TransitionDirector preconditions feature specification

MVP

A transition can register certain pre-conditions. If any pre-condition fails, the director will not be selected for use in the transition.

Preconditions API: Provide an API for returning preconditions.

Example pseudo-code:

TransitionDirector {
  preconditions() -> [Precondition] {
    return [Precondition({
      return elementExists
    })]
  }
}