@foreverrbum/ethsign
Version:
This package will allow you to electronically sign documents within your application
20 lines (14 loc) • 425 B
JavaScript
/**
* @author pzhu
* @description for complex lottie (animations synced with scroll and cursor)
*/
import {useLottie, useLottieInteractivity} from 'lottie-react';
export const LottieInteractivity = (props) => {
const {options, style={}, mode="scroll", actions} = props;
const lottieObj = useLottie(options, style);
return useLottieInteractivity({
lottieObj,
mode,
actions
})
}