Closed vuolen closed 1 month ago
Visit the preview URL for this PR (updated for commit 3b8e574):
https://satakuntalainenosakunta--pr30-fix-carousel-4ngzhabl.web.app
(expires Mon, 02 Sep 2024 10:22:29 GMT)
🔥 via Firebase Hosting GitHub Action 🌎
Sign: 1ec35f964edce5d08911a93688b4dc7a051b997f
The carousel's opacity effect was not in use at page load and would only kick in after resizing the window or scrolling the carousel.
This was fixed by
emblaApi.slidesInView()
. The slides in view starts off empty and only populates on scroll, dont know why. I'd wager we wont have enough slides for this to matter performance wise