Token导航 LogoToken导航TokenDH.com
前端设计只读github未标认证来源可访问许可证需确认审计通过

ui-enhance-animateui 增强动画

Agent Skill

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。它适合让 Agent 根据产品场景整理页面结构、生成 UI 方案、检查视觉一致性或改进组件层级。使用时需要结合现有品牌、设计系统和用户任务,不应只堆装饰元素;涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出、对齐和响应式表现。

总安装

874

周安装

35

GitHub Stars

4

下载量

283
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:ui-enhance-animate(ui 增强动画)
来源仓库:https://github.com/zaaakher/agent-skills
仓库路径:skills/ui-enhance-animate
安装命令:
npx skills add https://github.com/zaaakher/agent-skills --skill ui-enhance-animate
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/zaaakher/agent-skills --skill ui-enhance-animate

简介

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。

  • 适合根据产品场景整理页面结构、生成 UI 方案、检查视觉一致性或改进组件层级。
  • 使用时需结合现有品牌、设计系统和用户任务,避免堆砌装饰元素;涉及页面改动时应通过截图或浏览器预览检查文本溢出、对齐和响应式表现。
  • 安装方式:github,可通过 npx skills add 命令从指定仓库添加。
  • 适用于 Codex、Claude、Cursor、Gemini CLI 等宿主环境。

SKILL.md

UI Enhancement + Staggered Animation Skill

This skill performs a full design upgrade of an existing website or component. It is NOT just about adding animations — it is a holistic visual refinement pass that touches typography, spacing, layout, depth, micro-interactions, and motion. The existing color palette is preserved; everything else can and should be improved.


Phase 1 — Audit & Understand Before Touching Anything

Before writing a single line of code, do a thorough read of the existing code. Extract and note:

  1. Color palette — all hex/hsl/rgb values, CSS variables, Tailwind color classes. These are sacred and must be preserved exactly.
  2. Font stack — what fonts are currently in use.
  3. Layout structure — is it CSS Grid, Flexbox, plain blocks? What's the overall page structure?
  4. Component inventory — list every distinct section/component: hero, navbar, cards, features, testimonials, CTA, footer, etc.
  5. Current weaknesses — visually identify what looks amateur or generic: flat cards, no spacing rhythm, weak typography hierarchy, no depth/shadow, boring hover states, no visual flow, walls of text, etc.
  6. Tech stack — React (use Framer Motion), plain HTML/CSS (use CSS animations + IntersectionObserver), Vue, etc.

Only after this audit should you begin making changes.


Phase 2 — Full Design Upgrade (Non-Animation)

Apply ALL of the following improvements that are relevant to the site. Be thorough — don't skip sections because they "look okay". Every part of the site should be elevated.

Typography

  • Introduce a clear typographic hierarchy: display sizes (clamp-based fluid sizing), section headings, subheadings, body, caption — each with distinct weight and size.
  • Replace generic system fonts (Arial, Helvetica, system-ui) with a distinctive pairing from Google Fonts or similar. A strong display/heading font paired with a clean readable body font.
  • Use letter-spacing for uppercase labels and overlines.
  • Add line-height rhythm: ~1.2 for headings, ~1.6–1.7 for body text.
  • Tighten long text blocks with max-width: 65ch for readability.

Spacing & Rhythm

  • Introduce a consistent spacing scale (e.g., 4/8/16/24/32/48/64/96px).
  • Increase section padding — most amateur sites are too cramped.
  • Add generous whitespace between section components.
  • Ensure consistent internal card/component padding.

Depth & Surfaces

  • Add layered box-shadow to cards, modals, and elevated surfaces. Use multi-layer soft shadows, not harsh single-layer ones.
  • Use subtle border with low-opacity color instead of hard outlines.
  • Apply backdrop-filter: blur() to glass-morphism elements like navbars or overlapping cards where appropriate.
  • Use subtle background differentiation between sections (slightly lighter/darker tint of existing colors).

Layout & Composition

  • Break out of purely uniform grid layouts. Use asymmetric or offset compositions where they add interest.
  • Add visual anchors: decorative elements, large background text/numbers, gradient blobs, or geometric shapes using the existing color palette (low opacity).
  • Ensure the hero is impactful with generous sizing and a strong focal point.
  • Use CSS Grid for complex layouts; avoid excessive nested divs.

