DEV Community

Discussion on: React: Hiding an Element as you Scroll

Collapse
 
helloitsm3 profile image
Sean • Edited

Will there be any performance issue when setting the opacity to 0 if you are trying to create an infinite list of element to scroll?

Collapse
 
lukekyl profile image
Kyle Luke

I honestly haven't had the chance to play with infinite scroll on my own yet, but it looks like you may want to use a transformation based on when the scroll function loads more items. See this post on stackoverflow for one solution: Isotope's Masonry Infinite Scroll Solution