Skip to content

Tilt Card ​

Vue 已实现 · 还原验收 0/1 · 上游演示 · 固定版本源码

预览 ​

Material studySilver · 24

用法 ​

vue
<script setup lang="ts">
import { TiltCard } from 'beui-vue'
</script>
<template><TiltCard class="sample"><strong>Material study</strong><span>Silver · 24</span></TiltCard></template>
<style scoped>.sample { padding:2rem; max-width:21rem; aspect-ratio:1.8; display:grid; align-content:space-between; color:white; background:linear-gradient(135deg,#383b49,#11121a 70%); }.sample span { font:12px monospace; }</style>

API ​

max 设置最大倾角,glare 控制跟随鼠标的高光。默认插槽提供卡片内容。

还原验收 ​

基于 beUI 的独立 Vue 移植,依 MIT 许可证分发。