SearchCtrlK

  • ↑↓navigate
  • ↵open
  • escclose

Can’t find it? Contact us

MotionLoop

A frame for any looping illustration that runs longer than five seconds.

Probe
Confirm
Page
View code
tsx
<MotionLoop pauseLabel="Pause the pipeline animation">
	<PipelineDiagram />
</MotionLoop>

Demo landings

Whole pages built only from @sdxc/ui, each for an invented product with its own palette and type. They open in a new tab.

Every demo, landings and docs sites alike, is listed in the demo gallery.

Installation

An ordinary dependency: install it, import the theme once, and import the component where it is used.

Terminal
npm add @sdxc/ui remix
typescript
import "@sdxc/ui/theme.css";

Usage

typescript
import { MotionLoop } from "@sdxc/ui/landing";

Wraps looping content and pauses all of it, pseudo-elements included, while its toggle is checked or the pointer rests on it. Under reduced motion the toggle hides, since the content is expected to hold still.

Props

Read from the component's own types, so every prop, every default and every allowed value is listed.

PropTypeRequiredDescription
pauseLabelstringNoAccessible name of the toggle. Defaults to "Pause the animation".
placement"start-start" | "start-end" | "end-start" | "end-end" | "inline"NoToggle corner. Defaults to DEFAULT_PLACEMENT.
childrenRemixNodeYesThe looping content.

Also accepts everything in TagProps<"div">.

Types

NameValuesWhat it decides
Placement"start-start" | "start-end" | "end-start" | "end-end" | "inline"Corner the toggle sits in, as block then inline edge, so right-to-left pages mirror.
@sdxc/ui

Can’t find it? Contact us