Tactile Interactions

Deciphering the language of touch and intent. This laboratory investigates how interfaces respond to human input, from the subtlety of a hover to the physics-based feedback of a drag interaction.

Lab 5 - Long Press to Change Size

Create a box that changes its size when long-pressed.

  • Create a motion.div that represents the box.
  • Use the onTap event to detect long presses.
  • Animate the size change when the box is long-pressed.