lit-motion
TypeScript icon, indicating that this package has built-in type declarations

0.5.1 • Public • Published

Lit Motion

This is a simple Lit adaptor for the fantastic Motion One library.

Getting started

npm i lit-motion

Usage

The main export is a directive. See index.ts for documentation.

Alternatives

  • @lit-labs/motion - This is Lit's first-party animation library. It is lower-level than Motion One in some respects. We recommend using this library over @lit-labs/motion for two specific reasons:

    1. It's much easier to use.
    2. Cross-platform differences are polyfilled/gracefully handled. See https://motion.dev/guides/waapi-improvements for more information.

    The most important difference is this library automatically handles persisting final animation keyframe beyond the animation without using "forward". See https://motion.dev/guides/waapi-improvements#persisting-animation-state for more details.

/lit-motion/

    Package Sidebar

    Install

    npm i lit-motion

    Weekly Downloads

    1

    Version

    0.5.1

    License

    Apache-2.0

    Unpacked Size

    41.7 kB

    Total Files

    19

    Last publish

    Collaborators

    • junsheaf