<!doctype html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="/assets/reset.css" rel="stylesheet">
<link href="setup.css" rel="stylesheet">
<link href="style.css" rel="stylesheet">
</head>
<body>
<section>
<p>This is a paragraph.</p>
</section>
<section>
<p>This one is scaled!</p>
</section>
<section>
<p>Scaling from its corner.</p>
</section>
<section>
<p>Now skewed!</p>
</section>
<section>
<p>How about translated!</p>
</section>
<section>
<p>And rotated!</p>
</section>
<section>
<p>Or scaled and rotated.</p>
</section>
</body>
</html>
body {
--base: 20px;
display: grid;
font-family: 'Helvetica', sans-serif;
gap: var(--base);
padding: var(--base);
}
section {
background-color: gold;
padding: calc(var(--base) / 2);
}
h2 { font-size: calc(var(--base) * 3); }
section:nth-child(2) { transform: scale(125%); }
section:nth-child(3) {
transform: scale(125%);
transform-origin: top left;
}
section:nth-child(4) { transform: skew(10deg); }
section:nth-child(5) { transform: translate(50%, 25%); }
section:nth-child(6) { transform: rotate(10deg); }
section:nth-child(7) { transform: rotate(-5deg) scale(120%); }