skottie-react
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

skottie-react

Skottie player for react

NPM JavaScript Style Guide

Install

npm install --save skottie-react

Usage

Place skottiekit.wasm file in your public directory

import React from 'react'

import { SkottiePlayer } from 'skottie-react'
import 'skottie-react/dist/index.css'
import data from './data.json';

const App = () => {
  return <SkottiePlayer 
          animationData={data} // Load animation from data.json
          assetPath={'/images'} // Fetch assets (if extracted) from ${HOST_ADDR}/images
          skottiePath='/' // Fetch skottiekit.wasm from ${HOST_ADDR}/skottiekit.wasm
          height={800} width={800} /> 
}

export default App

License

BSD 3-Clause

Readme

Keywords

none

Package Sidebar

Install

npm i skottie-react

Weekly Downloads

2

Version

0.0.1

License

BSD 3-Clause

Unpacked Size

6.19 MB

Total Files

9

Last publish

Collaborators

  • lqbrqt