Platinum sponsors

Transform gizmo Kit

Move, scale and rotate the selected element directly in your website.

Select one animation, tween or keyframe, and the gizmo appears over the animated element, centered on its transform origin. It edits the transforms of the element.

The 3D transform gizmo over the 5 of the Anime.js v5 logo, with the controls row of the Target folder marked
Handle Action
Arrows Move along one axis
Square knobs Scale along one axis
Rings Rotate around one axis
Center circle Move freely

Each gesture writes a keyframe at the playhead. Dragging a transform the animation does not animate yet adds it as a new property.

Controls

The controls row in the Target folder switches the gizmo mode:

The Anime.js editor Target folder with the Target and Pivot buttons and the 2D and 3D buttons marked
Button Shortcut Action
Target mode D toggles Moves the element
Pivot mode D toggles Moves the transform origin of the element
2D mode E toggles Edits 2D transforms
3D mode E toggles Edits 3D transforms, with the X, Y and Z rotation rings

In pivot mode, a drag keyframes the transformOrigin and the element stays in place on screen.

The transform gizmo in Target 2D mode, with x and y arrows and scale knobs, a rotation ring and the center circle
Target, 2D
The transform gizmo in Pivot 2D mode, with x and y arrows on the transform origin
Pivot, 2D
The transform gizmo in Target 3D mode, with x, y and z arrows and scale knobs and the rotation rings
Target, 3D
The transform gizmo in Pivot 3D mode, with x, y and z arrows on the transform origin
Pivot, 3D

Modifiers

Key Effect
Shift Follows one axis during a free move, and snaps the angles during a free 3D rotation
Alt Scales both axes from one knob
Cmd Snaps moves to steps of 10px, or 1 unit on a Three.js object, scales to steps of 0.1 and rotations to steps of 15°

Supported targets

The gizmo works with HTML and SVG elements, and with Three.js objects once you set up Three.js scenes.

Previous
Next