Skip to content

🤖 Open-source, local-first alternative to Grok Bot, OpenAI dots and Claude Duet. Your own AI bots on any model: GPT, Claude, Gemini, Grok, DeepSeek, Kimi, GLM and 70+ more through one Modelflare key. Reach them in the app, WeChat or Feishu; they remember you, work in the background, run commands and use your computer. Pay per use.

2.1 KB
Raw Blame
/* 关键帧库 + 动画工具类。出现 / 消失只有淡入淡出(抽屉的 slide 除外),时长和缓动由使用处给 token。
   位移乘以 --motion:减少动态效果时只剩淡入淡出。 */
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes slide-in { from { opacity: 0; transform: translateX(calc(var(--slide) * var(--motion))); } }
@keyframes slide-out { to { opacity: 0; transform: translateX(calc(var(--slide) * var(--motion))); } }
/* 一次性反馈 */
@keyframes flash { 0%, 35% { background: var(--mark); } }
/* 循环 */
@keyframes spin { to { transform: rotate(360deg); } }
/* 文字微光:配合 background-clip: text、300% 宽的渐变;扫过去(0–70%)后停一拍再来 */
@keyframes sheen { 0% { background-position: 100% 0; } 70%, 100% { background-position: 0 0; } }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes breathe { 0%, 100% { opacity: .45; transform: scale(calc(1 - .15 * var(--motion))); } 50% { opacity: 1; transform: scale(1); } }
@keyframes blink { 50% { opacity: 0; } }

/* 工具类:可用 --anim-dur / --anim-ease / --anim-delay 微调 */
.anim-fade-in { animation: fade-in var(--anim-dur, var(--dur-base)) var(--anim-ease, var(--ease-out)) var(--anim-delay, 0s) both; }
.anim-slide-in { animation: slide-in var(--anim-dur, var(--dur-moderate)) var(--anim-ease, var(--ease-out)) var(--anim-delay, 0s) both; }
.anim-fade-out { animation: fade-out var(--anim-dur, var(--dur-base)) var(--anim-ease, var(--ease-in)) forwards; pointer-events: none; }
.anim-slide-out { animation: slide-out var(--anim-dur, var(--dur-base)) var(--anim-ease, var(--ease-in)) forwards; pointer-events: none; }
.anim-flash { animation: flash var(--dur-flash) var(--ease-out); }

/* 减少 / 关闭动画(<html data-motion>,见 tokens/motion.css):过渡几乎瞬时,不平滑滚动 */
:root:is([data-motion="reduce"], [data-motion="off"]) :is(*, ::before, ::after) { transition-duration: var(--dur-off) !important; scroll-behavior: auto !important; }