transform = translate HTML Starter
✓ Published1🌍 Public
This example demonstrates the use of the SVG `transform="translate(x, y)"` attribute to reposition a purple, semi-transparent rectangle within an SVG canvas. The code defines a single rectangle inside a `<g>` group with the `id="square"`, then uses an SVG `<use>` element referencing that group and applies the translation transform. With no external libraries or JavaScript, it is a bare-bones HTML page (as noted in the README) that relies solely on inline SVG and CSS-like styling for presentation. The title, comments, and some CSS rules are commented out, leaving the SVG rendering as the core visual output.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed