ScrollMagic icon indicating copy to clipboard operation
ScrollMagic copied to clipboard

Feature Request: Is Intersection observer is supported?

Open shmdhussain opened this issue 6 years ago • 4 comments

Thanks team for giving us this nice plugin, Like to know one thing , Is intersection observer is supported in scrollmagic? else do you have any plans to do it in future?

shmdhussain avatar Dec 05 '17 08:12 shmdhussain

Since Intersection Observer is getting famous, is it on the road?

dangelion avatar Nov 25 '18 18:11 dangelion

Also interested in the status here: Is it coming?

Would you guys say IntersectionObserver results in better performance compared to this ScrollMagic pattern for playing videos only in view?

document.querySelectorAll("video.play-in-view-only").forEach((video) => {
  let scene = new ScrollMagic.Scene({
    triggerElement: video,
    triggerHook: 1,
    duration: () => window.innerHeight + el.clientHeight
  })
  .on("enter", () => { video.play() })
  .on("leave", () => { video.pause() })
  .addTo(controller)
})

katerlouis avatar Jun 26 '19 08:06 katerlouis

@katerlouis interesting question. I'm interested too in an answer

dangelion avatar Dec 24 '19 16:12 dangelion

I'm also interested in how the Intersection Observer can be used either within/with this library.

stevengrimaldo avatar Dec 25 '19 17:12 stevengrimaldo