Loading...
Loading...
Use when the project depends on @usefluid/motion or the user names Fluid, and they want an opening, intro or splash built from their logo with Fluid. Not for native app launch screens or splash screens without Fluid.
npx skill4agent add usefluid/fluidui fluid-splash| Model | Ends on | Good for |
|---|---|---|
| your own content ( | a home page with a headline and a call to action |
| a picker that sends the logo into other shapes | products with several audiences |
| the brand name | brands where the name matters |
npx @usefluid/cli add splash-shapesfluid-brandlogofluid logotitlechildren"use client";
import { useEffect, useState } from "react";
import { SplashShapes } from "@/components/fluid/splash-shapes/SplashShapes";
import { logo } from "@/lib/logo";
export function Opening() {
const [play, setPlay] = useState(false);
useEffect(() => setPlay(sessionStorage.getItem("opening") !== "1"), []);
return (
<SplashShapes
key={play ? "play" : "final"}
logo={logo}
as="h1"
title="Small-batch coffee,"
words={["roasted.", "every morning."]}
finished={!play}
onDone={() => sessionStorage.setItem("opening", "1")}
>
<p>Order ahead and pick up on your way.</p>
<a href="/order">Order now</a>
</SplashShapes>
);
}finished<head>finishedskippableas="h1"route={[...]}--fluid-splash-heightroute| Mistake | Fix |
|---|---|
| A long sentence as a changing word | One or two words; the rest as normal text |
| The last shape of the route looks like the logo | Change |
| Playing it on every page | Only on the first screen, once per visit |
A full page squeezed into | |