react-distort-image
v0.1.0
Published
```js DistortedImage.propTypes = { image1: PropTypes.string.isRequired, image2: PropTypes.string.isRequired, displacementImage: PropTypes.string.isRequired, intensity: PropTypes.number, speedIn: PropTypes.number, speedOut: PropTypes.number,
Downloads
3
Readme
react-distort-image
DistortedImage.propTypes = {
image1: PropTypes.string.isRequired,
image2: PropTypes.string.isRequired,
displacementImage: PropTypes.string.isRequired,
intensity: PropTypes.number,
speedIn: PropTypes.number,
speedOut: PropTypes.number,
hovering: PropTypes.bool,
easing: PropTypes.object,
};
DistortedImage.defaultProps = {
intensity: 1,
speedIn: 1.6,
speedOut: 1.2,
easing: Expo.easeOut, // GSAP easings
};