LayerwiseLayerwise
  • Features
  • Pricing
  • Templates
  • Docs
DownloadDownload
FeaturesPricingTemplatesDocsAI Website BuilderVibe CodingPersonal Software
DownloadDownload
  1. Glossary
  2. /
  3. Layout

Split screen

Also called split layout, split view, or two-pane layout

A layout that divides the screen into two side-by-side panels, each with its own content, sometimes with a divider you drag to resize.

import { useState, type ReactNode } from 'react';

const MIN = 25; // percent of the width for each pane
const STEP = 5;

type Props = { left: ReactNode; right: ReactNode };

export function SplitView({ left, right }: Props) {
  const [split, setSplit] = useState(
    () => Number(localStorage.getItem('split')) || 50
  );

  function resize(next: number) {
    const value = Math.min(100 - MIN, Math.max(MIN, next));
    setSplit(value);
    localStorage.setItem('split', String(value));
  }

  return (
    <div
      className='grid h-full'
      style={{ gridTemplateColumns: `${split}% 9px 1fr` }}
    >
      <div className='min-w-0 overflow-auto'>{left}</div>
      {/* A 9px grab area around a 1px line. */}
      <div
        role='separator'
        aria-orientation='vertical'
        aria-label='Resize panes'
        aria-valuenow={Math.round(split)}
        tabIndex={0}
        className='group flex cursor-col-resize touch-none justify-center outline-none'
        onPointerDown={(event) =>
          event.currentTarget.setPointerCapture(event.pointerId)
        }
        onPointerMove={(event) => {
          if (!event.currentTarget.hasPointerCapture(event.pointerId)) return;
          const box =
            event.currentTarget.parentElement!.getBoundingClientRect();
          resize(((event.clientX - box.left) / box.width) * 100);
        }}
        onKeyDown={(event) => {
          if (event.key === 'ArrowLeft') resize(split - STEP);
          if (event.key === 'ArrowRight') resize(split + STEP);
        }}
      >
        <div className='w-px bg-border group-hover:w-0.5 group-hover:bg-blue-500 group-focus-visible:w-0.5 group-focus-visible:bg-blue-500' />
      </div>
      <div className='min-w-0 overflow-auto'>{right}</div>
    </div>
  );
}
Make the sign-in page a split screen: the form on the left half and a full-height brand image with a customer quote on the right; under 768px, hide the image and center the form. On the editor page, add a draggable divider between the code and preview panes, keep each pane at least 280px wide, support arrow keys on the focused divider, and save the split to localStorage.

Paste into Layerwise or any AI coding tool.

What is Split screen?

A split screen gives two things equal weight. On marketing and sign-in pages it is often a form or headline on one side and a large image or brand color on the other. In tools it is two working panes, such as a code editor and a live preview, or a chat and the app it is building, with a draggable divider between them.

On phones, stack the halves with the more important one first, or switch between them with tabs. For resizable panes, set a minimum width on each side, make the grab area wider than the visible line, use cursor: col-resize, let keyboard users move the divider with the arrow keys, and remember the size between visits.

A fixed split is a two-column grid: grid-template-columns: 1fr 1fr. For a resizable one, store the left pane’s width as a percentage and update it while the divider is dragged, or use a library such as react-resizable-panels.

Related terms

All terms

Sidebar

A vertical panel along the side of an app that holds the main navigation, often collapsible to a slim strip of icons.

Drag gesture

Moving an element by pressing on it and sliding the pointer or finger, usually within set bounds and with a glide after release.

Responsive design

Designing one layout that adapts to any screen width, rearranging columns, sizes, and navigation at set widths called breakpoints.

Hero section

The large first section at the top of a landing page, with a headline, a short subhead, a call to action, and a visual.

Build it with Layerwise

Describe your app, watch it run in a live preview, and publish it with a database, storage, and sign-in built in.

DownloadDownloadRead the docs
LayerwiseLayerwise

Build full-stack web apps in minutes with AI.

Product

  • Features
  • Pricing
  • Download
  • Templates

Solutions

  • AI Website Builder
  • Vibe Coding
  • Personal Software

Resources

  • Documentation
  • Changelog
  • Blog
  • Vibe Coding Glossary
  • llms.txt
  • llms-full.txt

Company

  • About
  • Contact

Legal

  • Privacy
  • Analytics Privacy
  • Terms
  • Security
  • Abuse

© 2026 Layerwise. All rights reserved.

Entrances & exits

  • Fade in
  • Slide in
  • Scale in
  • Pop in
  • Blur in
  • Reveal animation
  • Enter and exit animations

