Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

6.3 KB
Raw Blame
/* Layered Vibey art: the body breathes while each accessory runs its own loop. */
.vibey-art {
  position: absolute;
  inset: 0;
  display: block;
  aspect-ratio: 1;
  animation: pet-change 320ms ease-out;
}

.vibey-art img.va-body {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: 50% 86%;
  pointer-events: none;
}

.vibey-art img.va-part,
.vibey-art .va-bubble-group,
.vibey-art .va-tool {
  position: absolute;
  display: block;
  max-width: none;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: none;
  pointer-events: none;
}

.vibey-art .va-bubble-group img.va-bubble {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.vibey-art .va-tool svg {
  display: block;
  overflow: visible;
}

/* Body motion keeps the existing desktop-pet breathing feel. */
.vibey-art.is-breathing .va-body {
  animation: va-breathe 3.6s ease-in-out infinite;
}

.vibey-art.is-sleeping .va-body {
  animation: va-breathe-deep 3.6s ease-in-out infinite;
}

@keyframes va-breathe {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  50% { transform: translateY(-3px) scale(1.015, 0.985); }
}

@keyframes va-breathe-deep {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  50% { transform: translateY(-3px) scale(1.02, 0.98); }
}

/* 有事需要你: three dots rise bottom -> top, then the envelope pops; loop. */
.va-needs_input .va-part { animation: 3s ease-out infinite both; }
.va-needs_input .va-dot[data-step='0'] { animation-name: va-needs-d0; }
.va-needs_input .va-dot[data-step='1'] { animation-name: va-needs-d1; }
.va-needs_input .va-dot[data-step='2'] { animation-name: va-needs-d2; }
.va-needs_input .va-envelope {
  transform-origin: 18% 82%;
  animation-name: va-needs-env;
}

@keyframes va-needs-d0 {
  0% { opacity: 0; transform: scale(.2); }
  7% { opacity: 1; transform: scale(1.3); }
  11%, 80% { opacity: 1; transform: none; }
  90%, 100% { opacity: 0; transform: scale(.6); }
}

@keyframes va-needs-d1 {
  0%, 11% { opacity: 0; transform: scale(.2); }
  18% { opacity: 1; transform: scale(1.3); }
  22%, 80% { opacity: 1; transform: none; }
  90%, 100% { opacity: 0; transform: scale(.6); }
}

@keyframes va-needs-d2 {
  0%, 22% { opacity: 0; transform: scale(.2); }
  29% { opacity: 1; transform: scale(1.3); }
  33%, 80% { opacity: 1; transform: none; }
  90%, 100% { opacity: 0; transform: scale(.6); }
}

@keyframes va-needs-env {
  0%, 35% { opacity: 0; transform: scale(.3) rotate(-14deg); }
  45% { opacity: 1; transform: scale(1.14) rotate(5deg); }
  51% { transform: scale(.95) rotate(-3deg); }
  57% { transform: none; }
  63% { transform: rotate(-7deg); }
  67% { transform: rotate(6deg); }
  71%, 80% { opacity: 1; transform: none; }
  90%, 100% { opacity: 0; transform: scale(.75); }
}

/* 出了点问题: the sweat drop keeps sliding down. */
.va-blocked .va-drop {
  transform-origin: 50% 0;
  animation: va-drop 1.8s infinite both;
}

@keyframes va-drop {
  0% { opacity: 0; transform: translateY(-8%) scale(.45); animation-timing-function: ease-out; }
  20% { opacity: 1; transform: none; }
  32% { opacity: 1; transform: none; animation-timing-function: cubic-bezier(.5, 0, .9, .6); }
  80% { opacity: 1; transform: translateY(135%) scale(.94, 1.08); }
  94%, 100% { opacity: 0; transform: translateY(170%) scale(.8, 1.1); }
}

/* 自己在想 / 团队在干活: trail dots light up bottom -> top, the bubble floats. */
.va-running .va-tdot,
.va-team .va-tdot {
  animation: va-tdot 1.4s ease-in-out infinite both;
  animation-delay: calc(var(--step) * 220ms);
}

.va-running .va-bubble-group,
.va-team .va-bubble-group {
  animation: va-float 2.4s ease-in-out infinite;
}

.va-running .va-glyph {
  transform-origin: 50% 88%;
  animation: va-wobble 1.6s ease-in-out infinite;
}

.va-team .va-tool {
  transform-origin: 50% 50%;
  animation: va-wrench 1.1s ease-in-out infinite;
}

@keyframes va-tdot {
  0%, 100% { opacity: .35; transform: scale(.8); }
  30% { opacity: 1; transform: scale(1.18); }
  60% { opacity: 1; transform: none; }
}

@keyframes va-float {
  0%, 100% { transform: none; }
  50% { transform: translateY(-6%); }
}

@keyframes va-wobble {
  0%, 100% { transform: rotate(-9deg); }
  50% { transform: rotate(9deg); }
}

@keyframes va-wrench {
  0%, 100% { transform: rotate(-28deg); }
  45% { transform: rotate(22deg); }
  58% { transform: rotate(14deg); }
}

/* 有新汇报: confetti bursts out piece by piece and drifts down; loop. */
.va-ready .va-confetti {
  animation: va-confetti 2.6s ease-out infinite both;
  animation-delay: calc(var(--step) * 70ms);
}

@keyframes va-confetti {
  0% { opacity: 0; transform: translate(calc(var(--dx) * -170%), calc(var(--dy) * -170%)) scale(.2) rotate(-90deg); }
  16% { opacity: 1; transform: translate(calc(var(--dx) * 25%), calc(var(--dy) * 25%)) scale(1.2) rotate(12deg); }
  26% { opacity: 1; transform: none; }
  70% { opacity: 1; transform: translate(calc(var(--dx) * 45%), calc(var(--dy) * 45% + 40%)) rotate(28deg); }
  86%, 100% { opacity: 0; transform: translate(calc(var(--dx) * 65%), calc(var(--dy) * 65% + 80%)) scale(.8) rotate(45deg); }
}

/* 睡着了: small z first, then the big Z, both drifting up; loop. */
.va-sleeping .va-z { animation: 3.2s ease-out infinite both; }
.va-sleeping .va-z[data-step='0'] { animation-name: va-z0; }
.va-sleeping .va-z[data-step='1'] { animation-name: va-z1; }

@keyframes va-z0 {
  0% { opacity: 0; transform: translate(-25%, 35%) scale(.4); }
  14% { opacity: 1; transform: none; }
  72% { opacity: 1; transform: translate(10%, -14%); }
  88%, 100% { opacity: 0; transform: translate(18%, -32%) scale(.9); }
}

@keyframes va-z1 {
  0%, 26% { opacity: 0; transform: translate(-25%, 35%) scale(.4); }
  42% { opacity: 1; transform: none; }
  76% { opacity: 1; transform: translate(8%, -12%); }
  90%, 100% { opacity: 0; transform: translate(14%, -26%) scale(.9); }
}

/* Hidden documents pause looping body/accessory motion while allowing the
   one-shot pose-change squash to reach its final state. Focus does not
   matter: the pet window is visible without ever taking focus. */
.vibey-art[data-active='false'] * {
  animation-play-state: paused !important;
}

/* Still thumbnails and reduced motion show the full static composition. */
.vibey-art.is-still,
.vibey-art.is-still * {
  animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .vibey-art,
  .vibey-art * {
    animation: none !important;
  }
}