Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TimingFunction

TimingFunction

Timing function.

Hierarchy

  • TimingFunction

Index

Constructors

Methods

Constructors

constructor

  • Creates a timing function with the specified name. Currently supported functions are linear, easeIn, easeOut, easeInEaseOut.

    Parameters

    • name: string

    Returns TimingFunction

Methods

getValue

  • getValue(x: number): number
  • Returns the interpolated y for the specified x value using the current function i.e. easeIn, easeInEaseOut etc.

    Parameters

    • x: number

    Returns number

Generated using TypeDoc