@pixi/react-animated
TypeScript icon, indicating that this package has built-in type declarations

7.1.1 • Public • Published

React Spring

Use "@pixi/react-animated" with "@pixi/react" for react-spring compatible animated components.

Usage

import React from 'react';
import { Spring } from 'react-spring';
import { Texture } from 'pixi.js';
import { Stage, Sprite } from '@pixi/react-animated';

const App = () => (
  <Stage>
    <Spring native from={{ x: 0, y: 0 }} to={{ x: 200, y: 200 }}>
      {(props) => <Sprite texture={Texture.WHITE} tint={0xff0000} {...props} />}
    </Spring>
  </Stage>
);

Readme

Keywords

none

Package Sidebar

Install

npm i @pixi/react-animated

Weekly Downloads

503

Version

7.1.1

License

MIT

Unpacked Size

29.9 kB

Total Files

12

Last publish

Collaborators

  • cyberdex
  • baseten
  • doormat23
  • zyie