{
  "id": "Pradeepsaranbishnoi_spotty-chipmunk-79",
  "name": "spotty-chipmunk-79",
  "category": "buttons",
  "author": "Pradeepsaranbishnoi",
  "description": "spotty-chipmunk-79 组件 (button, animation)",
  "tags": [
    "button",
    "animation"
  ],
  "original": {
    "html": "<input id=\"c\" type=\"checkbox\">\n<label id=\"upload_app\" for=\"c\">\n  <div id=\"app\">\n    <div id=\"arrow\"></div>\n    <div id=\"success\">\n      <i class=\"fas fa-check-circle\"></i>\n    </div>\n  </div>\n</label>",
    "css": "/* From Uiverse.io by Pradeepsaranbishnoi - Tags: button */\n#c {\n  display: none;\n}\n\n#upload_app {\n  display: block;\n  position: absolute;\n  top: 50%;\n  right: 0;\n  left: 0;\n  margin: 0 auto;\n  width: 120px;\n  height: 42px;\n  transform: translateY(-50%);\n  transition: 0.3s ease width;\n  cursor: pointer;\n}\n\n#app {\n  position: absolute;\n  top: 0;\n  right: 0;\n  bottom: 0;\n  left: 0;\n  background-color: #fff;\n  border: 2px solid #143240;\n  overflow: hidden;\n  z-index: 2;\n}\n\n#app:before {\n  content: \"Upload\";\n  position: absolute;\n  top: 0;\n  right: 0;\n  padding: 12px;\n  left: 0;\n  color: #143240;\n  font-size: 14px;\n  line-height: 14px;\n  font-weight: bold;\n  z-index: 1;\n}\n\n#arrow {\n  position: absolute;\n  top: 0;\n  right: 0;\n  width: 38px;\n  height: 38px;\n  background-color: #fff;\n  z-index: 2;\n}\n\n#arrow:before,\n#arrow:after {\n  content: \"\";\n  position: absolute;\n  top: 18px;\n  width: 10px;\n  height: 2px;\n  background-color: #143240;\n}\n\n#arrow:before {\n  right: 17px;\n  transform: rotateZ(-45deg);\n}\n\n#arrow:after {\n  right: 11px;\n  transform: rotateZ(45deg);\n}\n\n#success {\n  position: absolute;\n  top: 0;\n  right: 0;\n  width: 54px;\n  height: 54px;\n  margin: -8px;\n  background-color: #143240;\n  transform: scale(0);\n  border-radius: 50%;\n  z-index: 3;\n}\n\n#success i {\n  font-size: 20px;\n  color: #fff;\n  display: block;\n  width: 20px;\n  height: 20px;\n  margin: 17px auto;\n  transform: scale(0);\n}\n\n#c:checked + #upload_app {\n  width: 42px;\n}\n\n#c:checked + #upload_app #arrow:before {\n  animation: _a 0.4s ease 0.4s forwards, _incHeight 4s ease 1s forwards;\n}\n\n#c:checked + #upload_app #arrow:after {\n  animation: _b 0.4s ease 0.4s forwards, _incHeight 4s ease 1s forwards;\n}\n\n#c:checked + #upload_app #success {\n  animation: _success 0.4s cubic-bezier(0, 0.74, 0.32, 1.21) 5s forwards;\n}\n\n#c:checked + #upload_app #success i {\n  animation: _success 0.3s cubic-bezier(0, 0.74, 0.32, 1.21) 5.2s forwards;\n}\n\n@keyframes _a {\n  0% {\n    top: 18px;\n    right: 17px;\n    width: 10px;\n    transform: rotateZ(-45deg);\n    background-color: #143240;\n  }\n\n  100% {\n    top: 36px;\n    right: 19px;\n    width: 19px;\n    transform: rotateZ(0deg);\n    background-color: #ffc107;\n  }\n}\n\n@keyframes _b {\n  0% {\n    top: 18px;\n    right: 11px;\n    width: 10px;\n    transform: rotateZ(45deg);\n    background-color: #143240;\n  }\n\n  100% {\n    top: 36px;\n    right: 0;\n    width: 19px;\n    transform: rotateZ(0deg);\n    background-color: #ffc107;\n  }\n}\n\n@keyframes _incHeight {\n  0% {\n    top: 36px;\n    height: 2px;\n  }\n\n  25% {\n    top: 31px;\n    height: 8px;\n  }\n\n  50% {\n    top: 21px;\n    height: 18px;\n  }\n\n  80% {\n    top: 11px;\n    height: 28px;\n  }\n\n  100% {\n    top: 0;\n    height: 39px;\n  }\n}\n\n@keyframes _success {\n  0% {\n    transform: scale(0);\n  }\n\n  100% {\n    transform: scale(1);\n  }\n}",
    "file_path": "/mnt/persist/workspace/Buttons/Pradeepsaranbishnoi_spotty-chipmunk-79.html"
  },
  "uniapp": {
    "template": "<input id=\"c\" type=\"checkbox\"></input>\n<label id=\"upload_app\" for=\"c\"></label>\n  <view id=\"app\"></view>\n    <view id=\"arrow\"></view>\n    <view id=\"success\"></view>\n      <i class=\"fas fa-check-circle\"></i>\n    </div>\n  </div>\n</label>",
    "script": "export default {\n  name: 'GalaxySpottyChipmunk79',\n  props: {\n    // 根据组件类型动态生成props\n  },\n  data() {\n    return {\n      // 组件状态\n    };\n  },\n  methods: {\n    // 组件方法\n  }\n}",
    "style": "\n/* From Uiverse.io by Pradeepsaranbishnoi - Tags: button */\n#c {\n  display: none;\n}\n\n#upload_app {\n  display: block;\n  position: absolute;\n  top: 50%;\n  right: 0;\n  left: 0;\n  margin: 0 auto;\n  width: 240rpx;\n  height: 84rpx;\n  transform: translateY(-50%);\n  transition: 0.3s ease width;\n  /* #ifdef H5 */\n  cursor: pointer;\n  /* #endif */\n}\n\n#app {\n  position: absolute;\n  top: 0;\n  right: 0;\n  bottom: 0;\n  left: 0;\n  background-color: #fff;\n  border: 4rpx solid #143240;\n  overflow: hidden;\n  z-index: 2;\n}\n\n#app:before {\n  content: \"Upload\";\n  position: absolute;\n  top: 0;\n  right: 0;\n  padding: 24rpx;\n  left: 0;\n  color: #143240;\n  font-size: 28rpx;\n  line-height: 28rpx;\n  font-weight: bold;\n  z-index: 1;\n}\n\n#arrow {\n  position: absolute;\n  top: 0;\n  right: 0;\n  width: 76rpx;\n  height: 76rpx;\n  background-color: #fff;\n  z-index: 2;\n}\n\n#arrow:before,\n#arrow:after {\n  content: \"\";\n  position: absolute;\n  top: 36rpx;\n  width: 20rpx;\n  height: 4rpx;\n  background-color: #143240;\n}\n\n#arrow:before {\n  right: 34rpx;\n  transform: rotateZ(-45deg);\n}\n\n#arrow:after {\n  right: 22rpx;\n  transform: rotateZ(45deg);\n}\n\n#success {\n  position: absolute;\n  top: 0;\n  right: 0;\n  width: 108rpx;\n  height: 108rpx;\n  margin: -16rpx;\n  background-color: #143240;\n  transform: scale(0);\n  border-radius: 50%;\n  z-index: 3;\n}\n\n#success i {\n  font-size: 40rpx;\n  color: #fff;\n  display: block;\n  width: 40rpx;\n  height: 40rpx;\n  margin: 34rpx auto;\n  transform: scale(0);\n}\n\n#c:checked + #upload_app {\n  width: 84rpx;\n}\n\n#c:checked + #upload_app #arrow:before {\n  animation: _a 0.4s ease 0.4s forwards, _incHeight 4s ease 1s forwards;\n}\n\n#c:checked + #upload_app #arrow:after {\n  animation: _b 0.4s ease 0.4s forwards, _incHeight 4s ease 1s forwards;\n}\n\n#c:checked + #upload_app #success {\n  animation: _success 0.4s cubic-bezier(0, 0.74, 0.32, 1.21) 5s forwards;\n}\n\n#c:checked + #upload_app #success i {\n  animation: _success 0.3s cubic-bezier(0, 0.74, 0.32, 1.21) 5.2s forwards;\n}\n\n@keyframes _a {\n  0% {\n    top: 36rpx;\n    right: 34rpx;\n    width: 20rpx;\n    transform: rotateZ(-45deg);\n    background-color: #143240;\n  }\n\n  100% {\n    top: 72rpx;\n    right: 38rpx;\n    width: 38rpx;\n    transform: rotateZ(0deg);\n    background-color: #ffc107;\n  }\n}\n\n@keyframes _b {\n  0% {\n    top: 36rpx;\n    right: 22rpx;\n    width: 20rpx;\n    transform: rotateZ(45deg);\n    background-color: #143240;\n  }\n\n  100% {\n    top: 72rpx;\n    right: 0;\n    width: 38rpx;\n    transform: rotateZ(0deg);\n    background-color: #ffc107;\n  }\n}\n\n@keyframes _incHeight {\n  0% {\n    top: 72rpx;\n    height: 4rpx;\n  }\n\n  25% {\n    top: 62rpx;\n    height: 16rpx;\n  }\n\n  50% {\n    top: 42rpx;\n    height: 36rpx;\n  }\n\n  80% {\n    top: 22rpx;\n    height: 56rpx;\n  }\n\n  100% {\n    top: 0;\n    height: 78rpx;\n  }\n}\n\n@keyframes _success {\n  0% {\n    transform: scale(0);\n  }\n\n  100% {\n    transform: scale(1);\n  }\n}\n\n",
    "component_name": "GalaxySpottyChipmunk79"
  },
  "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": "high",
    "bundle_size": 2999,
    "render_cost": "high",
    "memory_usage": "high"
  },
  "dependencies": [],
  "examples": [
    {
      "title": "",
      "description": "",
      "code": ""
    }
  ],
  "created_at": "2025-07-31T07:55:34.326Z",
  "updated_at": "2025-07-31T07:55:34.326Z"
}