UNPKG

react-spark-scroll

Version:
26 lines (21 loc) 877 B
// we're just loading in the whole shebang here (aka TweenMax) // because it's the simplest thing to do, but all that's really needed // is: TweenLite.js, CSSPlugin, TimelineLite // // Copy this file to create your own spark-scroll-gsap.js if you want to // load in a subset of TweenMax 'use strict'; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; require('gsap'); var _factory = require('react-spark-scroll'); var GSAPAnimator = require('./gsap-animator'); function factory(options) { return _factory(_extends({ animator: { instance: function instance() { return new GSAPAnimator(); } } }, options)); } module.exports = factory;