{
  "id": "misaraadel_tame-elephant-97",
  "name": "tame-elephant-97",
  "category": "buttons",
  "author": "misaraadel",
  "description": "tame-elephant-97 组件 (button, clip-path, hover effect, clip, button hover effect, hover idea, hover me, clip path animation, animation, interactive)",
  "tags": [
    "button",
    "clip-path",
    "hover effect",
    "clip",
    "button hover effect",
    "hover idea",
    "hover me",
    "clip path animation",
    "animation",
    "interactive"
  ],
  "original": {
    "html": "<a class=\"custom-btn secondary-color\" href=\"#\">\n  <span>\n    hover me\n  </span>\n</a>",
    "css": "/* From Uiverse.io by misaraadel - Tags: button, clip-path, hover effect, clip, button hover effect , hover idea, hover me, clip path animation */\n.custom-btn {\n  width: 220px;\n  height: 50px;\n  display: flex;\n  align-items: center;\n  align-content: center;\n  justify-content: center;\n  position: relative;\n  z-index: 9;\n  border: 1px solid #5BA50E;\n  gap: 10px;\n  text-decoration: none;\n  background-color: #5BA50E;\n}\n\n.custom-btn::after {\n  content: \"\";\n  position: absolute;\n  width: 100%;\n  height: 100%;\n  -webkit-clip-path: polygon(0 0, 100% 0, 0 0, 0 100%);\n  clip-path: polygon(0 0, 100% 0, 0 0, 0 100%);\n  z-index: -1;\n  background-color: #fff;\n  top: 0;\n  left: 0;\n  opacity: 0;\n}\n\n.custom-btn span {\n  font-size: 16px;\n  font-weight: 700;\n  color: #fff;\n}\n\n.custom-btn:hover::after {\n  animation: sideClip 0.5s linear;\n  -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);\n  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);\n  opacity: 1;\n}\n\n.custom-btn:hover span {\n  animation: storm 0.4s linear both;\n  color: #5BA50E;\n}\n\n@keyframes sideClip {\n  0% {\n    clip-path: polygon(0 0, 100% 0, 0 0, 0 100%);\n  }\n\n  50% {\n    clip-path: polygon(0 0, 100% 0, 0 100%, 0 100%);\n  }\n\n  100% {\n    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);\n  }\n}\n\n@keyframes storm {\n  0% {\n    transform: translate3d(0, 0, 0) translateZ(0);\n  }\n\n  25% {\n    transform: translate3d(4px, 0, 0) translateZ(0);\n  }\n\n  50% {\n    transform: translate3d(-3px, 0, 0) translateZ(0);\n  }\n\n  75% {\n    transform: translate3d(2px, 0, 0) translateZ(0);\n  }\n\n  100% {\n    transform: translate3d(0, 0, 0) translateZ(0);\n  }\n}",
    "file_path": "/mnt/persist/workspace/Buttons/misaraadel_tame-elephant-97.html"
  },
  "uniapp": {
    "template": "<navigator class=\"custom-btn secondary-color\" href=\"#\"></navigator>\n  <text></text>\n    hover me\n  </span>\n</a>",
    "script": "export default {\n  name: 'GalaxyTameElephant97',\n  props: {\n    // 根据组件类型动态生成props\n  },\n  data() {\n    return {\n      // 组件状态\n    };\n  },\n  methods: {\n    // 组件方法\n  }\n}",
    "style": "\n/* From Uiverse.io by misaraadel - Tags: button, clip-path, hover effect, clip, button hover effect , hover idea, hover me, clip path animation */\n.custom-btn {\n  width: 440rpx;\n  height: 100rpx;\n  display: flex;\n  align-items: center;\n  align-content: center;\n  justify-content: center;\n  position: relative;\n  z-index: 9;\n  border: 2rpx solid #5BA50E;\n  gap: 20rpx;\n  text-decoration: none;\n  background-color: #5BA50E;\n}\n\n.custom-btn::after {\n  content: \"\";\n  position: absolute;\n  width: 100%;\n  height: 100%;\n  -webkit-\n  \n  z-index: -1;\n  background-color: #fff;\n  top: 0;\n  left: 0;\n  opacity: 0;\n}\n\n.custom-btn span {\n  font-size: 32rpx;\n  font-weight: 700;\n  color: #fff;\n}\n\n.custom-btn:hover::after {\n  animation: sideClip 0.5s linear;\n  -webkit-\n  \n  opacity: 1;\n}\n\n.custom-btn:hover span {\n  animation: storm 0.4s linear both;\n  color: #5BA50E;\n}\n\n@keyframes sideClip {\n  0% {\n    \n  }\n\n  50% {\n    \n  }\n\n  100% {\n    \n  }\n}\n\n@keyframes storm {\n  0% {\n    transform: translate3d(0, 0, 0) translateZ(0);\n  }\n\n  25% {\n    transform: translate3d(8rpx, 0, 0) translateZ(0);\n  }\n\n  50% {\n    transform: translate3d(-6rpx, 0, 0) translateZ(0);\n  }\n\n  75% {\n    transform: translate3d(4rpx, 0, 0) translateZ(0);\n  }\n\n  100% {\n    transform: translate3d(0, 0, 0) translateZ(0);\n  }\n}\n",
    "component_name": "GalaxyTameElephant97"
  },
  "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": [
        "不支持 clip-path 属性"
      ],
      "alternatives": []
    },
    "mp-alipay": {
      "supported": true,
      "issues": [
        "不支持 clip-path 属性"
      ],
      "alternatives": []
    },
    "app-plus": {
      "supported": true,
      "issues": [],
      "alternatives": []
    }
  },
  "performance": {
    "complexity": "medium",
    "bundle_size": 1702,
    "render_cost": "medium",
    "memory_usage": "medium"
  },
  "dependencies": [],
  "examples": [
    {
      "title": "",
      "description": "",
      "code": ""
    }
  ],
  "created_at": "2025-07-31T07:55:37.276Z",
  "updated_at": "2025-07-31T07:55:37.276Z"
}