Token导航 LogoToken导航TokenDH.com
效率执行命令clawhub未标认证来源可访问clear审计通过

wechat-svg-effects微信 svg 效果

Agent Skill

wechat-svg-effects 用于辅助前端页面、组件、样式和交互逻辑开发,适合在 OpenClaw 中需要维护前端项目、生成组件或检查界面实现时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

3,951

周安装

168

GitHub Stars

公开资料未说明

下载量

1,384
OpenClaw

安装说明

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

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:wechat-svg-effects(微信 svg 效果)
来源仓库:https://github.com/kylinr/wechat-svg-effects
安装命令:
openclaw skills install wechat-svg-effects
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

ClawHubOpenClaw
openclaw skills install wechat-svg-effects

简介

wechat-svg-effects 为公众号文章创建纯 SVG/CSS 动画效果,规避 JavaScript 限制。

  • 适用于 OpenClaw 中需要增强图文互动性的前端开发场景。
  • 支持多种内置主题和自定义样式,确保微信端兼容。
  • 安装命令为 openclaw skills install wechat-svg-effects,无需外部依赖。
  • 所有交互必须基于 SVG 动画,不支持复杂逻辑或事件驱动。

SKILL.md

name
wechat-svg-effects
description
|

WeChat Official Account SVG/CSS Interactive Effects

All interactivity must be pure SVG + inline CSS. WeChat bans JavaScript entirely.

Core Constraints

  • SVG events: begin="mousedown", begin="click", begin="touchstart"
  • SVG animation: <animate>, <animatetransform>, <animateMotion>
  • CSS: inline style="" only (no <style> blocks, no external sheets)
  • <foreignObject> to embed HTML inside SVG
  • Text in SVG: <text> + <tspan leaf=""> (leaf attr is WeChat-specific)
  • Append <p style="display:none;"><mp-style-type data-value="10000"/></p> at end to enable WeChat special rendering
  • viewBox width: 750 (mobile-optimized)

Four Architecture Patterns

PatternUse CaseComplexity
A. HTML + SVG accentsVisual enhancement, animated decorations★☆☆
B. Pure SVG state machineClick games, step-by-step reveals★★☆
C. SVG + HTML hybridInteractive header + long-form body★★☆
D. CSS Grid + multi-SVGInteractive courseware, multi-card reveals★★★

For detailed architecture patterns, examples, and animation templates, read references/patterns.md.

Quick Start: Click-to-Reveal Template

Single-layer cover that disappears on click:

<g>
  <!-- 1. Fade out on click -->
  <animate attributeName="opacity" values="1;0"
           dur="0.01s" fill="freeze"
           begin="mousedown" restart="never"/>
  <!-- 2. Move off-screen after delay -->
  <animatetransform attributeName="transform" type="translate"
                    values="0 0;2000 0" dur="0.01s" fill="freeze"
                    begin="click+0.02s" restart="never"/>
  <!-- Background + content -->
  <rect width="750" height="2400" fill="#0d1117"/>
  <text x="375" y="500" fill="#c9d1d9" font-size="24" text-anchor="middle">
    <tspan leaf="">👆 Click to reveal</tspan>
  </text>
</g>
ParamFast (game)Slow (ceremony)
click delayclick+0.02sclick+0.3s

Multi-Layer Reveal

Stack layers bottom-to-top in SVG (later elements render on top). Each layer has its own mousedown/click triggers with restart="never":

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 750 600"
     style="display:block;width:100%;">
  <!-- Bottom: final reveal -->
  <rect width="750" height="600" fill="#0d1117"/>
  <text x="375" y="300" fill="#7ee787" font-size="36" text-anchor="middle">
    <tspan leaf="">🎉 Unlocked!</tspan>
  </text>
  <!-- Layer 2 -->
  <g>
    <animate attributeName="opacity" values="1;0"
             dur="0.01s" fill="freeze" begin="mousedown" restart="never"/>
    <animatetransform attributeName="transform" type="translate"
                      values="0 0;2000 0" dur="0.01s" fill="freeze"
                      begin="click+0.05s" restart="never"/>
    <rect width="750" height="600" fill="#161b22"/>
    <text x="375" y="300" fill="#FF8B2C" font-size="28" text-anchor="middle">
      <tspan leaf="">Level 2 → Tap again</tspan>
    </text>
  </g>
  <!-- Layer 1 (top, visible first) -->
  <g>
    <animate attributeName="opacity" values="1;0"
             dur="0.01s" fill="freeze" begin="mousedown" restart="never"/>
    <animatetransform attributeName="transform" type="translate"
                      values="0 0;2000 0" dur="0.01s" fill="freeze"
                      begin="click+0.05s" restart="never"/>
    <rect width="750" height="600" fill="#21262d"/>
    <text x="375" y="280" fill="#c9d1d9" font-size="28" text-anchor="middle">
      <tspan leaf="">👆 Tap to start</tspan>
    </text>
  </g>
</svg>
<p style="display:none;"><mp-style-type data-value="10000"/></p>

Bounce Feedback

Add tactile bounce on every tap (restart="always"):

<g>
  <animatetransform attributeName="transform" type="translate"
                    values="0 0;0 22;0 0" dur="0.5s"
                    begin="mousedown" restart="always"/>
  <rect width="750" height="1000" fill="#161b22" opacity="0.01"/>
</g>

Terminal UI Color Palette (GitHub Dark)

RoleHex
Background#0d1117
Panel#161b22
Border#30363d
Red#ff5f56
Yellow#ffbd2e
Green#27c93f
Body text#c9d1d9
Comment#6e7681
Highlight#FF8B2C
Success#7ee787

Workflow

  1. Choose architecture pattern (A–D) based on complexity
  2. Read references/patterns.md for the chosen pattern's detailed template
  3. Build SVG with proper layer ordering (bottom = final reveal, top = first visible)
  4. Test all restart="never" vs restart="always" logic
  5. Append <mp-style-type data-value="10000"/> at the end
  6. Validate: no <script>, no <style> blocks, no external CSS, all styles inline

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

能力 5

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

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

平台分布

OpenClaw

75.1%
按下载量换算1,039

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 openclaw skills install wechat-svg-effects 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

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

来源信息

继续浏览同类 Skills