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 3 - Rotate on Drag
Create a box that rotates when being dragged.
- Create a
motion.divto represent the box. - Use the
onDragevent to calculate the rotation angle. - Use Tailwind CSS for styling the component.