UNPKG

@foreverrbum/ethsign

Version:

This package will allow you to electronically sign documents within your application

29 lines (25 loc) 817 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.LottieInteractivity = void 0; var _lottieReact = require("lottie-react"); /** * @author pzhu * @description for complex lottie (animations synced with scroll and cursor) */ var LottieInteractivity = function LottieInteractivity(props) { var options = props.options, _props$style = props.style, style = _props$style === void 0 ? {} : _props$style, _props$mode = props.mode, mode = _props$mode === void 0 ? "scroll" : _props$mode, actions = props.actions; var lottieObj = (0, _lottieReact.useLottie)(options, style); return (0, _lottieReact.useLottieInteractivity)({ lottieObj: lottieObj, mode: mode, actions: actions }); }; exports.LottieInteractivity = LottieInteractivity;