A Lit animation library
APACHE-2.0 License
This is a simple Lit adaptor for the fantastic Motion One library.
npm i lit-motion
The main export is a directive. See index.ts
for documentation.
@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:
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.