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.
gerak.css with the CSS animation family that suits each moment.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.@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.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.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.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.lama hole in transition. The phone's record reads the cover's opacity and position at every frame of Dina's phone (60 Hz).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.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.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.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).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.