React component to create images tiltshift
MIT License
React component to create images tiltshift.
import TiltShift from 'react-tiltshift'
<TiltShift src="../images/sf.jpg" position="38" width="600" />
You just need to pass the src
prop. You can pass any attribute you'd normally pass to a img
html tag. You can also pass the following specific props to configure the effect:
Only webkit browsers as this effect requires -webkit-mask-image
, a non-standard css property that is not likely to arrive in non-webkit browsers anytime soon.
Before:
After: