Arunachalam

Horizontal Theme Wipe Toggle

Buttons 36

About

HorizontalThemeWipeToggle — Animated React Theme Switch Button with Vertical Line Reveal Switch between light and dark modes with a visually striking page-wide vertical wipe animation using the native View Transitions API. This button supports both left-to-right and right-to-left transitions for a buttery-smooth, full-page theme swap. Built for React with zero context dependencies and perfect integration with Tailwind and Framer Motion for all icon/label UI.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Horizontal Theme Wipe Toggle to your project and fits it to your theme.

Code

How Horizontal Theme Wipe Toggle is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { HorizontalThemeWipeToggle } from "@/components/ui/theme-wipe-toggle";

export default function ThemeSwitchDemo() {
  return (
    <div className="flex flex-col gap-4 items-center">
      <HorizontalThemeWipeToggle direction="left" />
      <span className="text-xs">Left → Right</span>
      <HorizontalThemeWipeToggle direction="right" />
      <span className="text-xs">Right → Left</span>
    </div>
  );
}

Dependencies

More by Arunachalam

View all
  • Scroll media expansion hero

    Scroll media expansion hero

    10.8K
  • Profile Card Testimonial Carousel

    Profile Card Testimonial Carousel

    1.3K
  • Modern Animated Sign In

    Modern Animated Sign In

    1.1K
  • Bottom Nav Bar

    Bottom Nav Bar

    838
  • Adaptive Notch Navigation Bar

    Adaptive Notch Navigation Bar

    692
  • Toast

    Toast

    661
  • Connected Carousel

    Connected Carousel

    427
  • Animated File Tree

    Animated File Tree

    342

More in Buttons

View all
  • Button

    Button

    1
  • Texture Button

    Texture Button

    97
  • Eclipse Button

    Eclipse Button

    39
  • App Store Button

    App Store Button

    458
  • HeroUI Button Group

    HeroUI Button Group

    2
  • Button

    Button

    4
  • Button

    Button

    65
  • Button

    Button

    68