Skip to main content
100%

Inertia

✓ Published0🌍 Public
Aabernier
Last edited Feb 2, 2014
Created on Aug 9, 2012

A 3D cube rendered with CSS transforms sits at the center of a scrollable background grid. Dragging the background applies inertial motion, with velocity and friction computed per frame using a custom Loop animation and Hammer.js for touch gestures. jQuery UI handles pointer interactions, while mousewheel events adjust the cube’s rotation. The cube’s six faces use CSS `rotateX` and `rotateY` transforms with `translateZ` offsets, and the background’s scroll position is updated with `translateZ` for depth. The code relies on raw GitHub-sourced libraries and jQuery for event handling.

AI-generated description

Similar vizzes