Mekai UI: Animated UI Component Library for Apps & Games

A free animated React UI component library for landing pages, apps, and game-inspired products.

Mekai UI is an animated React UI component library for landing pages, app screens, and game-inspired products.

Animated text, interactive controls, XP bars, and health meters are available as free, editable TypeScript components through the shadcn CLI.

Features

  • 50+ free components for landing pages, application UI, and game-style widgets.
  • Scroll-triggered reveals, pointer-responsive backgrounds, and interactive cards.
  • Animated tabs, dialogs, form controls, loaders, and progress indicators.
  • Live previews with adjustable component props.
  • Motion animations and Tailwind CSS 4 theme tokens.
  • MIT-licensed free source for personal and commercial use.

Installation

Initialize shadcn if components.json is missing:

npx shadcn@latest init

Install components (XP bar in this example) from Mekai’s registry. The CLI adds dependencies and theme styles, then writes components/ui/xp-bar.tsx when you use the default shadcn aliases:

npx shadcn@latest add https://ui.mekaigames.com/r/xp-bar.json

Manual Installation

Install Motion, then copy the component code from the official Code tab into components/ui:

npm install motion

Copy theme.css beside your global stylesheet and import it after Tailwind CSS:

@import "tailwindcss";
@import "./theme.css";

Use the Component in Your App

This Next.js App Router example updates the bar when a user earns XP:

"use client";
import { useState } from "react";
import { XpBar } from "@/components/ui/xp-bar";
export default function ProgressDemo() {
  const [xp, setXp] = useState(240);
  return (
    <div className="max-w-sm space-y-4">
      <XpBar xp={xp} perLevel={100} color="#ffc24a" />
      <button
        type="button"
        onClick={() => setXp((current) => current + 35)}
        className="rounded-md border px-4 py-2"
      >
        Earn 35 XP
      </button>
    </div>
  );
}

Available UI Components

Text Animations

ComponentDescription
Scramble TextRandom characters resolve into text on hover or focus.
Blur TextWords sharpen in sequence on scroll.
Split TextIndividual letters spring into place on scroll.
Shiny TextA repeating light sweep across text.
TypewriterTypes, deletes, and cycles through phrases.
Circular TextRotating text ring with space for a center icon.
True FocusFocus brackets move between words.
Echo TextLayered text trails react to the pointer.
Masked RevealHeading lines slide up from masks.
Stroke TextOutlined text fills on hover or focus.
Highlighter TextMarker strokes appear behind selected words on scroll.

Animations

ComponentDescription
Magnetic ButtonButton moves toward the pointer and springs back.
Tilt CardPointer-driven 3D tilt and glare.
Click SparkClick-triggered spark lines around wrapped content.
Ripple ButtonRipples expand from the press location.
Logo MarqueeContinuous logo strip that pauses on hover.
Flip CardTwo-sided card with hover or click rotation.
Glare HoverLight sweep on hover or keyboard focus.
RevealFade, slide, blur, or scale on scroll.
Gradual BlurProgressive blur along a scrolling area’s edge.
OrbitContent circles a center point on one or more rings.
Scroll Progress RingReading progress with an end-of-page back-to-top action.

Backgrounds

ComponentDescription
AuroraSlowly drifting, blurred color fields.
Dot GridCanvas dots ripple around the pointer.
MeteorsRandom diagonal streaks across a starry background.
PlasmaFlowing color field distorted by pointer movement.
GrainientAnimated grainy gradient mesh with a fixed seed option.
OrbGlowing orb that responds to pointer movement.
Magnet LinesLines rotate toward the pointer.
ConstellationMoving points connect when they approach one another.

Cards & Galleries

ComponentDescription
CarouselSwipeable slides with momentum snapping.
Bounce CardsFanned cards that shift on hover or focus.
Expand GalleryPanels expand to reveal captions on hover or focus.
Glass CardFrosted card with pointer-following shine.
Before / AfterDraggable, tappable, and keyboard-controlled image comparison.

App UI

ComponentDescription
Animated TabsSliding active indicator and directional panel transitions.
Segmented ControlSingle-selection control with an animated thumb.
DialogSpring-animated modal with focus restoration.
AccordionExpandable sections with animated height.
Animated TooltipTooltip responds to hover, focus, and pointer movement.
Avatar StackOverlapping avatars fan out on hover.
Pill NavActive navigation pill slides between links.
Animated ListRows animate into view with keyboard selection.
Rolling CounterOdometer-style numbers with decimals and negatives.
FolderFolder expands to fan out paper previews.
Skeleton LoaderShimmering placeholders transition into loaded content.

Forms & Inputs

ComponentDescription
Toggle SwitchSwitch knob stretches and springs between states.
Floating InputFloating label with animated focus and error states.
Animated CheckboxAnimated checkmark and indeterminate state.
Star RatingInteractive star ratings with keyboard controls.

Game UI

ComponentDescription
XP BarLevel badge and animated experience progress.
Pixel Button8-bit-style button with pressed-down feedback.
Health BarDamage indicator with a trailing health bar.

Theme Customization

Mekai UI’s theme.css defines Tailwind CSS 4 colors and fonts. To change the shared accent colors, add these overrides after the Mekai theme in your global CSS:

@theme {
  --color-ember: #f97316;
  --color-gold: #fbbf24;
}

Related Resources

mekai-ui

mekai-ui

Leave a Reply

Your email address will not be published. Required fields are marked *