AI • Science • Technology • Future

Side Projects

Interaction Library: A Web Experience of Hand Gesture Design

Image from the original article
Featured image: original publisher image. Via original publisher.

Interaction Library is a small, interactive web experience built with JavaScript and web graphics libraries. It presents a room filled with notebooks, each representing a hand movement like Drag, Zoom, or Strum. Source: dev.to.

What It Is

The project is a digital space created in Three.js. It features a shelf of notebooks, each named for a hand gesture. When a user points at one, a live preview appears above the shelf.

Clicking a notebook causes it to pull out, rotate to face the viewer, and open. The sample interaction runs on the right-hand page. Clicking the page expands it to fill the screen.

There are eleven samples in total. The photos used are from the creator’s everyday life. The room includes small interactive details: a lamp with a pull cord, a window whose sky changes with local time, and a clock that shows real time.

How It Works

The interaction is built using a layered approach. The room uses Three.js, while five samples use Canvas 2D and one uses DOM transforms with GSAP.

The creator divided that time into overlapping windows for tip, turn, and open actions. This design avoids mechanical sequences and gives the motion a more natural, physical feel.

For example, the turn and open actions overlap with the tip motion. This means no part of the gesture waits for another to finish. The code uses a function that maps a progress value (p) to a smooth transition over a defined interval.

  1. Define timing windows: tip from 0 to 0.34, turn from 0.2 to 0.9, open from 0.28 to 1.
  2. Apply easing and clamping to create smooth motion.
  3. Use the result to animate the book’s rotation and cover angle.

The animation is driven by a slerp (spherical linear interpolation) function that smoothly transitions the notebook from on the shelf to facing the user. This ensures that the movement feels organic and continuous, rather than segmented or artificial.

Image from the original article
original publisher image. Via original publisher. · Source

The overlapping timing windows concept is particularly effective because it mirrors how human hands move in real life—where actions don’t stop or pause between phases. Instead, they flow into one another. For instance, when a person lifts a book, the motion of pulling it out, turning it, and opening it doesn’t happen in distinct steps. The hand continues to move through each phase, with subtle shifts in pressure and direction. This design principle translates directly into the digital experience, making the interaction feel intuitive and grounded in physical reality.

Performance and Accessibility

Opening a notebook requires rendering two canvas textures. This could cause visual stuttering or lag, especially on lower-end devices or slower connections.

[siriusity_source_video]

To improve performance, the textures are now queued. One texture is processed per frame in the render loop. This keeps the frame rate stable and ensures smooth interaction. This approach not only improves performance but also aligns with modern web performance best practices, where rendering tasks are broken into smaller, manageable chunks to avoid blocking the main thread.

The experience remains accessible. It supports keyboard navigation: arrow keys move along the shelf, Enter opens a notebook, and Esc returns to the main view. This ensures that users who rely on keyboard-only input or have motor impairments can still navigate the experience with ease.

When prefers-reduced-motion is enabled, the room adjusts. The motion of the lamp, mobile, and view is reduced or stopped. The clock only turns halfway instead of two and a half times. The core navigation remains unchanged. This demonstrates a thoughtful balance between visual richness and user inclusivity—respecting user preferences without sacrificing functionality.

The site passes Lighthouse with a score of 100 for accessibility, best practices, and SEO on both desktop and mobile devices. This includes real HTML links for screen readers and search engines, ensuring that the content is discoverable and usable by all users, regardless of their access methods.

Creator’s Experience

The creator, jjangik, began with a simple idea: to explore hand-based interactions through small, experimental samples. These were never intended for a product but became a personal archive. This reflects a broader design philosophy: building small, focused experiments that can be tested independently and refined over time.

Image from the original article
original publisher image. Via original publisher. · Source

One of the most challenging interactions was Bend. The photo in the sample must bend in response to scrolling. Getting that motion to feel natural took significant tuning. It was also the first sample built—originally as a front-page scroll effect before being moved to the shelf. This early iteration laid the foundation for the project’s design language and user expectations.

Drag, built with GSAP, required more fine-tuning than the Three.js-based samples. The creator notes that hand gestures like Throw and Strum were easier to implement than Bend. This suggests that some gestures are more intuitive to simulate in digital form due to their clear, repetitive motion patterns, while others require more nuanced handling to match human perception.

Feedback from users and contributors has been positive. Abdullah Naseer, a developer from Pakistan, praised the overlapping timing concept. He asked whether the opening animation is skipped or shortened with reduced motion. The creator confirmed it remains, as it is part of navigation. This shows that even when motion is reduced, the core interaction remains functional and meaningful.

Where to Try It

Interaction Library is live at library.jjangik.kr. Users can explore the samples and share which gesture feels most natural under their hand.

The project is a demonstration of how small, focused experiments can reveal meaningful design principles. It shows how physical gestures can be translated into digital experiences with care and attention to timing and feedback.

It also highlights the balance between performance and accessibility. By queuing textures and respecting user preferences, the project remains usable across devices and conditions.

For those interested in experimental design, this project offers a clear path from idea to implementation. It is a standalone experience that reflects a deeper philosophy: build small, test them, and let them live in their own space.

Read more about similar projects in How I Built a Private, Animated Web Home for Two or explore a VR demo of AI-driven 3D modeling in AI 3D Modeling in Real Time.

Sources & further reading

Featured image: original publisher image. Via original publisher. Image source