motionsnack

Animated React sections that already feel finished.

Copy them into Next.js or add them with one command. Plain React and Tailwind, light and dark.

New sections, once a month

One short email when something new lands. No spam.

Library

  • Sections
  • Blocks
  • Components
  • Application UI
  • Templates

Popular

  • Hero
  • Gallery
  • Testimonials
  • Stats
  • Logos
  • FAQ

Resources

  • Installation
  • All components
  • All blocks
  • All sections
  • All application UI
  • Design system
  • Changelog
  • Pricing

Company

  • About
  • Contact
  • Terms
  • Privacy

Install

npx motionsnack add <name>Step-by-step guidehello@motionsnack.dev
Kuba Šťastný@kubastastnydev

© 2026 motionsnack. All rights reserved.

TermsPrivacy

motionsnack

motionsnack
DocsSectionsTemplatesWhat's newPricing
Get lifetime access
  1. Home
  2. Docs
  3. Components
  4. Loader
  5. Line Loader
ComponentsBlocksSectionsApplication UI
ComponentsBlocksSectionsApplication UI

Accordion

  • Spring Accordion

Alert

  • Glow Alert

Audio

  • Podcast PlayerNew
  • Voice NoteNew
  • Voice RecorderNew

Avatar

  • Avatar Stack

Badge

  • Pulse Badge

Breadcrumb

  • Slide Breadcrumb

Button

  • Chip ButtonNew
  • Glow Border Button
  • Glow ButtonNew
  • Plain ButtonNew

Calendar

  • Month Calendar

Checkbox

  • Checkbox CardsNew
  • Checkbox GroupNew
  • Chip CheckboxNew

Cropper

  • Image Cropper

Dialog

  • Spring Dialog

Dropdown

  • Command MenuNew
  • Stagger Dropdown
  • Switcher DropdownNew

File Upload

  • Drop Zone Upload

Input

  • Addon InputNew
  • Button InputNew
  • Copy InputNew
  • Date InputNew
  • Floating Label Input
  • Joined InputsNew
  • Notched Label InputNew
  • Number StepperNew
  • OTP InputNew
  • Password InputNew
  • Phone InputNew
  • Range InputNew
  • Search InputNew
  • Tag InputNew
  • Text FieldNew

Loader

  • Curtain LoaderNew
  • Greeting LoaderNew
  • Line LoaderNew
  • Meter LoaderNew
  • Split LoaderNew

Navigation Menu

  • Mobile Tab BarNew

Notification

  • Notification BellNew
  • Toast Stack

Pagination

  • Sliding Pagination

Popover

  • Spring Popover

Radio

  • Card Radio Group
  • Payment MethodNew
  • Radio GroupNew
  • Rating RadioNew

Select

  • ComboboxNew
  • Glide Select
  • Multi SelectNew
  • Rich SelectNew
  • Select FieldNew
  • Tree SelectNew

Sidebar

  • Icon RailNew

Slider

  • Glow Slider

Stepper

  • Progress Stepper

Switch

  • Billing SwitchNew
  • Switch RowNew
  • Toggle SwitchNew

Table

  • Sortable Table

Tabs

  • Sliding Tabs

Textarea

  • Auto Grow Textarea

Toggle

  • Icon ToggleNew
  • Theme ToggleNew
  • Toggle GroupNew

Tooltip

  • Follow Tooltip

Loader

Line Loader

New

One thin line fills across the screen, then the screen fades out.

npx motionsnack add line-loader

Customize

ms
ms
ms
<LineLoader />

Props

10 properties

PropertyTypeDefaultDescription
backgroundstringzinc-100 / zinc-900 in darkColour of the loader's panels / backdrop.
colorstringzinc-950 / white in darkColour of text, numbers and lines drawn on it.
containedbooleanfalseFill the nearest positioned parent instead of the whole window.
loopDelayMsnumber1200Pause before a looped loader starts again, in ms.
onPhase(phase: 'in' | 'out' | 'done', revealAfterMs?: number) => void-Called on every phase change. With 'out' it also says after how many ms the page under the loader is visible enough to start its own animation.
classNamestring''Extra classes on the loader.
fillMsnumber1800How long the line takes to fill, in ms.
fadeMsnumber600How long the backdrop takes to fade away, in ms.
minDurationMsnumber0Minimum time on screen before it starts leaving, in ms. The loader never leaves before the line is full.
loopbooleanfalseStart over a moment after it finishes. For demos; a real page shows it once.

About Line Loader

The quietest intro: a single thin line in the middle of the screen fills from left to right and the screen fades away to the page. It covers the whole window by default or just its parent with the contained prop, reports its phases through onPhase so the page can start its own animation at the right moment, and is skipped for visitors who prefer reduced motion. Colours follow the light and dark look or come from props.

What's included

  • One thin progress line
  • Fill and fade duration as props
  • Announced to screen readers as a progress bar
  • Whole window or contained in a parent
  • Phase callback for the page under it
  • Light and dark, skipped with reduced motion
Type
Animated React loader component
Library
Components · Loader
Stack
Next.js, React, Tailwind CSS
Added
2026-11-20
Install
npx motionsnack add line-loader