Index of every page on this site: llms.txt
All skills
johnpolacek avatar

/animaxxing

@8ddf542
Run it yourself

Build GSAP motion without restyling, as single effects or the full treatment: for "we're animaxxing", every element enters from a blank page, rests, and leaves. Text: split, scramble, glitch, typewriter, and speak-in entrances, scattering headlines, letter waves, text on a path, count-ups, odometers. Scroll: reveals, scrubbing, parallax, pinned scenes, stacking cards, zoom-through, horizontal runs, waypoints, smooth scroll, paging. Pointer: magnetic, tilt, spotlights, directional fills, press ripples, shakes, cursor followers, image trails, proximity, label rolls, underlines, weight hovers. Drag: throw tracks, endless loops, card stacks, sortable lists, swipe to dismiss. Also page covers, print effects, Flip morphs, menus, dialogs, tabs, state buttons, media and SVG effects, marquees, CustomEase, sound, confetti, particles, and hover stuck on touch. Also finds a feel: premium, calm, playful. Pair with the matching GSAP framework skill. Not for visual redesign, routing, or GSAP API questions.

Use this Skill: https://skilld.dev/gh/johnpolacek/animaxxing-skills/animaxxing

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencestext-stability.md

≈1.6k tokens on demand. Your agent reads this file only when SKILL.md points to it.

Text stability

Requirements for splitting text in the project's existing typography.

Stable typography for character animation

Read before any recipe that splits characters, especially charsRiseIn. Character wrappers interrupt browser kerning (GSAP's Tips & Limitations), so split.revert() restores natural kerning and can snap text horizontally even when the heading's height holds. smartWrap prevents mid-word breaks and masks clip the reveal; neither preserves kerning.

Put stable typography in the target's base CSS, present before first paint and kept after cleanup and under reduced motion:

<h2 class="character-headline">Small idea. Big feeling.</h2>
/* Only headlines that use character animation, not all headings or body text. */
.character-headline {
  font-kerning: none;
  text-rendering: optimizeSpeed;
}

Tailwind: [font-kerning:none] [text-rendering:optimizeSpeed] on the same target. Use the project's own selector. This is permanent typography: never toggle it in a builder, callback, or reduced-motion query. For speakIn, scope it to the emphasis elements that receive character splits.

Keep split.revert() and the controller's cleanup; retaining wrappers is not the spacing fix. If natural kerning is essential, animate whole words or lines instead (wordsSlideIn, linesMaskIn) and verify.

Diagnose the measured change

Change one cause at a time:

Evidence Targeted response
Characters shift horizontally across split/revert, with fonts ready and the same line breaks Check computed kerning in both states; use the persistent CSS above. A stable heading box does not rule this out.
Font face or metrics change after splitting Have the controller wait for document.fonts.ready, or use autoSplit/onSplit per the installed GSAP docs; returning the animation from onSplit lets the plugin manage re-splits.
Joined glyphs such as fi/ffi differ between states Inspect ligatures separately. If confirmed, test font-variant-ligatures: none on the affected target only, or animate words/lines. The rendering hint does not fix every font and browser.
Line membership or heading height changes Inspect width, white space, tracking, and word grouping. Omit text-wrap: balance on split targets (GSAP warns against it) and keep wrapping consistent across states. Use smartWrap for chars-only splits; re-split lines on width changes through the controller.
Text looks heavier after revert, or glyph edges/descenders clip while masked Compare computed font properties and readiness first, then inspect glyph ink against each mask; see below.
Weight effects jump when pinned widths are removed Compare pinned widths with the settled font's advances; verify the revert boundary separately.

Apparent weight change from clipped glyph ink

Distinct from kerning: mask: "chars" with tight negative letter-spacing and line-height can clip glyph edges and descenders. Removing the masks reveals the whole glyph, which looks heavier without any change in weight or position. The kerning CSS gives masks no extra room.

First compare computed font-family, font-weight, font-size, font-style, font-variation-settings, font-feature-settings, tracking, and line-height on the split characters and restored text, and confirm the intended face actually rendered. If these match, compare captured glyphs and mask overflow before trying force3D, layer promotion, or font-smoothing changes.

For confirmed clipping, add a class to the affected split's masks right after creation, before building the reveal:

// split is the affected headline's character-masked SplitText instance.
for (const mask of split.masks) mask.classList.add("title-char-mask");
// With CSS Modules, pass the scoped token instead: styles.titleCharMask.
.title-char-mask {
  /* Example value; tune to the actual glyph ink. */
  padding: 0.15em;
  margin: -0.15em;
}

Padding enlarges the clip; the negative margin keeps the layout footprint. Use only the room the font, size, tracking, and line-height need, then remeasure spacing, wrapping, and height. Apply it only to affected masks, never to all wrappers or headings.

Apply the class to each new split (inside onSplit with auto re-splitting). Split entrances accept it as charMaskClass. The class lives on temporary mask nodes and disappears with revert.

Expanded masks can leak ink at the hidden endpoint. Check forward and backward reveals in both travel directions; if a frame leaks, increase only the hidden travel distance, keeping timing.

Measure with the cleanup checks.

Weight and width moves in running text

A link or label that gains weight or widens on hover, inside a line of other text, such as a list of names separated by slashes. Its type grows, so its box would grow and push the rest of the line, or push a word onto the next line. The fix is to hold the box at its resting width while the type moves inside it. Holding the box has two traps of its own:

  • Changing the box type moves lines. Switching an inline element to inline-block on hover changes where the browser may break the line, so a neighbor can jump a whole line. Make the element inline-block in its base CSS, at rest, so hover only fixes its width.
  • Rounding moves lines. GSAP rounds pixel widths by default (autoRound), so a 276.6px word is held at 277px. On a tightly packed line, that fraction is enough to break one word earlier. Set the exact measured width: write element.style.width from getBoundingClientRect().width, or pass autoRound: false.
/* At rest, so the hover never changes how lines break. */
.names a { display: inline-block; white-space: nowrap; }
  • Center the type in its held box, so it grows evenly both ways, and leave room in the separators or gaps for the overflow.
  • Keep a separator with the word before it: put the word and its trailing separator in one white-space: nowrap group, and the space between groups outside it, so a separator ends a line and never starts one. A non-breaking space alone is not enough beside an inline-block box.
  • Release the held width only after the type is back at rest.

fontAxisHover applies all of this. Check it with the running text checks: hover every word and confirm nothing else moved.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts1mo3 checks · Risk SAFE
  • Gen Agent Trust Hub1mo

    The skill is a comprehensive library of TypeScript and GSAP-based animation recipes. It provides reusable code for text, scroll, pointer, layout, and particle effects. Analysis of the code and instructions reveals no malicious behavior, data exfiltration, or prompt injection attempts. All network operations and DOM manipulations are consistent with the skill's stated purpose of providing UI animations.

  • Socket1mo

    No alerts

  • Snyk1mo

    Risk: LOW · No issues

Signed by skilld at 8ddf542. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 4 weeks ago.

Activeupdated 2 months ago
Other metadata
metadata
{
  "short-description": "Reusable GSAP text, scroll, pointer, layout, SVG, and particle motion for any brand"
}

README badge

README badge for johnpolacek/animaxxing-skills/animaxxing