Перейти до основного вмісту
← 🎨 CSS as a design system·Модуль B7 · Урок 12
ЗавданняBuild the animated card. @keyframes appear { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }. .card animation: appear 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both, padding 24px, background white, border-radius 12px, box-shadow 0 1px 3px rgba(0,0,0,0.1), transition transform 0.2s, max-width 320px. .card:hover transform: translateY(-4px). .card h3 animation: appear 0.5s ease-out 0.1s both. .card p animation: appear 0.5s ease-out 0.2s both. .card .cta padding 10px 20px, background #3B82F6, color white, border none, border-radius 8px, transition: background 0.15s, transform 0.15s. .card .cta:hover background #2563EB, transform translateY(-1px). .card .cta:active transform translateY(0). Reduced-motion override at end.

Завершення модуля: анімована посадкова картка

200 XP14 min
Теорія

Putting B7 together

Build a card that demonstrates EVERY B7 concept:

  • B7-01: transition on hover.
  • B7-02: spring cubic-bezier easing.
  • B7-03: compositor-only transform + opacity.
  • B7-04: @keyframes for entrance.
  • B7-05: staggered entrance animations.
  • B7-06: spinner for a "loading" indicator.
  • B7-09: @starting-style (optional).
  • B7-10: polished button with hover/active/focus.
  • B7-11: reduced-motion override.

End: a card that fades + slides in on load, lifts on hover, has a polished CTA button, all motion respecting prefers-reduced-motion.

🔒

Зареєструйся щоб кодувати

Теорія відкрита всім. Інтерактивний редактор, живий перегляд і перевірка відкриваються з 7-денним безкоштовним trial — потрібна картка, скасування у будь-який час.

Реєстрація — безкоштовний trial →

Перші 10 уроків у кожному треку — безкоштовні. Картка не потрібна.

← НазадНаступний урок →

Отримуй одну пораду з Python чи вебу — щодня поштою

Коротко, без води, без спаму. Відписка — в один клік.