Cards & Components

  • Round all corners consistently (usually 8–16px for cards, 6–8px for buttons/inputs).
  • Add hover states to all interactive elements: cards should lift (translateY + shadow), buttons should shift or glow.
  • Ensure buttons have visible padding, strong contrast, and consider adding a subtle icon or arrow.
  • Add transition: all 0.2s ease baseline to interactive elements.

Visual Polish Details

  • Add subtle gradient overlays to hero images or dark sections.
  • Use overflow: hidden on cards to clip child images and effects cleanly.
  • Ensure images use object-fit: cover and have defined aspect ratios.
  • Add divider treatments between sections (subtle border, gradient fade, or decorative wave/angle).
  • If there are icons, ensure they are consistently sized and optically aligned with text.

Phase 3 — Staggered Blur + Slide-Up Reveal Animations

Animation Philosophy

  • Animations should feel natural and elegant — not flashy or distracting.
  • Every major content section should animate in when it enters the viewport.
  • Use a staggered pattern: child elements within a section animate in one by one with a delay offset (e.g., 0.1s apart).
  • The animation: elements start opacity: 0, filter: blur(8px), translateY(24px) and transition to opacity: 1, filter: blur(0px), translateY(0).
  • Duration: 0.6s for most elements. Easing: ease-out or a custom cubic-bezier like cubic-bezier(0.16, 1, 0.3, 1) (snappy spring).
  • Respect prefers-reduced-motion — disable animations for users who opt out.

React — Framer Motion Implementation

Install if not present:

npm install framer-motion

Core Animation Variants

// lib/animations.ts
import { Variants } from "framer-motion";

export const fadeUpBlur: Variants = {
  hidden: {
    opacity: 0,
    y: 24,
    filter: "blur(8px)",
  },
  visible: {
    opacity: 1,
    y: 0,
    filter: "blur(0px)",
    transition: {
      duration: 0.6,
      ease: [0.16, 1, 0.3, 1],
    },
  },
};

export const staggerContainer: Variants = {
  hidden: {},
  visible: {
    transition: {
      staggerChildren: 0.1,
      delayChildren: 0.05,
    },
  },
};

// For heavier stagger (e.g., feature grids)
export const staggerContainerSlow: Variants = {
  hidden: {},
  visible: {
    transition: {
      staggerChildren: 0.15,
      delayChildren: 0.1,
    },
  },
};

Reusable AnimateInView Wrapper

// components/AnimateInView.tsx
import { motion, useInView } from "framer-motion";
import { useRef } from "react";
import { staggerContainer, fadeUpBlur } from "@/lib/animations";

interface AnimateInViewProps {
  children: React.ReactNode;
  className?: string;
  delay?: number;
  stagger?: boolean;
}

export function AnimateInView({
  children,
  className,
  delay = 0,
  stagger = false,
}: AnimateInViewProps) {
  const ref = useRef(null);
  const isInView = useInView(ref, { once: true, margin: "-80px" });

  if (stagger) {
    return (
      <motion.div
        ref={ref}
        className={className}
        variants={staggerContainer}
        initial="hidden"
        animate={isInView ? "visible" : "hidden"}
      >
        {children}
      </motion.div>
    );
  }

  return (
    <motion.div
      ref={ref}
      className={className}
      variants={fadeUpBlur}
      initial="hidden"
      animate={isInView ? "visible" : "hidden"}
      transition={{ delay }}
    >
      {children}
    </motion.div>
  );
}

// Individual animated child (use inside AnimateInView with stagger=true)
export function AnimatedItem({
  children,
  className,
}: {
  children: React.ReactNode;
  className?: string;
}) {
  return (
    <motion.div className={className} variants={fadeUpBlur}>
      {children}
    </motion.div>
  );
}

Usage Pattern

// Hero section — single block fade
<AnimateInView>
  <h1>Your Headline</h1>
  <p>Subheadline text here</p>
  <Button>CTA</Button>
</AnimateInView>

// Feature grid — staggered children
<AnimateInView stagger className="grid grid-cols-3 gap-6">
  {features.map((f) => (
    <AnimatedItem key={f.id}>
      <FeatureCard {...f} />
    </AnimatedItem>
  ))}
</AnimateInView>

// Section heading + body — slight delays
<div>
  <AnimateInView delay={0}>
    <h2>Section Title</h2>
  </AnimateInView>
  <AnimateInView delay={0.1}>
    <p>Section description</p>
  </AnimateInView>
</div>

Reduced Motion

