Arunachalam

Horizontal Theme Wipe Toggle

Buttons 35

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.6K
  • Profile Card Testimonial Carousel

    Profile Card Testimonial Carousel

    1.2K
  • Modern Animated Sign In

    Modern Animated Sign In

    1.1K
  • Bottom Nav Bar

    Bottom Nav Bar

    801
  • Toast

    Toast

    659
  • Adaptive Notch Navigation Bar

    Adaptive Notch Navigation Bar

    656
  • Connected Carousel

    Connected Carousel

    378
  • Animated File Tree

    Animated File Tree

    336

More in Buttons

View all
  • Button

    Button

    14
  • Texture Button

    Texture Button

    92
  • Button

    Button

    34
  • Button Save

    Button Save

    46
  • Button

    Button

    64
  • Button

    Button

  • Notification Button

    Notification Button

    103
  • App Store Button

    App Store Button

    453