Skip to content
Skills Library
Design & UX · Building & coding

wp-animated-block-theme

/wp-animated-block-theme

Add scroll reveals, hover effects and page transitions to a WordPress block theme using CSS and the Interactivity API, with no jQuery and full prefers-reduced-motion support. Use when the user wants an animated or interactive WordPress theme or block. Works in Claude Code, OpenAI Codex and GitHub Copilot.

Licence
MIT
Last repository change
10.11.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
7
Scripts
2
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 10.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • 2 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: examples/render.php, examples/view.js

What it does and when to use it

Add scroll reveals, hover effects and page transitions to a WordPress block theme using CSS and the Interactivity API, with no jQuery and full prefers-reduced-motion support. Use when the user wants an animated or interactive WordPress theme or block. Works in Claude Code, OpenAI Codex and GitHub Copilot.

Arguments

/wp-animated-block-theme [animation wanted] [theme or block name]
Original author description

Add scroll reveals, hover effects and page transitions to a WordPress block theme using CSS and the Interactivity API, with no jQuery and full prefers-reduced-motion support. Use when the user wants an animated or interactive WordPress theme or block. Works in Claude Code, OpenAI Codex and GitHub Copilot.

How it works

  1. Steps
  2. Rules
Original SKILL.md headings · 51 lines, 227 words
SKILL.md preview
---
name: wp-animated-block-theme
description: "Add scroll reveals, hover effects and page transitions to a WordPress block theme using CSS and the Interactivity API, with no jQuery and full prefers-reduced-motion support. Use when the user wants an animated or interactive WordPress theme or block. Works in Claude Code, OpenAI Codex and GitHub Copilot."
argument-hint: "[animation wanted] [theme or block name]"
---

# Animated block theme

## Steps

1. **Detect**: confirm a block theme (`theme.json` and `templates/` exist). If it is a classic theme, say so and stop.
2. **Pick the lightest tool**, in this order:
   1. CSS only (`transition`, `@keyframes`, `animation-timeline: view()` with a fallback).
   2. Interactivity API for state-driven motion (reveal on scroll, toggles).
   3. A library, only if 1 and 2 cannot do it (see `wp-gsap-lottie-integration`).
3. **Animate only `transform` and `opacity`.** Never animate `width`, `height`, `top` or `left`.
4. **Wrap every effect** in a motion-safe query:

   ```css
   @media (prefers-reduced-motion: no-preference) {
     .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s; }
     .reveal.is-visible { opacity: 1; transform: none; }
   }
   ```

5. **Scroll reveal with the Interactivity API**: add `"supports": { "interactivity": true }` to `block.json`, then:

   ```html
   <div data-wp-interactive="myTheme" data-wp-init="callbacks.observe"
        data-wp-class--is-visible="state.visible" class="reveal">…</div>
   ```

   ```js
   import { store, getElement } from '@wordpress/interactivity';
   store('myTheme', {
     state: { visible: false },
     callbacks: {
       observe() {
         const { ref } = getElement();
         new IntersectionObserver(([e], o) => {
           if (e.isIntersecting) { ref.classList.add('is-visible'); o.disconnect(); }
         }).observe(ref);
       },
     },
   });
   ```

6. **Load scripts only where used** (`viewScriptModule` in `block.json`).
7. **Verify**: reduced-motion on shows no movement; no layout shift; works with JS disabled (content stays visible).

## Rules

- Content must be visible without JS.
- No jQuery. No inline `<script>`.
- Change only the files the animation needs.
Files in this package (7)
  • SKILL.md 2 KB
  • agents/openai.yaml 1 KB
  • examples/block.json 1 KB
  • examples/preview.html 1 KB
  • examples/render.php 1 KB
  • examples/style.css 1 KB
  • examples/view.js 1 KB

Versions

The database has no other skills named wp-animated-block-theme.

Database snapshot: 13.11.2026 · package version c3da4545c460 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100web-motion-auditor
    Use when reviewing web animations, UI transitions, scroll effects, hover states, loading states, GIF/video captures, reduced-motion support, animation performance, or motion polish in HTML, React, Next.js, or Vercel apps.
  • 90css-animation-creator
    Create professional CSS animations, transitions, micro-interactions, and complex motion design. Use when adding animations, hover effects, loading states, page transitions, scroll animations, or any motion design work.
  • 100wp-gsap-lottie-integration
    Add GSAP or Lottie animations to WordPress the correct way: enqueue the library only on pages that need it, bundle or pin a version, and fall back gracefully with reduced motion. Use when CSS or the Interactivity API is not enough for the requested animation. Works in Claude…
  • 100vyson-css-motion
    Adds fast, accessible, CSS-only motion to a website, such as page-load entrances, scroll reveals, hover and press feedback, accordions, marquees and page transitions, with a performance budget, reduced-motion handling and a mobile fallback. Use when a user asks to animate a…
  • 100motion-system
    Use when adding transitions, page-load animation, scroll effects, or interaction feedback, and when motion feels gratuitous, janky, or ignores reduced-motion preferences.
  • 90wp-accessible-ui-review
    Review a WordPress theme or page for accessibility: focus states, keyboard use, ARIA, color contrast, headings, alt text and reduced motion, and report findings with file:line and fixes. Use when the user asks for an accessibility, WCAG or a11y check. Works in Claude Code,…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.