Principle:AI QL Tuui Splash Animation Asset
| Knowledge Sources | |
|---|---|
| Domains | UI_Asset, Animation |
| Last Updated | 2026-10-24 00:00 GMT |
Overview
A UI asset pattern that uses a Lottie JSON animation — a vector-based, resolution-independent format — rendered by a Vue component to provide immediate visual feedback during application startup.
Description
The Splash Animation Asset pattern describes the use of a Lottie animation JSON bundled as a static resource and played back by a Lottie-rendering Vue component on the splash or welcome screen. It addresses the problem of perceived startup latency: by showing a lightweight, frame-based vector animation instantly, the user receives visual feedback while the heavier main window, IPC handlers, and MCP clients finish initializing. Because Lottie is vector-based, the animation scales cleanly across display densities. In the broader desktop UI ecosystem, this is a standard technique for polished app onboarding.
Usage
Use this principle when a desktop or web application needs a smooth, resolution-independent animation on a splash or welcome screen to mask startup latency, and the animation should be bundled as a static JSON asset rather than a video or GIF.
Theoretical Basis
The animation is a Lottie JSON: a sequence of shape layers and keyframes describing how vector paths animate over time.
- Bundle — Ship the Lottie JSON as a static asset under
src/public/ - Register — Globally register a Lottie-rendering component (e.g.
Vue3Lottie) in the renderer entry - Play — Pass the asset URL to the component's
animationLinkprop with loop and auto-play enabled - Replace — On the splash screen, swap to the main window once the main window is ready
Lottie JSON (static asset) → Vue3Lottie component → vector frames rendered at 30fps on splash screen