UNPKG

galaxy-uniapp-mcp-server

Version:

Galaxy组件库到UniApp组件转换MCP服务器 - 支持跨平台组件转换、兼容性分析和项目集成

118 lines 6.32 kB
{ "id": "namecho_slippery-moth-23", "name": "slippery-moth-23", "category": "buttons", "author": "namecho", "description": "slippery-moth-23 组件 (button, glitch, animation, gradient, interactive)", "tags": [ "button", "glitch", "animation", "gradient", "interactive" ], "original": { "html": "<button> HOVER ME\n</button>", "css": "/* From Uiverse.io by namecho - Tags: button, glitch */\nbutton,\nbutton::after {\n padding: 16px 20px;\n font-size: 18px;\n background: linear-gradient(45deg, transparent 5%, #ff013c 5%);\n border: 0;\n color: #fff;\n letter-spacing: 3px;\n line-height: 1;\n box-shadow: 6px 0px 0px #00e6f6;\n outline: transparent;\n position: relative;\n}\n\nbutton::after {\n --slice-0: inset(50% 50% 50% 50%);\n --slice-1: inset(80% -6px 0 0);\n --slice-2: inset(50% -6px 30% 0);\n --slice-3: inset(10% -6px 85% 0);\n --slice-4: inset(40% -6px 43% 0);\n --slice-5: inset(80% -6px 5% 0);\n content: \"HOVER ME\";\n display: block;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: linear-gradient(45deg, transparent 3%, #00e6f6 3%, #00e6f6 5%, #ff013c 5%);\n text-shadow: -3px -3px 0px #f8f005, 3px 3px 0px #00e6f6;\n clip-path: var(--slice-0);\n}\n\nbutton:hover::after {\n animation: 1s glitch;\n animation-timing-function: steps(2, end);\n}\n\n@keyframes glitch {\n 0% {\n clip-path: var(--slice-1);\n transform: translate(-20px, -10px);\n }\n\n 10% {\n clip-path: var(--slice-3);\n transform: translate(10px, 10px);\n }\n\n 20% {\n clip-path: var(--slice-1);\n transform: translate(-10px, 10px);\n }\n\n 30% {\n clip-path: var(--slice-3);\n transform: translate(0px, 5px);\n }\n\n 40% {\n clip-path: var(--slice-2);\n transform: translate(-5px, 0px);\n }\n\n 50% {\n clip-path: var(--slice-3);\n transform: translate(5px, 0px);\n }\n\n 60% {\n clip-path: var(--slice-4);\n transform: translate(5px, 10px);\n }\n\n 70% {\n clip-path: var(--slice-2);\n transform: translate(-10px, 10px);\n }\n\n 80% {\n clip-path: var(--slice-5);\n transform: translate(20px, -10px);\n }\n\n 90% {\n clip-path: var(--slice-1);\n transform: translate(-10px, 0px);\n }\n\n 100% {\n clip-path: var(--slice-1);\n transform: translate(0);\n }\n}", "file_path": "/mnt/persist/workspace/Buttons/namecho_slippery-moth-23.html" }, "uniapp": { "template": "<button></button> HOVER ME\n</button>", "script": "export default {\n name: 'GalaxySlipperyMoth23',\n props: {\n // 根据组件类型动态生成props\n },\n data() {\n return {\n // 组件状态\n };\n },\n methods: {\n // 组件方法\n }\n}", "style": "\n/* From Uiverse.io by namecho - Tags: button, glitch */\nbutton,\nbutton::after {\n padding: 32rpx 40rpx;\n font-size: 36rpx;\n background: linear-gradient(45deg, transparent 5%, #ff013c 5%);\n border: 0;\n color: #fff;\n letter-spacing: 6rpx;\n line-height: 1;\n /* #ifdef H5 */\n /* #ifdef H5 */\n box-shadow: 12rpx 0rpx 0rpx #00e6f6;\n /* #endif */\n /* #ifdef MP */\n border: 1rpx solid rgba(0,0,0,0.1);\n /* #endif */\n /* #endif */\n outline: transparent;\n position: relative;\n}\n\nbutton::after {\n --slice-0: inset(50% 50% 50% 50%);\n --slice-1: inset(80% -12rpx 0 0);\n --slice-2: inset(50% -12rpx 30% 0);\n --slice-3: inset(10% -12rpx 85% 0);\n --slice-4: inset(40% -12rpx 43% 0);\n --slice-5: inset(80% -12rpx 5% 0);\n content: \"HOVER ME\";\n display: block;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: linear-gradient(45deg, transparent 3%, #00e6f6 3%, #00e6f6 5%, #ff013c 5%);\n /* #ifdef H5 */\n text-shadow: -6rpx -6rpx 0rpx #f8f005, 6rpx 6rpx 0rpx #00e6f6;\n /* #endif */\n \n}\n\nbutton:hover::after {\n animation: 1s glitch;\n animation-timing-function: steps(2, end);\n}\n\n@keyframes glitch {\n 0% {\n \n transform: translate(-40rpx, -20rpx);\n }\n\n 10% {\n \n transform: translate(20rpx, 20rpx);\n }\n\n 20% {\n \n transform: translate(-20rpx, 20rpx);\n }\n\n 30% {\n \n transform: translate(0rpx, 10rpx);\n }\n\n 40% {\n \n transform: translate(-10rpx, 0rpx);\n }\n\n 50% {\n \n transform: translate(10rpx, 0rpx);\n }\n\n 60% {\n \n transform: translate(10rpx, 20rpx);\n }\n\n 70% {\n \n transform: translate(-20rpx, 20rpx);\n }\n\n 80% {\n \n transform: translate(40rpx, -20rpx);\n }\n\n 90% {\n \n transform: translate(-20rpx, 0rpx);\n }\n\n 100% {\n \n transform: translate(0);\n }\n}\n\n", "component_name": "GalaxySlipperyMoth23" }, "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": [ "不支持 box-shadow 属性", "不支持 text-shadow 属性", "不支持 clip-path 属性" ], "alternatives": [] }, "mp-alipay": { "supported": true, "issues": [ "不支持 box-shadow 属性", "不支持 text-shadow 属性", "不支持 clip-path 属性" ], "alternatives": [] }, "app-plus": { "supported": true, "issues": [], "alternatives": [] } }, "performance": { "complexity": "medium", "bundle_size": 1803, "render_cost": "medium", "memory_usage": "medium" }, "dependencies": [], "examples": [ { "title": "", "description": "", "code": "" } ], "created_at": "2025-07-31T07:55:37.428Z", "updated_at": "2025-07-31T07:55:37.428Z" }