Skip to content
animorio
IT
Back to the library

The plucked string logo

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

A minimal logo intro with a single gesture: a thread is strung between two small pins, an unseen finger pulls it down and lets go, and the thread rings like a real string; as the note dies away the stem of the T grows from its middle and the thread stays as its bar. Then the rule under the logo stretches out and the name beside it gains weight letter by letter. A click plucks the string again where you touch it.

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>
<!--
  "The plucked string 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 plucked string 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, strings the thread between two pins, plucks it and grows the letter from it -->
    <svg class="palco" data-stage role="img" aria-label="Tensa" xmlns="http://www.w3.org/2000/svg">
      <!-- the two pins the thread is tied to -->
      <path class="perno" data-pins />
      <!-- the stem of the letter, growing down from the thread -->
      <path class="gamba" data-stem />
      <!-- the thread, in the accent -->
      <path class="corda" data-string />
      <!-- the thin rule under the logo -->
      <path class="riga" data-rule />
      <!-- the name, one tspan per letter -->
      <text class="nome" data-name></text>
    </svg>
    <p class="nota" data-note>Click or tap to pluck 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 “The plucked string 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 two small grey pins appear, and a thin blue thread is strung between them, from left to right. An unseen finger takes it just before the middle and pulls it down, slowly, with a moment of hesitation and a hair more; then it lets go. The thread rings like a real string: it swings up and down, the higher notes die first, and the pins feel the tug and tremble by a hair. As the note dies away the stem of the T grows down from the middle of the thread, hanging from it: the last tremors still make it nod. The stem passes its length by a whisker and settles, the pins fade and the thread stays as the bar of the T. A thin rule stretches out under the logo, runs a little past and comes back, and the name Tensa, the made-up brand, arrives letter by letter: first as thin as a hair and narrow, then it widens and gains weight up to black; when the last letter lands the rule gives a pixel and springs straight. A click or a tap plucks the thread again where you touch it, more lightly, and the T nods. After a few seconds the name goes thin, the stem rises back into the string, everything fades and it starts again.

How it works

A real string

The thread is a row of 41 points tied by springs: on every step each point is pulled towards its neighbours, a friction takes energy away and a second friction between neighbours kills the high notes first. The sum runs in the GSAP ticker in 24 sub-steps a frame, so it stays stable even with a high note; the starting shape is a triangle with its tip softened by three averaging passes, because a sharp tip would make the string shriek.

The finger and the release

Before the release the string is not free: its shape is the triangle times a number, pull, that the timeline takes to 0.86 and then to 1 with a breath. On release that shape passes to the simulation with zero speed. The stem of the T hangs from the middle point, so the remaining tremors move it with no extra code.

The name gaining weight

The letters of the name are tspans of a single text in Roboto Flex: each starts at weight 100 and width 30 and reaches its weight, a hair too far and back. The name is measured with getComputedTextLength already at its final weight; if it does not fit on the row it goes under the T.

Values to change

NameFileDefaultWhat it changes
NAMEscript.js'Tensa'The name beside the letter: it gains weight letter by letter. Empty, only the T stays.
WEIGHTscript.js640How heavy the name gets, from 300 to 900.
PULLscript.js1How far the finger pulls the thread before letting go.
PITCHscript.js1How fast the thread swings: 0.5 a low note, 2 a high one.
RINGscript.js1How long the string rings.
SPEEDscript.js1The speed of everything.
RESTscript.js4The seconds the logo stays on show before it starts again.
LOOPscript.jstrueWhether the logo fades and starts again.

Try them in the Playground

When to use it

To present a logo with one precise gesture: the opening of the site of a music school, a luthier, a record label, a tailoring studio or a brand that works with thread, a loader, or the preview for a video.

On phones

The same animation with the sizes adapted: on a narrow screen the name goes under the T, centred, with the rule under it. A tap plucks the string.

With reduced motion

Nothing moves: the thread is already taut and straight, the T and the name fade in at their weight.

Pitfalls

  • A string made of springs blows up if the step is too long: with a high stiffness it needs many sub-steps a frame (24 here), and the step is capped at 1/30 of a second when the tab comes back to the front.
  • Without the friction between neighbours the high notes stay and the string looks like an electric buzz: the damping goes on both.

Libraries

GSAP 3.15.0, Roboto Flex (font variabile) 5.3.0.

Compressed with gzip, the three demo files weigh 6.2 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