We're a place where coders share, stay up-to-date and grow their careers.
Hello Joost and thank you!
So, I wanted to make a horizontal slider/carousel using the Intersection Observer API and came across your article.
I think this solution is really neat and can work even in production with a polyfill.
This is my testing demo: codepen.io/elisavetTriant/pen/OJWvOyr, which is actually for a CodePen challenge named "Scrolling Microinteraction" (codepen.io/challenges/2021/april/2)
I tried to make it work with responsive settings on the container/wrapper element so I made some adjustments on the observer callback function.
Nice work!
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
Hello Joost and thank you!
So, I wanted to make a horizontal slider/carousel using the Intersection Observer API and came across your article.
I think this solution is really neat and can work even in production with a polyfill.
This is my testing demo: codepen.io/elisavetTriant/pen/OJWvOyr, which is actually for a CodePen challenge named "Scrolling Microinteraction" (codepen.io/challenges/2021/april/2)
I tried to make it work with responsive settings on the container/wrapper element so I made some adjustments on the observer callback function.
Nice work!