Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
pin,
pinSettings,
tween,
timeline,
context,
indicators,
enabled,
...sceneParams
} = this.props;
this.check(children, pin, sceneParams);
const element = this.ref.current;
sceneParams.triggerElement = sceneParams.triggerElement === null ? null : sceneParams.triggerElement || element;
this.scene = new ScrollMagic.Scene(sceneParams);
this.initEventHandlers();
if (classToggle) {
this.setClassToggle(this.scene, element, classToggle);
}
if (pin || pinSettings) {
this.setPin(this.scene, element, pin, pinSettings);
}
if (indicators) {
this.scene.addIndicators({ name: ' ' });
}
if (tween) {