JPG 卡夹
JPG 文件形状的皮革卡夹,可拉出卡片。
- Dependencies (1)
功能
- 悬停或点击以提起卡片和折叠的角。
- 向上拖动卡片将其拉出。释放时它会滑回。
使用场景
- 作品集上的互动英雄插图。
- 关于页面上有趣的细节。
安装
pnpm dlx shadcn@latest add @yourname/jpg-card-holder
用法
import { JpgCardHolder } from "@/components/jpg-card-holder"<JpgCardHolder />无障碍
- 装饰性,因此对辅助技术来说是隐藏的。
- 使用
prefers-reduced-motion时,悬停不会移动任何内容,卡片返回时不会反弹。
致谢
License and usage
- Free to use and modify in both personal and commercial projects.
- Attribution is appreciated but not required.
- Released under the MIT License.
Every component here is built and maintained by one person. If you enjoy using them, you can sponsor my work.