Skip to content
animorio
IT
Back to the library

Photographer profile card

Physics, HoverGSAP, CSS onlyMediumCompressed weight: Demo 12 KBGSAP 28 KBMatter.js 25 KBFreeDownload the zip

The profile card of a photographer on a portfolio platform: the portrait on the left, the name, the role and the buttons on the right. Her skills are glass tags that fall into the card through its top edge with real physics, bounce, slide and pile up on its floor; you grab them with the pointer or a finger and throw them, and a tap opens a small glass tooltip above the tag with the years of experience, which follows it wherever it goes.

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>
<!--
  "Photographer profile card" 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 photographer's profile card with skills that fall</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/mona-sans@5.3.0/wdth.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <main class="stage" data-stage>
    <!-- the profile card of a photographer on a portfolio platform. Her skills are glass tags that fall into the card
         through its top edge with real physics (gravity, bounces, friction), pile up on its floor, and can be grabbed
         and thrown; a tap on one opens a small glass tooltip with her years in that skill -->
    <section class="card" data-card aria-label="Mira Halvorsen, photographer">
      <figure class="card__photo" data-photo>
        <img src="ritratto.webp" alt="A woman in a long patterned dress stands in a snowy field of dry grass, seen in profile, holding pink tulips" width="683" height="1024" data-img>
        <figcaption class="card__place">
          <svg viewBox="0 0 16 16" aria-hidden="true"><path d="M8 14.2s4.6-4.1 4.6-7.6a4.6 4.6 0 0 0-9.2 0c0 3.5 4.6 7.6 4.6 7.6Z"/><circle cx="8" cy="6.6" r="1.6"/></svg>
          <span>Oslo</span>
        </figcaption>
      </figure>

      <div class="card__body">
        <header class="card__head" data-line>
          <h1 class="card__name">Mira Halvorsen</h1>
          <svg class="card__badge" viewBox="0 0 16 16" aria-label="Verified"><path class="card__badge-seal" d="M8 1.2l1.7 1.3 2.1-.2.7 2 1.8 1.1-.5 2.1.9 1.9-1.6 1.4-.2 2.1-2.1.4L9.6 15 8 13.8 6.4 15l-1.2-1.7-2.1-.4-.2-2.1L1.3 9.4l.9-1.9-.5-2.1 1.8-1.1.7-2 2.1.2Z"/><path class="card__badge-tick" d="M5.4 8.2l1.8 1.8 3.4-3.6"/></svg>
        </header>
        <p class="card__role" data-line>Photographer &amp; art director</p>
        <p class="card__line" data-line>Quiet portraits and brand stories for slow fashion labels.</p>
        <div class="card__actions" data-line>
          <button class="btn btn--main" type="button">
            <span class="btn__face">
              <span>Book a shoot</span>
              <svg class="btn__arrow" viewBox="0 0 16 16" aria-hidden="true"><path d="M3.5 8h8.6M8.6 4.4 12.2 8l-3.6 3.6"/></svg>
            </span>
          </button>
          <button class="btn btn--ghost" type="button" aria-pressed="false" data-follow>
            <span class="btn__face">
              <svg class="btn__plus" viewBox="0 0 16 16" aria-hidden="true"><path d="M8 3.6v8.8M3.6 8h8.8"/></svg>
              <span data-follow-words>Follow</span>
            </span>
          </button>
        </div>
        <p class="card__skills" data-line><span>Skills</span><span class="card__hint">Drag, throw or tap</span></p>
      </div>

      <!-- the world of the physics: the tags are built here from SKILLS in script.js -->
      <div class="world" data-world aria-label="Skills" role="list"></div>

      <div class="tip" data-tip role="status" aria-live="polite">
        <div class="tip__pop" data-tip-pop>
        <div class="tip__glass">
          <span class="tip__skill" data-tip-skill>Photography</span>
          <span class="tip__years"><span class="tip__num" data-tip-num>12</span><span class="tip__unit" data-tip-unit>years</span></span>
          <span class="tip__ticks" data-tip-ticks aria-hidden="true"></span>
          <span class="tip__since" data-tip-since>since 2014</span>
        </div>
        <svg class="tip__notch" viewBox="0 0 20 9" aria-hidden="true"><path d="M0 0h20c-4 0-6.6 2.6-8.4 7.2-.6 1.4-2.6 1.4-3.2 0C6.6 2.6 4 0 0 0Z"/></svg>
        </div>
      </div>
    </section>

    <svg class="ghost" data-ghost viewBox="0 0 24 24" aria-hidden="true"><path d="M5 3.2 19.2 11l-6.3 1.6-3.3 5.9Z"></path></svg>
  </main>

  <script src="https://cdn.jsdelivr.net/npm/gsap@3.15.0/dist/gsap.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/matter-js@0.20.0/build/matter.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.

