Open chee opened 4 years ago
Questions:
At the moment, the app (and globetrotter) use http://swiperjs.com , which is absolutely enormous. We want a fairly simple carousel, but with scroll snapping.
Will Howard has in the past attempted to replace swiperjs with a CSS scrolling carousel component, which was great (https://github.com/Financial-Times/ft-app/pull/448) except for one thing: on Chrome Android, using scroll snapping seems to do really weird things to inertia, leading to the carousels feeling far too slippery and flingy. So we had to go back to swiperjs ðŸ˜
We haven't done a lot of investigation into the slipperiness issue to see if we can work around it somehow.
Thanks for the info @rowanbeentje!
i guess if we wanted to use a css-based scroll snapping we'd need to use only the features of it supported by ie11
Another example here on markets.ft.com/data/archive
(In the meantime, we've moved app and globetrotter-in-app from the enormous swiperjs to the slightly better https://www.npmjs.com/package/embla-carousel )
I think this was accidentally tagged? Reopening (hope I haven't got that wrong...)
Yes it was, thanks for re-opening this
Hey Origami team Another use case for carousel component could be the FT Professional join forms carousel on welcome page
The Figma docs is here
Currently we are using embla carousel which is a library which deals with all UI interactions & events but the UI is 100% customisable. They don't provide any ready to use React components. I will post a link to the source code when we have it ready and merged to main
.
here's a video carousel on ft.com/video:
here's one on globetrotter Globe Trotter carousel:
here's the same one on the app on the app:
there should be a new carousel component to replace o-gallery