How to use the scrollmagic.default.Scene function in scrollmagic

To help you get started, we’ve selected a few scrollmagic examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github bitworking / react-scrollmagic / src / SMScene.js View on Github external
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) {

scrollmagic

The javascript library for magical scroll interactions.

(MIT OR GPL-3.0+)
Latest version published 4 years ago

Package Health Score

61 / 100
Full package analysis