Undangan Gerak — Webanimation

Open Nimas and Krisna's invitation on guests' phones: animation families, frames and Motion. 15 levels, played right in the browser with nothing to install.

What the levels ask

  1. Ms. Aruni is making Nimas and Krisna's digital invitation. There are two moments: the cover opens by itself as soon as the invitation opens (appearing while it rises 16 px), and the Saya hadir button changes colour smoothly when tapped. Fill the two holes in gerak.css with the CSS animation family that suits each moment.
  2. The cover is now opened by JavaScript: requestAnimationFrame calls frame once per screen frame, and frame works out p from 0 to 1. The neighbourhood head (60 Hz phone) and Bagas (120 Hz phone) both have to see the cover open in 300 ms. Choose what fills the maju hole in skrip.js.
  3. The invitation now opens with an envelope flap that slides up (@keyframes naik, 600 ms). Mrs. Ratna's phone is old: while the flap slides, the browser must not lay the page out again on every frame. Choose what fills the naik hole in gerak.css.
  4. The RSVP page shows the number of guests (TOTAL, 87), which has to count up from 0 in 600 ms. A thank-you toast comes in over 300 ms; if Mr. Bayu taps Batal while it is still coming in, the toast has to turn back from where it is, not vanish. Fill the hitung and toast holes in skrip.js. Mr. Bayu's phone is 120 Hz.
  5. Grandma Marni's phone has Reduce motion on, which reaches the page as prefers-reduced-motion: reduce. On Grandma's phone the cover must not slide, but it still fades in briefly, about 150 ms; on Bagas's phone the cover rises as usual. Fill the hole inside @media in gerak.css.
  6. From today the invitation is built with React and Motion for React: motion.section is a <section> that can animate, and animate is its target state. On Ms. Wulan's phone the cover has to come in from 16 px below while appearing, as on the first day. Fill the awal hole in App.jsx.
  7. Dina wants the cover to come in within 300 milliseconds, the same as the CSS version of the invitation. Fill the lama hole in transition. The phone's record reads the cover's opacity and position at every frame of Dina's phone (60 Hz).
  8. The RSVP card rises 40 px on a spring (type: 'spring'). Mr. Harun gets dizzy easily: the card has to come to rest within 450 ms and not pass its place by more than 1 px. Choose what fills transition in App.jsx.
  9. The guest list comes in one row at a time: the first at 0 ms, the second at 60 ms, the third at 120 ms. Its states are named through variants (tutup and buka), and initial and animate are written only on the parent; children with variants follow the same names. Fill the jeda hole in the parent's buka variant.
  10. Ms. Aruni has split the guest list into a Baris component. The parent already uses the right 60 ms turn-taking. Mrs. Ijah must still see the three rows come in turn at 0, 60 and 120 ms. Fill the anak hole on the motion.li inside Baris.
  11. After the wishes are sent, a green toast shows at the bottom. When Mr. Karim taps Tutup, the toast has to leave by fading out over 150 ms through the exit prop, not vanish. Fill the wadah hole: the name of the component wrapped round the toast's condition (its opening and closing tags fill together).
  12. The wishes of Mrs. Sari, Mr. Karim and Rara sit inside AnimatePresence. Mrs. Sari asks for hers to be removed: the one that fades out has to be Mrs. Sari's own, and the other two stay where they are. Fill the kunci hole on the motion.li.

And more, 15 levels in all.