-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Add intersection observer #2337
Add intersection observer #2337
Conversation
334c0a1
to
bdc3d37
Compare
bdc3d37
to
537c5bc
Compare
842f4ae
to
606261a
Compare
537c5bc
to
103260b
Compare
070b1ac
to
1f37a8a
Compare
606261a
to
f309b91
Compare
e3e17e6
to
bb4dca0
Compare
d7cf582
to
2ebbebd
Compare
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.
Looks good to me with one small comment! I tested in Chrome and Safari in code by adding a scroll-animation__trigger
to the featured collection list items.
2ebbebd
to
3570762
Compare
0397227
to
5674f85
Compare
0e6d095
to
cfefdd7
Compare
5674f85
to
b73d668
Compare
b73d668
to
6c277d4
Compare
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.
It's working for me!
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.
Looks good to me! :D
* add scroll animation observer for section
* add scroll animation observer for section
* add scroll animation observer for section
* add scroll animation observer for section
PR Summary:
This PR adds an
animations
script with an intersection observer that will watch elements with a class ofscroll-animation__trigger
and add ascroll-animation__trigger--active
class as they scroll them into view.Why are these changes introduced?
Fixes #2316
What approach did you take?
animations
script from this prototypeVisual impact on existing themes
None. This code won't do anything until we add the CSS and the trigger class to different elements we want to animate.
Testing steps/scenarios
animations
script is loaded for the following pages: Homepage, Default product, Collections, Collections List, BlogsDemo links
Checklist