Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple fade in elements causing tween override warning on console #995

Open
mohomedanees opened this issue Nov 29, 2021 · 0 comments
Open

Comments

@mohomedanees
Copy link

Multiple fade in elements causing tween override warning on console

How can I resolve this issue?

Below is my function

let controllerFade = new ScrollMagic.Controller();

  $('.fade-in').each(function() {
    let tween = new TweenMax.from($(this), 0.7, {autoAlpha: 0, y: '+=40', x: '0', ease:Linear.easeNone});

    // build a scene
    let scene = new ScrollMagic.Scene({
      // duration: 400,
      triggerElement: this,
    })
    .setTween(tween)
    .addTo(controllerFade);
  }); 

Capture

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant