Make the Kirab Obor site move smoothly on villagers' phones: View Transitions, GSAP, Motion, Lottie. 16 levels, right in the browser.
What the levels ask
On Ms. Gendis's Kirab Obor site, the neighbourhood head taps the Hadroh card and the page jumps straight over. Pick what fills the hole in gerak.js so the browser itself fades the programme page into the performer's page.
Mrs. Sari wants the Hadroh photo she taps to fly and grow into the cover of the performer's page, not just fade. gerak.js gives the card's photo the transition name sampul before the page changes. Pick the cover's line in gaya.css.
The transition name now lives in gaya.css, and when Mr. Karim taps the Hadroh card nothing animates at all. The tapped card gets the class dipilih before the page changes. Pick the first rule's selector so only the Hadroh photo flies into the cover.
In the gallery, gerak.js adds the class muncul when IntersectionObserver reports a photo on screen. Mr. Tono scrolls slowly. Pick the observer's options so each photo starts to appear once a small part of it is visible, not earlier and not late.
The gallery photos now rise with element.animate(). Ms. Wulan scrolls to the bottom, back to the top, then down again. Each photo should rise only once, the first time it is seen. Pick the line after animate().
The gallery now holds a route poster taller than the phone's screen, and Ms. Gendis wants a photo to appear only once it is seen whole. Mr. Piksel scrolls to the poster and waits. Pick the threshold so every photo, the poster too, appears when Mr. Piksel sees it.
Grandma Marni's phone has reduce motion on. Nenek taps the Hadroh card, then scrolls to the performer's gallery. Pick what goes in the prefers-reduced-motion rule so on Grandma's phone nothing slides or stretches, but the page still changes and the photos still show.
Dina's storyboard for the site's opening: the torch and the title appear together, the date comes in 0.2 seconds after the title finishes, and the button 0.2 seconds before the date finishes. Pick the GSAP timeline's position parameters for the title and the date.
The Putar lagi button replays the title coming down. Mr. Harun taps it again before the title has finished, and the title stops half faded. Pick what goes in the click handler so every tap replays the title from the start and it always ends whole in its place.
The Daftar jadi pembawa button opens a sheet from the bottom of the screen with a Motion spring. The sheet has to settle in its place within 0.5 seconds and overshoot by 4 pixels at most. Pick the spring's stiffness and damping.
The route map moves the gunungan to the field in 2 seconds, but on Mr. Bayu's cheap phone the map stutters and the phone gets warm. Pick the keyframes for animate() so the gunungan reaches the same place without the browser laying out the page again on every frame.
Ms. Gendis added will-change, and on Mr. Jaya's phone, which has 2 GB of memory, the Daftar button at the foot of the screen now scrolls away. Pick the will-change line so the button stays at the foot and no layer is kept for an element that never moves.