Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Ease

常用缓动函数

Hierarchy

  • Ease

Index

Constructors

constructor

Methods

Static backIn

  • backIn(time: number, s?: number): number
  • Parameters

    • time: number
    • s: number = 1.70158

    Returns number

Static backInOut

  • backInOut(time: number, s?: number): number
  • Parameters

    • time: number
    • s: number = 1.70158

    Returns number

Static backOut

  • backOut(time: number, s?: number): number
  • Parameters

    • time: number
    • s: number = 1.70158

    Returns number

Static bounceIn

  • bounceIn(time: number): number
  • Parameters

    • time: number

    Returns number

Static bounceInOut

  • bounceInOut(time: number): number
  • Parameters

    • time: number

    Returns number

Static bounceOut

  • bounceOut(time: number): number
  • Parameters

    • time: number

    Returns number

Static circIn

  • circIn(time: number): number
  • Parameters

    • time: number

    Returns number

Static circInOut

  • circInOut(time: number): number
  • Parameters

    • time: number

    Returns number

Static circOut

  • circOut(time: number): number
  • Parameters

    • time: number

    Returns number

Static cubicIn

  • cubicIn(time: number): number
  • Parameters

    • time: number

    Returns number

Static cubicInOut

  • cubicInOut(time: number): number
  • Parameters

    • time: number

    Returns number

Static cubicOut

  • cubicOut(time: number): number
  • Parameters

    • time: number

    Returns number

Static elasticIn

  • elasticIn(time: number): number
  • Parameters

    • time: number

    Returns number

Static elasticInOut

  • elasticInOut(time: number): number
  • Parameters

    • time: number

    Returns number

Static elasticOut

  • elasticOut(time: number): number
  • Parameters

    • time: number

    Returns number

Static expoIn

  • expoIn(time: number): number
  • Parameters

    • time: number

    Returns number

Static expoInOut

  • expoInOut(time: number): number
  • Parameters

    • time: number

    Returns number

Static expoOut

  • expoOut(time: number): number
  • Parameters

    • time: number

    Returns number

Static flash

  • flash(time: number): number
  • 反复 0>1>0 匀速8次

    Parameters

    • time: number

    Returns number

Static getEase

  • getEase(ease: Record<string, unknown>): (time: number) => number
  • 获取缓动函数

    Parameters

    • ease: Record<string, unknown>

    Returns (time: number) => number

    缓动函数

      • (time: number): number
      • 获取缓动函数

        Parameters

        • time: number

        Returns number

        缓动函数

Static heart

  • heart(time: number): number
  • 心跳 0>1>0>1>0 quad动画

    Parameters

    • time: number

    Returns number

Static linearIn

  • linearIn(time: number): number
  • Parameters

    • time: number

    Returns number

Static linearInOut

  • linearInOut(time: number): number
  • Parameters

    • time: number

    Returns number

Static linearNone

  • linearNone(time: number): number
  • 线性缓动

    Parameters

    • time: number

      缓动时间点

    Returns number

Static linearOut

  • linearOut(time: number): number
  • Parameters

    • time: number

    Returns number

Static pulse

  • pulse(time: number): number
  • 冲击 0>1>0 sine动画

    Parameters

    • time: number

    Returns number

Static quadIn

  • quadIn(time: number): number
  • Parameters

    • time: number

    Returns number

Static quadInOut

  • quadInOut(time: number): number
  • Parameters

    • time: number

    Returns number

Static quadOut

  • quadOut(time: number): number
  • Parameters

    • time: number

    Returns number

Static quartIn

  • quartIn(time: number): number
  • Parameters

    • time: number

    Returns number

Static quartInOut

  • quartInOut(time: number): number
  • Parameters

    • time: number

    Returns number

Static quartOut

  • quartOut(time: number): number
  • Parameters

    • time: number

    Returns number

Static quintIn

  • quintIn(time: number): number
  • Parameters

    • time: number

    Returns number

Static quintInOut

  • quintInOut(time: number): number
  • Parameters

    • time: number

    Returns number

Static quintOut

  • quintOut(time: number): number
  • Parameters

    • time: number

    Returns number

Static shake

  • shake(time: number): number
  • 震动 0>1>0>-1>0 quad动画

    Parameters

    • time: number

    Returns number

Static sineIn

  • sineIn(time: number): number
  • Parameters

    • time: number

    Returns number

Static sineInOut

  • sineInOut(time: number): number
  • Parameters

    • time: number

    Returns number

Static sineOut

  • sineOut(time: number): number
  • Parameters

    • time: number

    Returns number

Static strongIn

  • strongIn(time: number): number
  • Parameters

    • time: number

    Returns number

Static strongInOut

  • strongInOut(time: number): number
  • Parameters

    • time: number

    Returns number

Static strongOut

  • strongOut(time: number): number
  • Parameters

    • time: number

    Returns number

Static swing

  • swing(time: number): number
  • 递减震动 0>1>0>-1>0 0>0.5>0>-0.5>0 quad动画

    Parameters

    • time: number

    Returns number

Static wave

  • wave(time: number): number
  • 波纹 0>1 0>1 0>1 0>1 匀速

    Parameters

    • time: number

    Returns number