This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm’s 400,000 packages pre-installed, including
preact-motion with all
npm packages installed. Try it out:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
Most of the changes are now present in react-motion. Just use
preact-compat and everything should
work out of the box. This module won't be maintained anymore.
Please see the React-Motion documentation for usage instructions.
Be compatible out of the box with Preact 8 and upper. No preact-compat requirement. No react dependency.
Stay as close as possible to React-Motion, including:
Better, smaller packaging:
jsnext:mainentry point ;
Due to semver limitations, this package won't follow the React-Motion versioning, so it can make major version bumps without waiting for a major version bump upstream. See CHANGELOG.md for informations about supported React-Motion version.
The current production-ready bundle is about 4KB (minified+gzip). This has been achieved by using Rollup instead of Webpack, and removing prop-types declarations and dependency.
npm install --save preact-motion
<script src="https://unpkg.com/preact-motion/build/preact-motion.prod.js"></script> (Module exposed as `PreactMotion`)