camwiegert/in-view

still maintained?

DanielRuf opened this issue ยท 11 comments

Is this project still actively maintained?

It would appear not :/ Looks like I'm going to have to look for another module now, as I've just found out this one doesn't support dynamically added content. Eugh

@youradds have you found one? ๐Ÿ˜„

@DanielRuf interesting (and clever) solution by Mr. Walsh, however that does not feel very clean to me. I'd rather use a MutationObserver, which is the solution I am pursuing right now, but I was wondering if there was another in-view library that had this functionality baked-in.

Thank you for your answer ๐Ÿ™‚

@voidgraphics I ended up using inview, but when I added dynamic content I then just did this to refresh the DOM elements:

window.inView('.photo').check();

Works well for me :)

@voidgraphics what did you come up with for mutationobserver?

I ended up still using this library and adding another MO on top, but that felt really hacky and dirty so I wouldn't recommend going that route.

I think @youradds's suggestion might be better.

I found this one.. https://github.com/russellgoldenberg/scrollama - trying to cut my ties with jQuery and move to be more native. It uses IntrospectionObserver which should be lighter on the site.

ScrollMagic is probably the next best bet, and it just started to be maintained again after a donation.

Go with Scrollama... itโ€™s uses IntersectionObserver.

Works perfectly