{
  "id": "SouravBandyopadhyay_rare-sloth-65",
  "name": "rare-sloth-65",
  "category": "tooltips",
  "author": "SouravBandyopadhyay",
  "description": "rare-sloth-65 组件 (simple, tooltip, animation, text animation, animated, transition, hover effect, hover button, interactive)",
  "tags": [
    "simple",
    "tooltip",
    "animation",
    "text animation",
    "animated",
    "transition",
    "hover effect",
    "hover button",
    "interactive"
  ],
  "original": {
    "html": "<div class=\"payment-button\">\n  <span class=\"label\">Pay Now</span>\n  <span class=\"price\">$49.99</span>\n</div>",
    "css": "/* From Uiverse.io by SouravBandyopadhyay  - Tags: simple, tooltip, animation, text animation, animated, transition, hover effect, hover button */\n.payment-button {\n  --background: #007bff;\n  --text-color: #fff;\n  --hover-background: #0056b3;\n  --hover-text-color: #fff;\n  --border-radius: 4px;\n  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n\n  display: inline-block;\n  cursor: pointer;\n  font-size: 18px;\n  padding: 0.5em 1.5em;\n  background: var(--background);\n  color: var(--text-color);\n  border: none;\n  border-radius: var(--border-radius);\n  box-shadow: var(--box-shadow);\n  transition: transform 0.2s ease-in-out, background 0.3s ease-in-out,\n    color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;\n  text-transform: uppercase;\n  font-weight: 600;\n  position: relative;\n  overflow: hidden;\n}\n\n.label {\n  z-index: 1;\n}\n\n.price {\n  position: absolute;\n  top: 0;\n  left: 0;\n  width: 100%;\n  height: 100%;\n  display: grid;\n  place-items: center;\n  transform-origin: 100%;\n  transform: scale(1);\n  transition: transform 0.3s ease-in-out, color 0.3s ease-in-out,\n    background 0.3s ease-in-out;\n  color: var(--background);\n  background: var(--text-color);\n  border-radius: var(--border-radius);\n  font-weight: bold;\n  font-size: 14px;\n  overflow: hidden;\n}\n\n.payment-button:hover {\n  transform: scale(1.05);\n  background: var(--hover-background);\n  color: var(--hover-text-color);\n  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);\n}\n\n.payment-button:hover .price {\n  transform: scale(0);\n}",
    "file_path": "/mnt/persist/workspace/Tooltips/SouravBandyopadhyay_rare-sloth-65.html"
  },
  "uniapp": {
    "template": "<view class=\"payment-button\"></view>\n  <text class=\"label\">Pay Now</text>\n  <text class=\"price\">$49.99</text>\n</div>",
    "script": "export default {\n  name: 'GalaxyRareSloth65',\n  props: {\n    // 根据组件类型动态生成props\n  },\n  data() {\n    return {\n      // 组件状态\n    };\n  },\n  methods: {\n    // 组件方法\n  }\n}",
    "style": "\n/* From Uiverse.io by SouravBandyopadhyay  - Tags: simple, tooltip, animation, text animation, animated, transition, hover effect, hover button */\n.payment-button {\n  --background: #007bff;\n  --text-color: #fff;\n  --hover-background: #0056b3;\n  --hover-text-color: #fff;\n  --border-radius: 8rpx;\n  --/* #ifdef H5 */\n  /* #ifdef H5 */\n  box-shadow: 0 8rpx 12rpx rgba(0, 0, 0, 0.1);\n  /* #endif */\n  /* #ifdef MP */\n  border: 1rpx solid rgba(0,0,0,0.1);\n  /* #endif */\n  /* #endif */\n\n  display: inline-block;\n  /* #ifdef H5 */\n  cursor: pointer;\n  /* #endif */\n  font-size: 36rpx;\n  padding: 0.5em 1.5em;\n  background: var(--background);\n  color: var(--text-color);\n  border: none;\n  border-radius: var(--border-radius);\n  /* #ifdef H5 */\n  /* #ifdef H5 */\n  box-shadow: var(--box-shadow);\n  /* #endif */\n  /* #ifdef MP */\n  border: 1rpx solid rgba(0,0,0,0.1);\n  /* #endif */\n  /* #endif */\n  transition: transform 0.2s ease-in-out, background 0.3s ease-in-out,\n    color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;\n  text-transform: uppercase;\n  font-weight: 600;\n  position: relative;\n  overflow: hidden;\n}\n\n.label {\n  z-index: 1;\n}\n\n.price {\n  position: absolute;\n  top: 0;\n  left: 0;\n  width: 100%;\n  height: 100%;\n  display: grid;\n  place-items: center;\n  transform-origin: 100%;\n  transform: scale(1);\n  transition: transform 0.3s ease-in-out, color 0.3s ease-in-out,\n    background 0.3s ease-in-out;\n  color: var(--background);\n  background: var(--text-color);\n  border-radius: var(--border-radius);\n  font-weight: bold;\n  font-size: 28rpx;\n  overflow: hidden;\n}\n\n.payment-button:hover {\n  transform: scale(1.05);\n  background: var(--hover-background);\n  color: var(--hover-text-color);\n  /* #ifdef H5 */\n  /* #ifdef H5 */\n  box-shadow: 0 16rpx 24rpx rgba(0, 0, 0, 0.2);\n  /* #endif */\n  /* #ifdef MP */\n  border: 1rpx solid rgba(0,0,0,0.1);\n  /* #endif */\n  /* #endif */\n}\n\n.payment-button:hover .price {\n  transform: scale(0);\n}\n\n",
    "component_name": "GalaxyRareSloth65"
  },
  "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": "是否禁用"
    }
  ],
  "events": [],
  "slots": [
    {
      "name": "",
      "description": "",
      "props": []
    }
  ],
  "compatibility": {
    "h5": {
      "supported": true,
      "issues": [],
      "alternatives": []
    },
    "mp-weixin": {
      "supported": true,
      "issues": [
        "不支持 box-shadow 属性",
        "不支持 cursor 属性"
      ],
      "alternatives": []
    },
    "mp-alipay": {
      "supported": true,
      "issues": [
        "不支持 box-shadow 属性",
        "不支持 cursor 属性"
      ],
      "alternatives": []
    },
    "app-plus": {
      "supported": true,
      "issues": [],
      "alternatives": []
    }
  },
  "performance": {
    "complexity": "medium",
    "bundle_size": 1604,
    "render_cost": "medium",
    "memory_usage": "medium"
  },
  "dependencies": [],
  "examples": [
    {
      "title": "",
      "description": "",
      "code": ""
    }
  ],
  "created_at": "2025-07-31T07:55:38.572Z",
  "updated_at": "2025-07-31T07:55:38.572Z"
}