Animated Zangief component for React.
https://ossan-engineer.github.io/react-zangief
yarn add react-zangief
import React from 'react';
import ReactDOM from 'react-dom';
import Zangief from 'react-zangief';
const App = () => {
return <Zangief action="stand" size={16} flip />;
}
ReactDOM.render(<App />, document.querySelector('#app'));
Name | Type | Default | Description |
---|---|---|---|
action | 'default' | 'stand' | 'walk' | 'jump' | 'attack' | 'damaged' | 'default' | Animation type. |
size | number | 32 | The size of Zangief. |
flip | boolean | false | Flip Zangief direction. |