Re:Show HN: ReactScrollShadow – CSS shadow to indicate scrol...
by zzarcon on Tuesday June 26, 2018 @12:16AM
(#17397818)
I guess it doesn't have to be a React component, you are right. But just by doing so you get a lot of things for free and makes it easier for people to start using it, like, you just install it, require it, and you are good to go... that was the motivation beyond using React for it
Re:Show HN: ReactScrollShadow – CSS shadow to indicate scrol...
by zzarcon on Tuesday June 26, 2018 @12:18AM
(#17397824)
Can you elaborate why we should use IntersectionObserver/ResizeObserver?
Currently there is no logic in place to do the calculation and detect if there is more available content or not, so I'm 100% sure if understand the issue
Re:Show HN: ReactScrollShadow – CSS shadow to indicate scrol...
by err4nt on Monday June 25, 2018 @02:43PM
(#17394653)
I've got a plugin[1] I use for something similar when it's a horizontal scrollable area. Scroll the boxes in the demo[2] to see the shadows appear/disappear when there is overflowed text on the left or right edge!
Edit: I'll rephrase my question, why does the Hacker News Frontpage include stories with zero comments and 1 point?
Currently there is no logic in place to do the calculation and detect if there is more available content or not, so I'm 100% sure if understand the issue
1: https://github.com/tomhodgins/jsincss-overflow
2: https://tomhodgins.github.io/jsincss-overflow/test/