{
  "id": "doniaskima_happy-moth-17",
  "name": "happy-moth-17",
  "category": "buttons",
  "author": "doniaskima",
  "description": "happy-moth-17 组件 (button, anime, animation, gradient, interactive)",
  "tags": [
    "button",
    "anime",
    "animation",
    "gradient",
    "interactive"
  ],
  "original": {
    "html": "<button class=\"btn-23\">\n  <span class=\"text\">Button</span>\n  <span aria-hidden=\"\" class=\"marquee\">Button</span>\n</button>",
    "css": "/* From Uiverse.io by doniaskima - Tags: button, anime */\n.btn-23,\n.btn-23 *,\n.btn-23 :after,\n.btn-23 :before,\n.btn-23:after,\n.btn-23:before {\n  border: 0 solid;\n  box-sizing: border-box;\n}\n\n.btn-23 {\n  -webkit-tap-highlight-color: transparent;\n  -webkit-appearance: button;\n  background-color: #000;\n  background-image: none;\n  color: #fff;\n  cursor: pointer;\n  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,\n    Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif,\n    Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;\n  font-size: 100%;\n  font-weight: 900;\n  line-height: 1.5;\n  margin: 0;\n  -webkit-mask-image: -webkit-radial-gradient(#000, #fff);\n  padding: 0;\n  text-transform: uppercase;\n}\n\n.btn-23:disabled {\n  cursor: default;\n}\n\n.btn-23:-moz-focusring {\n  outline: auto;\n}\n\n.btn-23 svg {\n  display: block;\n  vertical-align: middle;\n}\n\n.btn-23 [hidden] {\n  display: none;\n}\n\n.btn-23 {\n  border-radius: 99rem;\n  border-width: 2px;\n  overflow: hidden;\n  padding: 0.8rem 3rem;\n  position: relative;\n}\n\n.btn-23 span {\n  display: grid;\n  inset: 0;\n  place-items: center;\n  position: absolute;\n  transition: opacity 0.2s ease;\n}\n\n.btn-23 .marquee {\n  --spacing: 5em;\n  --start: 0em;\n  --end: 5em;\n  -webkit-animation: marquee 1s linear infinite;\n  animation: marquee 1s linear infinite;\n  -webkit-animation-play-state: paused;\n  animation-play-state: paused;\n  opacity: 0;\n  position: relative;\n  text-shadow: #fff var(--spacing) 0, #fff calc(var(--spacing) * -1) 0,\n    #fff calc(var(--spacing) * -2) 0;\n}\n\n.btn-23:hover .marquee {\n  -webkit-animation-play-state: running;\n  animation-play-state: running;\n  opacity: 1;\n}\n\n.btn-23:hover .text {\n  opacity: 0;\n}\n\n@-webkit-keyframes marquee {\n  0% {\n    transform: translateX(var(--start));\n  }\n\n  to {\n    transform: translateX(var(--end));\n  }\n}\n\n@keyframes marquee {\n  0% {\n    transform: translateX(var(--start));\n  }\n\n  to {\n    transform: translateX(var(--end));\n  }\n}",
    "file_path": "/mnt/persist/workspace/Buttons/doniaskima_happy-moth-17.html"
  },
  "uniapp": {
    "template": "<button class=\"btn-23\"></button>\n  <text class=\"text\">Button</text>\n  <text aria-hidden=\"\" class=\"marquee\">Button</text>\n</button>",
    "script": "export default {\n  name: 'GalaxyHappyMoth17',\n  props: {\n    // 根据组件类型动态生成props\n  },\n  data() {\n    return {\n      // 组件状态\n    };\n  },\n  methods: {\n    // 组件方法\n  }\n}",
    "style": "\n/* From Uiverse.io by doniaskima - Tags: button, anime */\n.btn-23,\n.btn-23 *,\n.btn-23 :after,\n.btn-23 :before,\n.btn-23:after,\n.btn-23:before {\n  border: 0 solid;\n  box-sizing: border-box;\n}\n\n.btn-23 {\n  -webkit-tap-highlight-color: transparent;\n  -webkit-appearance: button;\n  background-color: #000;\n  background-image: none;\n  color: #fff;\n  /* #ifdef H5 */\n  cursor: pointer;\n  /* #endif */\n  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,\n    Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif,\n    Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;\n  font-size: 100%;\n  font-weight: 900;\n  line-height: 1.5;\n  margin: 0;\n  -webkit-mask-image: -webkit-radial-gradient(#000, #fff);\n  padding: 0;\n  text-transform: uppercase;\n}\n\n.btn-23:disabled {\n  /* #ifdef H5 */\n  cursor: default;\n  /* #endif */\n}\n\n.btn-23:-moz-focusring {\n  outline: auto;\n}\n\n.btn-23 svg {\n  display: block;\n  vertical-align: middle;\n}\n\n.btn-23 [hidden] {\n  display: none;\n}\n\n.btn-23 {\n  border-radius: 99rem;\n  border-width: 4rpx;\n  overflow: hidden;\n  padding: 0.8rem 3rem;\n  position: relative;\n}\n\n.btn-23 span {\n  display: grid;\n  inset: 0;\n  place-items: center;\n  position: absolute;\n  transition: opacity 0.2s ease;\n}\n\n.btn-23 .marquee {\n  --spacing: 5em;\n  --start: 0em;\n  --end: 5em;\n  -webkit-animation: marquee 1s linear infinite;\n  animation: marquee 1s linear infinite;\n  -webkit-animation-play-state: paused;\n  animation-play-state: paused;\n  opacity: 0;\n  position: relative;\n  /* #ifdef H5 */\n  text-shadow: #fff var(--spacing) 0, #fff calc(var(--spacing) * -1) 0,\n    #fff calc(var(--spacing) * -2) 0;\n  /* #endif */\n}\n\n.btn-23:hover .marquee {\n  -webkit-animation-play-state: running;\n  animation-play-state: running;\n  opacity: 1;\n}\n\n.btn-23:hover .text {\n  opacity: 0;\n}\n\n@-webkit-keyframes marquee {\n  0% {\n    transform: translateX(var(--start));\n  }\n\n  to {\n    transform: translateX(var(--end));\n  }\n}\n\n@keyframes marquee {\n  0% {\n    transform: translateX(var(--start));\n  }\n\n  to {\n    transform: translateX(var(--end));\n  }\n}\n\n",
    "component_name": "GalaxyHappyMoth17"
  },
  "platforms": {
    "h5": true,
    "mp-weixin": true,
    "mp-alipay": true,
    "mp-baidu": true,
    "mp-toutiao": true,
    "app-plus": true
  },
  "props": [
    {
      "name": "disabled",
      "type": "Boolean",
      "default": false,
      "required": false,
      "description": "是否禁用"
    },
    {
      "name": "text",
      "type": "String",
      "default": "按钮",
      "required": false,
      "description": "按钮文字"
    },
    {
      "name": "type",
      "type": "String",
      "default": "primary",
      "required": false,
      "description": "按钮类型"
    }
  ],
  "events": [
    {
      "name": "click",
      "description": "点击事件",
      "parameters": [
        "event"
      ]
    }
  ],
  "slots": [
    {
      "name": "",
      "description": "",
      "props": []
    }
  ],
  "compatibility": {
    "h5": {
      "supported": true,
      "issues": [],
      "alternatives": []
    },
    "mp-weixin": {
      "supported": true,
      "issues": [
        "不支持 text-shadow 属性",
        "不支持 mask 属性",
        "不支持 cursor 属性"
      ],
      "alternatives": []
    },
    "mp-alipay": {
      "supported": true,
      "issues": [
        "不支持 text-shadow 属性",
        "不支持 mask 属性",
        "不支持 cursor 属性"
      ],
      "alternatives": []
    },
    "app-plus": {
      "supported": true,
      "issues": [],
      "alternatives": []
    }
  },
  "performance": {
    "complexity": "high",
    "bundle_size": 2111,
    "render_cost": "high",
    "memory_usage": "high"
  },
  "dependencies": [],
  "examples": [
    {
      "title": "",
      "description": "",
      "code": ""
    }
  ],
  "created_at": "2025-07-31T07:55:36.351Z",
  "updated_at": "2025-07-31T07:55:36.351Z"
}