All Projects → BenoitZugmeyer → preact-motion

BenoitZugmeyer / preact-motion

Licence: MIT license
A fork of React-Motion to be used with Preact

Programming Languages

javascript
184084 projects - #8 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to preact-motion

preact-views
📺 Named views for Preact, with easy-as-pie linking between them.
Stars: ✭ 39 (+39.29%)
Mutual labels:  preact, preact-components
preact-custom-scrollbars
⇅ Preact scrollbars component
Stars: ✭ 20 (-28.57%)
Mutual labels:  preact, preact-components
preact-polka-ssr
Preact SSR using Polka
Stars: ✭ 27 (-3.57%)
Mutual labels:  preact, preact-demos
preact-token-input
🔖 A text field that tokenizes input, for things like tags.
Stars: ✭ 57 (+103.57%)
Mutual labels:  preact, preact-components
preact-mdc
material design components for preact using material-components-web sass styles (for live demo click the link below)
Stars: ✭ 23 (-17.86%)
Mutual labels:  preact, preact-components
preact-perf-profiler
A HOC to enable measuring rendering performance for Preact components
Stars: ✭ 18 (-35.71%)
Mutual labels:  preact, preact-components
preact-component-console
A console emulator for preact.
Stars: ✭ 29 (+3.57%)
Mutual labels:  preact, preact-components
Scenejs
🎬 Scene.js is JavaScript & CSS timeline-based animation library
Stars: ✭ 2,019 (+7110.71%)
Mutual labels:  preact, motion
preact-bind-group
Preact Component to Group Form fields onChange Events to a single Callback
Stars: ✭ 25 (-10.71%)
Mutual labels:  preact, preact-components
preact-integrations
A collection of sample apps demonstrating Preact's compatibility with various 3rd party libraries
Stars: ✭ 33 (+17.86%)
Mutual labels:  preact, preact-demos
preact-compat-example
🚤 Demo of preact-compat + react-toolbox to reduce build size by 95%.
Stars: ✭ 52 (+85.71%)
Mutual labels:  preact, preact-demos
preact-route-async
Easy asynchronous loading for your router components. For 440B.
Stars: ✭ 36 (+28.57%)
Mutual labels:  preact, preact-components
fireworks-js
🎆 A simple fireworks library! Ready to use components available for React, Vue 3, Svelte, Angular, Preact, Solid, and Web Components.
Stars: ✭ 550 (+1864.29%)
Mutual labels:  preact
coderplex
(Old) Frontend for coderplex.org
Stars: ✭ 40 (+42.86%)
Mutual labels:  preact
parcel-examples
Parcel project examples for React, Vue, preact, VanillaJS and jQuery.
Stars: ✭ 26 (-7.14%)
Mutual labels:  preact
revite
Revolt client built with Preact.
Stars: ✭ 606 (+2064.29%)
Mutual labels:  preact
universal-progressive-todos
A Todo list with universal JavaScript & Progressive Enhancement
Stars: ✭ 30 (+7.14%)
Mutual labels:  preact
esri-preact-pwa
An example progressive web app (PWA) using the ArcGIS API for JavaScript built with Preact
Stars: ✭ 13 (-53.57%)
Mutual labels:  preact
snap-state
State management in a snap 👌
Stars: ✭ 23 (-17.86%)
Mutual labels:  preact
WorkerStore
Small React state container running inside WebWorker
Stars: ✭ 32 (+14.29%)
Mutual labels:  preact

Deprecation warning

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.

Preact-Motion

Build Status

This is a fork of the well known React-Motion library customized to support Preact out of the box.

Please see the React-Motion documentation for usage instructions.

About this fork

Goals

  • 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:

    • same API ;
    • same developpers tools (flow, prop-types) ;
    • same tests and demos.
  • Better, smaller packaging:

    • expose a jsnext:main entry point ;
    • use Rollup to provide smaller packages ;
    • other tweaks to make production bundles smaller.

Versioning

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.

Bundle size

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.

Install

  • Npm: npm install --save preact-motion

The NPM package requires process.env.NODE_ENV to be defined, so you should look at stuff like webpack DefinePlugin or rollup-plugin-replace to be able to use it in a browser.

  • 1998 Script Tag:
<script src="https://unpkg.com/preact-motion/build/preact-motion.prod.js"></script>
(Module exposed as `PreactMotion`)

Demos

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].