wok-ui-animation

Orchestrate reusable CSS animations for wok-ui components with animate and Animation.

Updated Sep 14, 2023
One-click install
npx skills add https://github.com/PeakTai/wok-ui --skill wok-ui-animation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wok-ui-animation
Source: https://github.com/PeakTai/wok-ui/tree/main/skills/wok-ui-animation
Command: npx skills add https://github.com/PeakTai/wok-ui --skill wok-ui-animation

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

wok-ui 内置了一套 CSS 动画系统,通过 animate 函数让任意 DOM 元素呈现预设的动画效果。动画在内置模块中被广泛使用,帮助实现一致、可复用的用户界面过渡。

Core Features & Use Cases

  • 内置动画系统与 animate 函数,支持淡入、滑动、缩放等预设效果,适用于模态框、弹窗、提示等场景。
  • 提供丰富的动画类型枚举(Animation)和可配置参数(reverse、duration),方便在不同交互中快速应用。
  • 典型用例包括页面切换、组件显示/隐藏、以及在复杂模态交互中的渐变效果。

Quick Start

使用内置的 animate 函数为目标元素应用预设的 CSS 动画类型。

Frequently Asked Questions about wok-ui-animation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I apply reusable CSS animations to modal dialogs and popovers in TypeScript?

To apply reusable CSS animations to modal dialogs and popovers, use the built-in animate function with a preset Animation enum. Configure options like reverse and duration to enable consistent entry and exit animation flows for UI elements.

What is the best way to implement consistent entry and exit animations for UI components?

The best way to implement consistent entry and exit animations is using a CSS animation system with an animate function. It provides preset effects like fade, slide, and scale, along with an Animation enum for quick application across web app components.

Can I configure the duration and reverse the direction of a CSS animation dynamically?

Yes, you can configure the duration and reverse the direction dynamically. The animate function accepts options for reverse and duration, allowing you to control animation behavior and adapt effects for different interaction contexts.

What preset CSS animation types are available for web app transitions?

Available preset CSS animation types include fade, slide, and scale effects. These are defined within an Animation enum, making them suitable for page transitions, component visibility toggles, and complex modal interactions.

Does this CSS animation system work without external dependencies?

Yes, the CSS animation system works without external dependencies. It leverages a built-in animate function and Animation enum to orchestrate reusable transitions directly on DOM elements within your existing UI library setup.

When do I need a reverse animation option for UI components?

You need a reverse animation option when handling component exit flows, such as hiding popovers or closing modals. Setting reverse to true plays the preset effect backward, ensuring smooth and consistent transitions.