-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
feat(www): add 'lead' animation to the Ecosystem horizontal scrollers #9606
feat(www): add 'lead' animation to the Ecosystem horizontal scrollers #9606
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good! Left a few comments.
@DSchau @amberleyromo The longer I think of it I'm more and more sure that I should strip out the intersection-observer and do it the old way, by listening to scroll event and comparing the offsets of page and elements. What do you think? Did I make mistake? |
@greglobinski it's totally doable, but personally, I prefer to treat a feature like this, which isn't strictly speaking necessary, as an enhancement. If it doesn't work in Safari, that's not great but I don't think it's necessarily a huge issue nor a significantly diminished experience. Additionally, I think manually wiring up intersection observer like behavior (with scroll listeners) would work, but I just think it would introduce some code that I personally wouldn't really want to maintain. I think the value of keeping the code pretty clean and concise with IntersectionObserver is worth the trade off of it not working in every browser. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking great, @greglobinski!
feat(www): setup IntersectionObserver feat(www): add initial lead animation to horizontal scrollers on Ecosystem page fix(www): remove intersection-observer polyfill fix(www): change fake scrolling to 'only left' ver fix(www): make 'fake scroll' not fake
|
…gatsbyjs#9606) * feat(www): add lead scroll to horizontal scrollers feat(www): setup IntersectionObserver feat(www): add initial lead animation to horizontal scrollers on Ecosystem page fix(www): remove intersection-observer polyfill fix(www): change fake scrolling to 'only left' ver fix(www): make 'fake scroll' not fake * fix(www): add code formating * fix(www): add code formating and fix eslint errors * fix(www): add small delay for lead animation * fix(www): decrease dalay to 250ms * refactor(www): refactor easy function * fix(www): revert to overriden proper Ecosystem board texts * fix(www): remove unused CSS style
installintersection-observer
polyfillecosystem-board.js
toclass
component to manage IntersectionObserverIntersectionObserver
to observe horizontal scrollersVideo preview at Slack