Skip to main content
100%

transform = translate HTML Starter

✓ Published1🌍 Public
DDasbach.EJ
Last edited Jun 11, 2021
Created on Jun 11, 2021
Forked from HTML Starter

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 description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes