Scale & translate
✓ Published0🌍 Public
PPatrick Wojda
Last edited Apr 18, 2018
Created on Apr 18, 2018
A short, looping D3.js v4 animation demonstrates the interplay of SVG transform operations. It starts with four circles, one red at (100,100) and three at the origin, and then sequentially applies `translate` and `scale` transforms via `transition()` calls. The example highlights how `scale()` scales the coordinate system, not just the element, showing that a subsequent `translate` must compensate for the scaling factor to maintain a desired position. The circles use SVG attributes and fill-opacity styling.
AI-generated descriptionBuilt with blockbuilder.org
mit Licensed