As one of @UMG's oldest web vendors, I'm up early thinking hard about them pulling their songs off @tiktok_us. Seems like an opportunity, no?
@UMG @tiktok_us A lot of TikTok's success stems from their swipe UX, which can be achieved with @css scroll-snap.
@UMG @tiktok_us @css Next to determine which color is currently active.
@UMG @tiktok_us @css By listening to the scroll event of the parent and checking the y position of the first child, we can determine which color is currently active.
@UMG @tiktok_us @css Now that we know which color is currently active, let's add a few videos. I'll be in @pexels if you need me. 🔎
@UMG @tiktok_us @css @pexels Not the most performant solution to autoplay all videos but it's a start. We *should* be able to use the current color to only play the current video.