Skip to content

Pin two scenes to one element #27

Open

Description

@tomasz89nowak

Is it possible to pin two or more scenes to one element? An equivalent of this in the original API:
https://scrollmagic.io/examples/expert/cascading_pins.html

    new ScrollMagic.Scene({ triggerElement: "#trigger", duration: 150 })
      .setPin("#pin")
      .setClassToggle("#pin", "green")
      .on("enter leave", updateBox)
      .addTo(controller);

    new ScrollMagic.Scene({ triggerElement: "#trigger", duration: 150, offset: 300 })
      .setPin("#pin")
      .setClassToggle("#pin", "green")
      .on("enter leave", updateBox)
      .addTo(controller);

Activity

  1. iworkinprogress commented on Oct 2, 2020

    @iworkinprogress

    You able to figure out how to do this?

  2. jimjiminyjimjim commented on May 12, 2021

    @jimjiminyjimjim

    Looking for the same solution - any ideas? Or at least a way to unpin it on the fly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions