react-glitch-fx

0.3.0 • Public • Published

react-glitch-fx

npm version

Simply wrap your target element with <GlitchFx /> to start using react-glitch-fx:

import GlitchFx from 'react-glitch-fx/lib/GlitchFx';
 
class Component extends React.Component {
 
  render() {
    const { shouldShow, imageHeight, imageSrc } = this.props;
    return (<GlitchFx>
        <img src="./images/react.png" alt="test" />
    </GlitchFx>)
 
  }
}

Dependents (0)

Package Sidebar

Install

npm i react-glitch-fx

Weekly Downloads

1

Version

0.3.0

License

MIT

Unpacked Size

542 kB

Total Files

9

Last publish

Collaborators

  • andymacdonald