0.0.1 • Published 2 years ago

skottie-react v0.0.1

Weekly downloads
-
License
BSD 3-Clause
Repository
github
Last release
2 years ago

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

0.0.1

2 years ago

1.0.3-alpha

2 years ago

1.0.2-alpha

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago