agentsclimarketplace

Animate

Skill Bizzet/astro-layer/skills/animate

Use when adding animations or motion effects to sections or components. Defaults to pure CSS keyframes and scroll-driven animations. Uses GSAP only when explicitly requested or when timeline complexity requires it.From its SKILL.md

Install
npx -y skills add Bizzet/astro-layer --skill animate

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

3.9 KB, as published. Nobody here has run it

animate

Adds animations to sections and components. Always respects prefers-reduced-motion.

Default path: pure CSS keyframes + scroll-driven animations — no install, no JS required. GSAP path: explicit opt-in only, for timeline sequences, counters, or stagger effects on JS-rendered content that CSS can't handle cleanly.

Decision Rule

Use CSS for:

  • Page-load entrance animations
  • Scroll-triggered fade/slide (via animation-timeline: view())
  • Hover and focus effects
  • nth-child stagger via animation-delay

Use GSAP only when the user explicitly asks, or when:

  • Complex multi-step timeline sequences are required
  • Animated counters (data-count) are needed
  • Stagger applies to JS-rendered content (dynamic lists)
  • Scroll scrubbing or element pinning is required

CSS Animations (Default)

No install needed. Add to the component's <style> block or src/styles/global.css.

Always include a reduced-motion block:

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

Fade-in on scroll (scroll-driven):

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(1.5rem); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  animation: fadeInUp 0.6s ease-out both;
  animation-timeline: view();
  animation-range: entry 0% entry 40%;
}

Entrance slide-up (page load):

@keyframes slideUp {
  from { opacity: 0; transform: translateY(2rem); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-content {
  animation: slideUp 0.6s ease-out both;
}

Stagger via nth-child:

.stagger-grid > * {
  animation: fadeInUp 0.5s ease-out both;
}
.stagger-grid > *:nth-child(1) { animation-delay:   0ms; }
.stagger-grid > *:nth-child(2) { animation-delay: 100ms; }
.stagger-grid > *:nth-child(3) { animation-delay: 200ms; }
.stagger-grid > *:nth-child(4) { animation-delay: 300ms; }

GSAP Animations (Advanced — Explicit Opt-in Only)

Use when the user asks for GSAP, or when CSS genuinely can't handle the complexity.

First use: install GSAP and create src/scripts/animations.ts:

npm install gsap

Always guard with reduced-motion check:

if (window.matchMedia('(prefers-reduced-motion: reduce)').matches) return;

Entrance animation:

gsap.from(el, { opacity: 0, y: 30, duration: 0.6, ease: 'power2.out',
  scrollTrigger: { trigger: el, start: 'top 80%' }
});

Stagger for grids:

gsap.from(cards, { opacity: 0, y: 20, duration: 0.5, stagger: 0.1,
  scrollTrigger: { trigger: container, start: 'top 75%' }
});

Counter for stats:

const obj = { val: 0 };
gsap.to(obj, { val: targetNumber, duration: 1.5,
  onUpdate: () => { el.textContent = Math.round(obj.val).toString(); },
  scrollTrigger: { trigger: el, start: 'top 80%' }
});

View Transitions Integration (GSAP)

Re-initialize ScrollTrigger after each page transition:

document.addEventListener('astro:page-load', () => {
  ScrollTrigger.refresh();
  initAnimations();
});

Reference

  • references/animation-patterns.md — complete CSS patterns, GSAP scaffold, scroll storytelling (pinned sections, horizontal scroll), View Transitions integration
  • references/kinetic-type.md — kinetic typography: word-by-word stagger, clip-path wipe, variable font morph, blur focus-in, character pop, GSAP line reveals and hero sequences, typewriter scrub
  • references/interactions.md — creative hover and cursor patterns: magnetic buttons, color flood fill, underline draw-on, grayscale-to-color, card tilt, custom cursor, JS magnetic tracking, cursor-following image reveal

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.