// Wrap your app or layout:
import { LazyMotion, domAnimation, MotionConfig } from "framer-motion";

export function Providers({ children }: { children: React.ReactNode }) {
  return (
    <MotionConfig reducedMotion="user">
      <LazyMotion features={domAnimation}>
        {children}
      </LazyMotion>
    </MotionConfig>
  );
}

Plain HTML/CSS/JS — CSS + IntersectionObserver Implementation

CSS Animation Classes

/* Add to your global stylesheet */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(8px);
    transition:
      opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
      filter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .reveal.in-view {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0px);
  }

  /* Stagger delays for children */
  .stagger-children .reveal:nth-child(1) { transition-delay: 0.0s; }
  .stagger-children .reveal:nth-child(2) { transition-delay: 0.1s; }
  .stagger-children .reveal:nth-child(3) { transition-delay: 0.2s; }
  .stagger-children .reveal:nth-child(4) { transition-delay: 0.3s; }
  .stagger-children .reveal:nth-child(5) { transition-delay: 0.4s; }
  .stagger-children .reveal:nth-child(6) { transition-delay: 0.5s; }
  /* Add more as needed */
}

IntersectionObserver Script

// Add before closing </body>
const observer = new IntersectionObserver(
  (entries) => {
    entries.forEach((entry) => {
      if (entry.isIntersecting) {
        entry.target.classList.add("in-view");
        observer.unobserve(entry.target); // animate once
      }
    });
  },
  { rootMargin: "-80px 0px", threshold: 0.1 }
);

document.querySelectorAll(".reveal").forEach((el) => observer.observe(el));

Usage Pattern

<!-- Single block -->
<section>
  <div class="reveal">
    <h2>Section Title</h2>
    <p>Description text</p>
  </div>
</section>

<!-- Staggered grid -->
<div class="stagger-children grid">
  <div class="reveal card">Feature 1</div>
  <div class="reveal card">Feature 2</div>
  <div class="reveal card">Feature 3</div>
</div>

Phase 4 — Section-by-Section Application Guide

Apply improvements and animations to each section type as follows:

SectionDesign UpgradesAnimation Pattern
NavbarGlassmorphism backdrop-blur, subtle border-bottom, refined logo spacingFade in on load (no scroll trigger)
HeroLarge fluid type, strong hierarchy, gradient or decorative blob, CTA button polishSingle block stagger: headline → subtext → CTA button (0.1s each)
Features/GridCard depth (shadow + hover lift), icon refinement, consistent spacingStagger grid items with 0.1–0.15s offset
TestimonialsQuote styling, avatar polish, card surface differentiationStagger cards left-to-right
Stats/NumbersOversized numbers with accent color, label typography, divider linesEach stat fades in with offset
CTA SectionStrong background treatment, button refinement, generous paddingSingle block reveal
FooterColumn spacing, link hover states, subtle dividersSingle reveal

Phase 5 — Quality Checklist

Before delivering the result, verify:

  • All original colors are preserved (no new palette colors introduced)
  • Every section has at least one .reveal / AnimateInView wrapper
  • Stagger is applied to all grid/list/card groups of 2+ items
  • prefers-reduced-motion is respected
  • Hover states exist on all interactive elements
  • Typography has clear hierarchy (not all same size/weight)
  • Cards/surfaces have depth (shadow, border, or background distinction)
  • Spacing feels generous and rhythmic — not cramped
  • No generic placeholder improvements — every change is intentional and visible
  • The site feels noticeably more polished than before

Notes & Edge Cases

  • If the site uses Tailwind: Use motion.div from Framer Motion with Tailwind classes. Add arbitrary values for blur: [filter:blur(8px)] or inline styles for the animation initial state.
  • If colors are defined as Tailwind config values: Reference them in the animation components but don't change them.
  • If there are images: Ensure they have defined height/aspect-ratio + object-fit: cover. Consider adding subtle scale-on-hover.
  • For dark sites: Glassmorphism works especially well. Use bg-white/5 or similar low-opacity whites for card surfaces.
  • For light sites: Use soft, layered shadows (shadow-sm + shadow-md combo). Use slight background tints to distinguish sections.
  • Performance: blur() filter animations can be GPU-intensive on low-end devices. If performance is a concern, drop the blur and use only opacity + translateY.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.55%
按下载量换算101

Claude

31.25%
按下载量换算88

Cursor

17.16%
按下载量换算49

Gemini CLI

10.2%
按下载量换算29

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills