Getting started
Installing
1
npm install @infinityfx/lively
Importing
Lively exports 2 components from @infinityfx/lively, the Animate and LayoutGroup components.
1
import { Animate, LayoutGroup } from '@infinityfx/lively';In addition Lively also exports from 2 submodules; @infinityfx/lively/hooks and @infinityfx/lively/presets. These submodules can be used in tandem with the main module and provide extra utilities to help create more complex animations.
1
import { TextAnimation, ViewAnimation } from '@infinityfx/lively/presets';Usage
Play a simple fading animation when the component mounts.