28 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 “Photographer profile card” 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 a warm grey page a light paper card arrives with a barely visible grain: it rises sixteen pixels and settles, while the portrait is uncovered from the bottom and tightens from 112 %. In the photo Mira Halvorsen stands in profile in a snowy field of dry grass, with pink tulips in her hand; at the top a glass label says Oslo, with a drawn pin. On the right the name with a rose verified seal, ‘Photographer & art director’, a line of description, the dark ‘Book a shoot’ button with the arrow that slides on hover, and ‘Follow’, which turns into ‘Following’ as its plus turns 45 degrees. Then the skills fall in through the top edge, one every 0.13 seconds: Photography in rose, Art direction and Type in black, the others in white glass. They bounce, knock each other, slide and pile up on the card's floor, over the photo and over the paper; at every hard landing a tag squashes for an instant and springs back, and the faster it flies the higher and wider its shadow. A drawn pointer takes Motion from the pile, lifts it and throws it to the left: it bounces off the wall, moves others, comes to rest. Then it taps Photography: the tag swells by a pixel, widens on the wdth axis and gets a rose outline, and above it a dark glass tooltip opens with ‘12 years’, the number counting up, a row of ticks (one per year) lighting up in rose one after another and ‘since 2014’; the tooltip's point stays on the tag even when the tooltip meets the edge. A tap on the paper closes it. At the end the card's floor opens, the tags fall away and rain in again from the top.

How it works

Real tags, Matter.js bodies

Each skill is an HTML span with its text, measured after the font has loaded. Matter.js keeps a rectangle of the same size for each one, with corners rounded by half its height, and its inertia multiplied by 2.4 so the tags tip over little and stay readable. Every frame the tag takes its body's position and rotation with a single transform.

Three elements per tag

The .tag gets the physics transform, the .tag__face the squash of hard landings (GSAP, scaleX and scaleY with elastic.out), the .tag__skin the look and the hover in CSS. If they were the same element, GSAP would wipe out the physics transform and the other way round.

The fixed step

The physics runs in steps of 1/60 of a second counted on GSAP's clock: an accumulator collects each frame's time and spends it in whole steps. So the fall is the same at 60, 120 or 30 frames per second, and the drawn pointer's round repeats the same.

Grab and throw

Pressing a tag creates a springy constraint (stiffness 0.16) between the point you hold and the pointer; moving the pointer, the body follows it with its own inertia, and on release the constraint goes: the tag leaves with the speed it had. A short tap (under 6 pixels and 0.32 seconds) opens the tooltip instead.

The tooltip that follows

The tooltip lives in the card, outside the clipped physics layer, and every frame it places itself above its tag's body, kept inside the card; its point shifts by itself to stay on the tag. It opens with back.out, the number counts up from zero and the year ticks rise one after another.

Values to change

NameFileDefaultWhat it changes
SKILLSscript.js'Photography 12, Art direction 9, Portrait 11, Editorial 8, Branding 6, Colour 7, Type 5, Motion 4, Film 10, 3D 2'The tags: name and years, separated by commas.
GRAVITYscript.js1.1How hard the tags fall.
BOUNCEscript.js0.32How much they bounce.
FRICTIONscript.js0.35How much they grip each other and the floor.
STEADINESSscript.js2.4Multiplies the inertia: the higher, the less they tip over.
DROP_GAPscript.js0.13Seconds between one tag and the next as they fall.
THROWscript.js1How hard the drawn pointer throws.
SQUASHscript.js1How much a tag squashes on a hard landing.
UPRIGHTscript.js1How readily a tag left upside down hops and turns over by itself: 0 never.
LOOPscript.jstrueThe drawn pointer plays again and again.

Try them in the Playground

When to use it

For the about page of a portfolio, the card of a photographer, a designer or a freelancer on a platform for creatives, the team section of a studio or an agency: when the skills should spark curiosity and invite a touch instead of sitting in a list.

On phones

The same animation with adapted sizes: the card takes almost the whole width and 86 % of the height, the photo narrows to 38 %, the description line and the hint go, the tags get smaller and pile up in three rows. With a finger you grab them, throw them and tap them to open the tooltip.

With reduced motion

No physics and no movement: the card fades in with the tags already in rows on the floor; Photography's tooltip fades in and out, and a tap on a tag opens its own.

Pitfalls

  • The physics transform, GSAP's squash and the CSS hover on three different elements: on a single one they wipe each other out.
  • The tags are measured after the variable font has loaded: measured before, the bodies are narrower than the words and overlap.
  • With variable steps Matter.js gets unstable and the drawn pointer's round never repeats the same: a fixed 1/60 step counted on GSAP's clock.
  • The walls rise far above the card: a tag thrown upward comes back down inside the card instead of escaping sideways.
  • The tooltip does not go inside the physics layer, which has overflow hidden to clip the tags at the edge: it would be cut when the tag is high. And its position and its pop live on two elements, so GSAP does not overwrite the transform that carries it to the tag.
  • With the card entering on a transform, the pointer's point must be brought back to the card's own size (real width over on-screen width), or the grip slides during the entrance.

Libraries

GSAP 3.15.0, Matter.js 0.20.0, Mona Sans (font variabile) 5.3.0.

Compressed with gzip, the three demo files weigh 12 KB; the libraries: GSAP 28 KB, Matter.js 25 KB.

Testing

Tested on 6 November 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