{
  "id": "SelfMadeSystem_strange-cobra-12",
  "name": "strange-cobra-12",
  "category": "buttons",
  "author": "SelfMadeSystem",
  "description": "strange-cobra-12 组件 (animation, button, animated, rainbow, codepen, gradient, interactive)",
  "tags": [
    "animation",
    "button",
    "animated",
    "rainbow",
    "codepen",
    "gradient",
    "interactive"
  ],
  "original": {
    "html": "<a class=\"codepen-button\"><span>Start Coding</span></a>",
    "css": "/* From Uiverse.io by SelfMadeSystem - Tags: animation, button, animated, rainbow, codepen */\n/* Yoinked from CodePen, but improved the animation\nso that it is smooth among other more minor things */\n\n.codepen-button {\n  display: block;\n  cursor: pointer;\n  color: white;\n  margin: 0 auto;\n  position: relative;\n  text-decoration: none;\n  font-weight: 600;\n  border-radius: 6px;\n  overflow: hidden;\n  padding: 3px;\n  isolation: isolate;\n}\n\n.codepen-button::before {\n  content: \"\";\n  position: absolute;\n  top: 0;\n  left: 0;\n  width: 400%;\n  height: 100%;\n  background: linear-gradient(115deg,#4fcf70,#fad648,#a767e5,#12bcfe,#44ce7b);\n  background-size: 25% 100%;\n  animation: an-at-keyframe-css-at-rule-that-translates-via-the-transform-property-the-background-by-negative-25-percent-of-its-width-so-that-it-gives-a-nice-border-animation_-We-use-the-translate-property-to-have-a-nice-transition-so-it_s-not-a-jerk-of-a-start-or-stop .75s linear infinite;\n  animation-play-state: paused;\n  translate: -5% 0%;\n  transition: translate 0.25s ease-out;\n}\n\n.codepen-button:hover::before {\n  animation-play-state: running;\n  transition-duration: 0.75s;\n  translate: 0% 0%;\n}\n\n@keyframes an-at-keyframe-css-at-rule-that-translates-via-the-transform-property-the-background-by-negative-25-percent-of-its-width-so-that-it-gives-a-nice-border-animation_-We-use-the-translate-property-to-have-a-nice-transition-so-it_s-not-a-jerk-of-a-start-or-stop {\n  to {\n    transform: translateX(-25%);\n  }\n}\n\n.codepen-button span {\n  position: relative;\n  display: block;\n  padding: 1rem 1.5rem;\n  font-size: 1.1rem;\n  background: #000;\n  border-radius: 3px;\n  height: 100%;\n}",
    "file_path": "/mnt/persist/workspace/Buttons/SelfMadeSystem_strange-cobra-12.html"
  },
  "uniapp": {
    "template": "<navigator class=\"codepen-button\"><text>Start Coding</text></navigator>",
    "script": "export default {\n  name: 'GalaxyStrangeCobra12',\n  props: {\n    // 根据组件类型动态生成props\n  },\n  data() {\n    return {\n      // 组件状态\n    };\n  },\n  methods: {\n    // 组件方法\n  }\n}",
    "style": "\n/* From Uiverse.io by SelfMadeSystem - Tags: animation, button, animated, rainbow, codepen */\n/* Yoinked from CodePen, but improved the animation\nso that it is smooth among other more minor things */\n\n.codepen-button {\n  display: block;\n  /* #ifdef H5 */\n  cursor: pointer;\n  /* #endif */\n  color: white;\n  margin: 0 auto;\n  position: relative;\n  text-decoration: none;\n  font-weight: 600;\n  border-radius: 12rpx;\n  overflow: hidden;\n  padding: 6rpx;\n  isolation: isolate;\n}\n\n.codepen-button::before {\n  content: \"\";\n  position: absolute;\n  top: 0;\n  left: 0;\n  width: 400%;\n  height: 100%;\n  background: linear-gradient(115deg,#4fcf70,#fad648,#a767e5,#12bcfe,#44ce7b);\n  background-size: 25% 100%;\n  animation: an-at-keyframe-css-at-rule-that-translates-via-the-transform-property-the-background-by-negative-25-percent-of-its-width-so-that-it-gives-a-nice-border-animation_-We-use-the-translate-property-to-have-a-nice-transition-so-it_s-not-a-jerk-of-a-start-or-stop .75s linear infinite;\n  animation-play-state: paused;\n  translate: -5% 0%;\n  transition: translate 0.25s ease-out;\n}\n\n.codepen-button:hover::before {\n  animation-play-state: running;\n  transition-duration: 0.75s;\n  translate: 0% 0%;\n}\n\n@keyframes an-at-keyframe-css-at-rule-that-translates-via-the-transform-property-the-background-by-negative-25-percent-of-its-width-so-that-it-gives-a-nice-border-animation_-We-use-the-translate-property-to-have-a-nice-transition-so-it_s-not-a-jerk-of-a-start-or-stop {\n  to {\n    transform: translateX(-25%);\n  }\n}\n\n.codepen-button span {\n  position: relative;\n  display: block;\n  padding: 1rem 1.5rem;\n  font-size: 1.1rem;\n  background: #000;\n  border-radius: 6rpx;\n  height: 100%;\n}\n",
    "component_name": "GalaxyStrangeCobra12"
  },
  "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": [
        "不支持 cursor 属性"
      ],
      "alternatives": []
    },
    "mp-alipay": {
      "supported": true,
      "issues": [
        "不支持 cursor 属性"
      ],
      "alternatives": []
    },
    "app-plus": {
      "supported": true,
      "issues": [],
      "alternatives": []
    }
  },
  "performance": {
    "complexity": "medium",
    "bundle_size": 1712,
    "render_cost": "medium",
    "memory_usage": "medium"
  },
  "dependencies": [],
  "examples": [
    {
      "title": "",
      "description": "",
      "code": ""
    }
  ],
  "created_at": "2025-07-31T07:55:34.588Z",
  "updated_at": "2025-07-31T07:55:34.588Z"
}