0.0.0 • Published 5 years ago

material-motion-views-react v0.0.0

Weekly downloads
3
License
Apache-2.0
Repository
github
Last release
5 years ago

Material Motion: React adaptor

React components that make it easy to add gestures to a React application with Material Motion.

Current version: Test status Code coverage HEAD: Test status Code coverage

Chat

Status: Abandoned

🚨 Material Motion has not been used in a production application at Google. It is unstable and unsupported. 🚨

Material Motion is an experimental project to bring gestural interaction to the Web.

The React adaptor was originally written to aid in attaching streams to/from a tree of React components. Since then, we've discovered JSS, a framework-agnostic way to attach a stream of styles to a document's style sheet. Because it interacts directly with the browser's style engine, it bypasses React rendering to minimize the amount of work done per-frame. That makes JSS a more performant than this package.

The Material Motion team recommends JSS. This React adaptor is being published for archival purposes, but will not be maintained going forward.

Usage

There are two components in this package, AttachStreams and TransformTarget.

See TossableDemo for an example of how to use them.

Installation

yarn add material-motion-views-react

License

Apache 2.0