Realistic macOS notification banner with app icon, title, and body, suited to video overlays or product teasers.
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-frame-macos-notification-637777d008a7 ,按照其中的说明把「frame-macos-notification」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
【模板: macOS 通知横幅】 【意图】把一段公告 / 消息 / 提示渲染成 macOS Big Sur+ 风格的通知横幅, 适合视频角落叠加、产品发布预告、社媒图。Inspired by hyperframes macos-notification。
【画布】两种用法:
【横幅结构】
background: rgba(245,245,247,0.78) + backdrop-filter: blur(40px) saturate(180%); 暗色版 rgba(28,28,30,0.78)。rgba(0,0,0,0.06) (light) / rgba(255,255,255,0.08) (dark); 顶部加 1px 亮 highlight rgba(255,255,255,0.5)。0 10px 40px rgba(0,0,0,0.18), 0 2px 6px rgba(0,0,0,0.08)。【内容】
now 或具体时间 (12px, opacity 0.6) — 两端对齐。【字体】
SF Pro Text → fallback Inter / system-ui; 中文用 PingFang SC / Noto Sans SC。【可选附加】
transform: translateX(110%)→0, 200ms ease-out; 可被 prefers-reduced-motion 关闭。【设计细节】
backdrop-filter Safari 需要 -webkit- 前缀。