lottie-micro-fx

Play lightweight Lottie micro‑animations on a page using lottie‑web to enhance interaction feedback without blocking clicks. Applicable to scenarios that need Lottie animations, microinteraction feedback, or success animations and that use lottie‑web.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "lottie-micro-fx" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-81778a45cc24f20f42338d4542fc78b86b9441a1b488703c7785c137a9c017bf. Verify the upstream source and version against https://skillhub.cn/skills/user_f1b049da/erz20269918 before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Play lightweight Lottie micro‑animations on a page using lottie‑web to enhance interaction feedback without blocking clicks. Applicable to scenarios that need Lottie animations, microinteraction feedback, or success animations and that use lottie‑web.

0 Downloads

Introduction source: third_party · user_f1b049da · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: lottie-micro-fx
slug: erz20269918
displayName: Lottie动效
version: 1.0.0
summary: 用 lottie-web 播放轻量微动效,增强成功/加载等操作反馈。
license: MIT
description: 用 lottie-web 在页面播放轻量 Lottie 微动效,增强操作反馈且不挡点击。当用户需要 Lottie 动效、微交互反馈、成功动画、lottie-web 时使用。

Lottie 动效(lottie-web)

灵感:能力工具箱 lottie-anim(pkg: lottie-web)。

用一小段 Lottie JSON 做成功/加载反馈:看得见、不吵闹、不挡鼠标。

何时使用

  • 保存成功、提交成功的角落小庆祝
  • 空状态/引导页轻动画
  • 不想上沉重视频,只要矢量微动效

硬约束

  1. 依赖 lottie-web;动画 JSON 放本地或可信 CDN。
  2. 容器默认 pointer-events: none(除非明确要可点的引导)。
  3. 尊重 prefers-reduced-motion: reduce:跳过播放,可只留静态图标/文案。
  4. 播完可 destroy / 卸节点,避免泄漏;循环类需可关。
  5. 实现要点注释可标 小四原创。

实现要点(小四原创)

import lottie, { AnimationItem } from 'lottie-web'

// 小四原创:一次性成功微动效
export function playMicroLottie(
  container: HTMLElement,
  animationData: object,
  opts?: { loop?: boolean },
): AnimationItem | null {
  if (window.matchMedia('(prefers-reduced-motion: reduce)').matches) return null
  container.style.pointerEvents = 'none'
  const anim = lottie.loadAnimation({
    container,
    renderer: 'svg',
    loop: opts?.loop ?? false,
    autoplay: true,
    animationData,
  })
  anim.addEventListener('complete', () => {
    anim.destroy()
    container.replaceChildren()
  })
  return anim
}

Agent 步骤

  1. 准备短 JSON(或项目已有资源),封装 playMicroLottie。
  2. 挂到成功回调;自测减动效时不播放。
  3. 确认不挡表单点击。

附加

Current listing version

1.0.0

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value78/100

Highlights

  • 提供轻量 Lottie 微动效播放能力,适用于成功反馈、加载状态等常见前端交互场景
  • 具有明确的实用价值和广泛受众,属于通用工具类别
Trigger Precision88/100

Highlights

  • 触发描述清晰明确,覆盖 Lottie 动效、微交互反馈、成功动画等核心场景
  • 边界清晰,不易与其他 Skill 混淆
Structure and Standards75/100

Areas to improve

  • 缺少端到端完整示例 Reported severity: Minor

    文档提供了核心函数实现,但缺少一个完整的端到端使用示例

    Recommendation: 建议补充一个完整的使用示例,展示从引入到实际调用的完整流程

Highlights

  • 文档结构清晰,包含何时使用、硬约束、实现要点、Agent 步骤等必要章节
  • frontmatter 完整,代码示例规范
Execution Reliability85/100

Highlights

  • 核心函数实现考虑了 prefers-reduced-motion 无障碍场景,体现专业性
  • 提供了销毁机制避免内存泄漏,参数设计合理
  • 工具来源明确(lottie-web),执行流程可靠
Evidence Verifiability (mean of the first four)82/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.