Skip to content

feat(website): add scroll animations and micro-interactions #170

Closed

Description

@ajianaz

Goal

Tambahkan smooth animations & micro-interactions ke landing page tanpa external animation library (Svelte 5 built-in transitions + CSS saja).

Current State

  • Manual IntersectionObserver for scroll reveal (verbose, imperative)
  • Manual typing animation via setInterval
  • CSS @keyframes fade-in-up defined but .scroll-reveal class missing implementation
  • No entrance animation for feature cards
  • No hover effects on cards/buttons beyond basic CSS

Target Animations

1. Scroll Reveal (CSS + IO)

  • Elements fade in + slide up when scrolled into view
  • Staggered delays for grid items (features, steps)
  • Respect prefers-reduced-motion

2. Hero Entrance Sequence

  • Badge → headline → subtitle → terminal → CTAs → bottom text
  • Cascade with 100ms delay each
  • Smooth, not janky

3. Terminal Typing

  • Keep current typing animation but improve:
    • Add line-by-line fade-in (not just appear)
    • Blinking cursor while typing, solid when done
    • Color coding per line type

4. Feature Cards

  • Subtle scale + border-color transition on hover
  • Staggered entrance on scroll

5. Comparison Table

  • Row-by-row highlight animation
  • cora column subtle glow

6. Quick Start Steps

  • Number pulse animation
  • Connect line grow animation

Implementation Approach

  • Pure CSS transitions + IntersectionObserver (no JS animation library)
  • onMount → setup observers once
  • CSS custom properties for animation timing
  • @media (prefers-reduced-motion: reduce) respected throughout

Acceptance Criteria

  • Scroll reveal works smoothly on all sections
  • Hero cascade animation fires on page load
  • Terminal demo typing animation works with observer trigger
  • Feature cards have staggered entrance
  • All animations respect prefers-reduced-motion
  • No layout shift during animations
  • Lighthouse Performance score ≥ 90
  • Build passes

Parent Issue

Part of #160

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions