Skip to content
animorio
IT
Back to the library

Set square logo

Intro, SVGGSAPMediumCompressed weight: Demo 7.1 KBGSAP 28 KBFreeDownload the zip

A minimal logo intro with a single gesture: a thin line draws itself across the sheet, folds halfway into a right angle on a small spring, like a set square, turns a quarter of a turn, and the name slides out along its side; then the angle tightens into a solid mark in the accent colour beside the word and everything settles by a pixel.

The code

A folder that runs on its own: index.html, style.css, script.js and the libraries from a CDN. The React and Vue tabs hold the same demo as a ready component, which switches its animations off when it leaves the page.

<!doctype html>
<!--
  "Set square logo" from Animorio · https://animorio.com
  License: free on your own sites and your clients’ sites, paid work included.
  Not for resale, redistribution, templates or code collections · https://animorio.com/en/license/
-->
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>The set square logo</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/roboto-flex@5.3.0/wdth.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <main class="scena">
    <!-- the stage: the script measures it, draws the line, folds it into a right angle and slides the name out of it -->
    <svg class="palco" data-stage role="img" aria-label="Ortho" xmlns="http://www.w3.org/2000/svg">
      <defs>
        <clipPath id="fuori"><rect data-clip /></clipPath>
      </defs>
      <g data-all>
        <!-- the small square that marks the right angle -->
        <path class="tacca" data-tick pathLength="1" />
        <!-- the name, one text per letter, slid out from behind the upright arm -->
        <g clip-path="url(#fuori)"><g class="nome" data-name></g></g>
        <!-- the finished set square, with its triangular hole -->
        <path class="pieno" data-tri fill-rule="evenodd" />
        <!-- the line that becomes the set square -->
        <path class="squadra" data-square pathLength="1" />
        <!-- the small line under the name -->
        <text class="motto" data-tag></text>
      </g>
    </svg>
    <p class="nota">Click or tap to see it again</p>
  </main>

  <script src="https://cdn.jsdelivr.net/npm/gsap@3.15.0/dist/gsap.min.js"></script>
  <script src="script.js"></script>
</body>
</html>

Playground

Change values, colours and text with the controls and watch the animation respond live. Or write in the code yourself. Then download the folder with your changes.

13 values to change

Or ask your AI assistant for it

With the Animorio connector, Claude Code, ChatGPT, Cursor or VS Code take it from here, guide included, and fit it into your project. Paste this request:

Take “Set square logo” from Animorio and fit it into my site
Platform licenseFree on your sites and your clients’ sites. Want it inside a website builder, a template platform or a client dashboard? There’s a license for agencies and platforms.

What it does

On an empty warm white ground a very thin line draws itself from left to right, across the middle of the sheet. Halfway along it folds: the right half rises on a small spring, passes the right angle by a couple of degrees and comes back, and a small grey square appears in the corner, the right-angle sign of technical drawings. The set square it has become turns a quarter of a turn, goes a hair past and comes back, moving meanwhile to where the logo will be: one arm standing up and a long one lying flat. Along the flat arm the name of Ortho, the made-up architecture studio, slides out from behind the upright arm: the last letter first, the others a breath later, each going a pixel too far and settling. Then the angle tightens: the arms draw in, the thin line turns into a solid corner in the blue accent beside the word, swells slightly and comes back, and the whole logo drops a pixel and settles. Under the name the small line «Architecture studio» rises. After a few seconds the name slides back into the corner, the set square opens again, turns back, straightens and the line runs off the sheet, and it all starts again. A click restarts it.

How it works

A set square made of numbers

The set square is a single path with three points: the end of the first arm, the corner, the end of the second. One function writes it after every frame from a few numbers (where the corner is, how far it has turned, how far the second arm is folded, the two lengths, the thickness and the colour), and GSAP animates only those numbers. So the same line is first a straight stroke, then a set square, then the mark of the logo.

Drawing it and running it off

The path has pathLength 1 and stroke-dasharray 1 1: with stroke-dashoffset from 1 to 0 it draws from the start, and with the same value from 0 to minus 1 it leaves from the same side, as if running off the sheet. The joins are miter, so when the line thickens the corner stays sharp.

A spring without elastic

The fold and the turn are three tweens in a row: a power3.in that passes the value by a few degrees, a sine.out that comes back a little past on the other side and a sine.inOut that settles. SPRING scales the extra degrees: at 0 it simply stops. The letters do the same with one pixel: power3.out to a pixel past, sine.inOut back.

The name behind the arm

The name is measured in the SVG with getStartPositionOfChar, so each letter is a separate text but the kerning is kept. It sits in a group with a clipPath that starts just right of the upright arm: all the letters start shifted left by the whole word, hidden behind the arm, and come out one after another with the last one in front, like a strip being pulled out.

One measure

Everything is counted in cap heights, measured on a canvas: the finished corner is one cap tall and 0.62 wide, then a 0.42 gap and the name. The cap height is chosen so the row fits in 80 per cent of the width and 15 per cent of the height, so on a phone the logo stays in one row, just smaller. On resize everything is measured again and the timeline restarts from the same moment.

Values to change

NameFileDefaultWhat it changes
NAMEscript.js'Ortho'The name that slides out of the set square.
TAGLINEscript.js'Architecture studio'The small line under the name. Empty, there is none.
WEIGHTscript.js560The weight of the name: 300 is light, 900 is black.
SPRINGscript.js1How springy the fold and the turn are: 0 they just stop, 2 very lively.
MARKscript.js1How thick the finished corner is: 0.5 a fine line, 2 a heavy block.
SPEEDscript.js1The speed of the whole animation: 2 is twice as fast, 0.5 half as fast.
RESTscript.js4How many seconds the logo stays on show before it starts again.
LOOPscript.jstrueWhether the set square opens again and starts over. With false the logo stays.

Try them in the Playground

When to use it

To present a logo with a precise, geometric gesture: the opening of the site of an architecture studio, an engineer, a surveyor, a builder, an interior designer or a furniture brand, a portfolio, a loader, a preview for a client or a social post.

On phones

The same animation with the sizes adapted: the corner and the name stay in one row, just smaller, and the opening line is as long as the screen allows. A tap restarts it.

With reduced motion

Nothing moves: the finished logo, the blue corner with the name and the small line, fades in; if it starts again it fades out.

Pitfalls

  • With the letters in separate texts the kerning is lost: the positions have to be taken from a whole text with getStartPositionOfChar, and the probe text removed afterwards.
  • The finished thickness of the set square sticks out by half its width past the corner: to have the outer edge on the start of the row and on the baseline, the corner moves half a thickness inwards and the arms get shorter by the same amount.
  • document.fonts.ready resolves at once if no text uses the typeface yet: it has to be requested with document.fonts.load before measuring, or the name is measured in the fallback face and the letters overlap in the end.

Libraries

GSAP 3.15.0, Roboto Flex (font variabile) 5.3.0.

Compressed with gzip, the three demo files weigh 7.1 KB; the libraries: GSAP 28 KB.

Testing

Tested on 30 October 2026

  • Desktop: Done
  • Phone: Done
  • Reduced motion: Done
  • Safari on iPhone: To do

License

Use it in your own projects and in your clients’ projects. Do not resell it or redistribute it as is. GSAP stays under its own Standard license. Full license.

All animations