API

  • Action

    A process that changes a value over time.

    • Color Tween

      Blends from one color to another using linear interpolation.

    • Delay

      A dummy action that completes after a set duration of time.

    • Physics

      Simulate velocity, acceleration, friction and spring physics.

    • Pointer

      Tracks mouse and touch movement.

    • Spring

      An accurate, versatile spring animation.

    • Track Offset

      Track the offset of another Action.

    • Tween

      Change a value over a specific duration of time.

    • Value

      A simple value that updates when a new number is passed to `set`.

  • Action composition

    An action that composes two or more actions.

    • Blend Tweens

      Blend between two tweens using a bezier interpolator.

    • Chain

      Chain a linear sequence of actions.

    • Composite

      Control multiple named actions simultaneously.

    • Cross Fade

      Fade between any two actions.

    • Parallel

      Control playback of multiple actions in parallel.

    • Stagger

      Stagger the start of a series of a actions.

    • Timeline

      Compose tweens into a single, scrubbable timeline.

  • Calculators

    Simple functions useful in UI calculations.

  • Easing

    Functions that speed or slow a tween over time.

  • Plugins

    Extend the functionality of Popmotion with these optional plugins

    • Draggable

      Make any DOM node or React component draggable with one line of code!

    • React

      Popmotion animation, tweening and input tracking - in React!

    • Spinnable

      Make any DOM node or React component spinnable!

  • Render Loop

    Schedule functions to run on Popmotion's internal render loop.

  • Renderer

    Optimised get/set renderers.

    • CSS

      Optimised CSS renderer.

    • DOM Scroll

      Scroll viewport and DOM elements with Popmotion tweens and physics.

    • SVG Path

      Optimised SVG Path renderer.

    • SVG

      Optimised SVG renderer.

  • Transformers

    Simple composable functions that take a value and return a new one.

  • Value Types

    Handle special value types with collections of parsers, transformers and tests.