Skip to main content

Add loading effects

Add decorative motion beside a readable loading message.

Before you start: Style utilities.

Loading loops do not need a changed target. Keep useful static text so a stopped animation does not remove the meaning.

Loading: spin​

animate-spin repeats rotation.

<Row class="p-4 gap-3 items-center">
<View class="w-6 h-6 bg-accent rounded-sm animate-spin" />
<Text text="Loading your files" />
</Row>
Loading: spin
editable
Browser preview
rReady to explore
Environment & events

Browser rendering of the shared document. Host services are bundled demo mocks. XML edits reset local state; data edits preserve compatible state.

Interact with the preview to inspect emitted events and mocked service calls.

Try it: Replace it with animate-none; the loading label remains.

Loading: pulse​

animate-pulse repeats opacity changes.

<Row class="p-4 gap-3 items-center">
<View class="w-6 h-6 bg-accent rounded-sm animate-pulse" />
<Text text="Loading your files" />
</Row>
Loading: pulse
editable
Browser preview
rReady to explore
Environment & events

Browser rendering of the shared document. Host services are bundled demo mocks. XML edits reset local state; data edits preserve compatible state.

Interact with the preview to inspect emitted events and mocked service calls.

Try it: Choose Reduced in Environment & events and check the static state.

Loops stop while hidden/offscreen, backgrounded, detached, reduced, or off. Next: motion policy. Reference: animation.