Skip to content

Rice First

Build a bowl at a steel counter. Rice goes in first, then each topping lands where you let go of it. Pick up a squeeze bottle and drag across the bowl to draw sauce over the toppings, drop a side into the second compartment, and top it off with sesame, nori and scallion before a receipt prints and the order goes through.

  • canvas 2d
  • web animations api
  • pointer events
  • javascript
Format
Interactive experience
Platform
Desktop
Engine
DOM sprites + Canvas 2D + Web Animations API
Type
Concept

How It Works

1
Per drop

Build

Rice has to go in first; a topping dropped on an empty bowl flies back to its pan with a reminder. After that, each topping lands where you release it. A drop near the rim is pulled back inside the rice, a drop on top of another pile is pushed to the nearest open spot, and the piles overlap front to back by depth, so a pile lower in the bowl sits in front of one above it. The bowl holds eight piles, and clicking one sends it back to its pan.
2
While you drag

Sauce

A held bottle tips over the bowl and draws along your path onto a canvas clipped to the rice, so sauce stays off the rim. Each line is three strokes: a dark shadow, the sauce color and a thin highlight. A tap too short to read as a drizzle is thrown away.
3
On drop

Side

A side dropped in the second compartment bounces in while the menu card spins out of the way and that side fades on the shelf, and a side dropped anywhere else flies back to the shelf.
4
After Top it off

Finish

Garnish rains onto the rice, then a receipt slides in and prints line by line with a counting total. Checkout runs from a form to an order confirmation, and Undo steps back through each step, the receipt included.

Engineering

  • Sprites that keep their shadows

    Every product comes from a shared sheet of several items. I size each element to its item's box and position the sheet behind it, instead of cropped with a clip path, because clipping would also cut off the drop shadow every product casts on the counter.
  • Sauce on top of the toppings

    The first build drew sauce under the toppings. Each pile carried a depth index so piles overlap front to back, and those indexes outranked the sauce canvas. I gave the piles, the sauce and the garnish their own layers, which fixed the order and kept the depth sort inside the pile layer. I caught it by drawing a stroke straight across a topping; a count of inked canvas pixels had passed.
  • Two layouts, one counter

    The counter has two arrangements: one for wide windows with the pans three across, and one for taller desktop windows with larger pieces two across. On every resize it picks the arrangement with the larger pans, favoring wide on a near tie, fits it between the nav and the order bar, and hangs each price label from the bottom of its own picture, so a short tray and a tall cup get the same gap.

More projects

Get in touch

I bring design judgment and hands-on engineering together, using AI-assisted workflows to move from creative intent to tested, maintainable digital experiences.

jeffkliu@gmail.com