Timing & sequencing

  • Duration
  • Delay
  • Keyframes
  • Tweening
  • Stagger
  • Orchestration
  • Fill mode
  • Stepped animation
  • Looping animation
  • Yoyo animation

Easing

  • Easing
  • Linear easing
  • Ease-in
  • Ease-out
  • Ease-in-out
  • Cubic-bezier
  • Asymmetric easing
  • Overshoot easing

Springs & physics

  • Spring animation
  • Stiffness
  • Damping
  • Mass
  • Bounce
  • Velocity
  • Momentum
  • Interruptible animation
  • Rubber-banding

Transforms

  • Translate
  • Scale
  • Rotate
  • Skew
  • 3D flip
  • Perspective
  • Transform origin
  • Origin-aware animation

State transitions

  • Crossfade
  • Morph
  • Shared element transition
  • Layout animation
  • Height auto animation
  • Direction-aware transition
  • Continuity transition
  • Page transition
  • View Transitions API

Scroll effects

  • Scroll reveal
  • Scroll-driven animation
  • Parallax scrolling
  • Scrollytelling
  • Scroll pinning
  • Horizontal scroll section
  • Scroll progress bar
  • Scroll snap
  • Smooth scrolling

Interaction feedback

  • Hover effect
  • Press feedback
  • Ripple effect
  • Shake animation
  • Hold to confirm
  • Drag gesture
  • Drag to reorder
  • Swipe to dismiss
  • Pull to refresh
  • Magnetic button
  • Custom cursor
  • 3D tilt card
  • Spotlight card

Text effects

  • Typewriter effect
  • Text scramble
  • Split text animation
  • Text morph
  • Rotating words
  • Gradient text
  • Shimmer text
  • Number ticker
  • Tabular numbers
  • Underline animation

Loops & ambient motion

  • Marquee
  • Pulse animation
  • Float animation
  • Orbit animation
  • Idle animation
  • Particle background
  • Border beam
  • Confetti
  • Animated gradient

Visual effects

  • Blur
  • Clip-path
  • Mask
  • Before/after slider
  • SVG line drawing
  • Lottie animation

Motion principles

  • Purposeful animation
  • Anticipation
  • Follow-through
  • Squash and stretch
  • Perceived performance
  • Frequency of use
  • Spatial consistency
  • Reduced motion

Animation performance

  • Frame rate (FPS)
  • Jank
  • GPU acceleration
  • will-change
  • Layout thrashing

Layout

  • Hero section
  • Above the fold
  • Sticky header
  • Sidebar
  • Bento grid
  • Card
  • Flexbox
  • CSS Grid
  • Padding vs margin
  • Responsive design
  • Container
  • Masonry layout
  • Split screen
  • Z-index
  • Overflow

Components

  • Button variants
  • Modal
  • Drawer
  • Popover
  • Tooltip
  • Dropdown menu
  • Context menu
  • Toast notification
  • Tabs
  • Segmented control
  • Accordion
  • Carousel
  • Command palette
  • Combobox
  • Toggle switch
  • Checkbox
  • Radio button
  • Date picker
  • Breadcrumb
  • Pagination
  • Infinite scroll
  • Badge
  • Avatar stack
  • Empty state
  • Skeleton screen
  • Spinner
  • Progress bar
  • Data table
  • Stepper
  • Floating label
  • Inline validation
  • Alert banner
  • Tag input

States & patterns

  • Interaction states
  • Focus ring
  • Loading state
  • Optimistic UI
  • Debounce
  • Lazy loading
  • Dark mode
  • Micro-interaction
  • Affordance
  • Undo
  • Drag and drop
  • Keyboard shortcut

Visual styles

  • Glassmorphism
  • Liquid glass
  • Neumorphism
  • Claymorphism
  • Neo-brutalism
  • Skeuomorphism
  • Flat design
  • Mesh gradient
  • Aurora background
  • Grain texture
  • Glow effect
  • Drop shadow
  • Border radius
  • Grid background
  • Typographic hierarchy
  • Accent color
  • Color contrast

Vibe coding & AI

  • Vibe coding
  • Prompt
  • Context window
  • Token
  • AI agent
  • Tool call
  • Hallucination
  • Diff
  • Live preview
  • Checkpoint
  • Git commit
  • Deploy
  • Frontend and backend
  • API
  • Database
  • Rules file
  • MCP
  • Plan mode
  • Visual edit
acme.com

Welcome back

Sign in to continue

EmailPasswordSign in
Curved blue-and-white towers seen from below

“We launched our app in a weekend.”

Maya Chen, founder

50 / 50