finisher-header
v1.0.1
Published
Configure your own animated header below and use it on your website
Readme
I am not the author, just publish it on npm for your convenience.
Finisher Header
Online demo: https://www.finisher.co/lab/header/
Configure your own animated header below and use it on your website
by Finisher ― a workflow management company
Installation
npm
npm install finisher-headerpnpm
pnpm add finisher-headeryarn
yarn add finisher-headerUsage
See: https://www.finisher.co/lab/header/
import "finisher-header";
// Get your unique configuration from: https://www.finisher.co/lab/header/
new window.FinisherHeader({
count: 6,
size: {
min: 1100,
max: 1300,
pulse: 0,
},
speed: {
x: {
min: 0.1,
max: 0.3,
},
y: {
min: 0.1,
max: 0.3,
},
},
colors: {
background: "#9138e5",
particles: ["#6bd6ff", "#ffcb57", "#ff333d"],
},
blending: "overlay",
opacity: {
center: 1,
edge: 0.1,
},
skew: -2,
shapes: ["c"],
});Next.js
// app/page.tsx
import { FinisherHeader } from "./_components/finisherHeader";
export default async function Home() {
return (
<>
<div className="finisher-header">Logo, navigation, etc.</div>
<FinisherHeader />
</>
);
}// app/_components/finisherHeader.tsx
"use client";
import { useEffect } from "react";
export function FinisherHeader() {
useEffect(() => {
try {
async function init() {
await import("finisher-header");
// Get your unique configuration from: https://www.finisher.co/lab/header/
new window.FinisherHeader({
count: 6,
size: {
min: 1100,
max: 1300,
pulse: 0,
},
speed: {
x: {
min: 0.1,
max: 0.3,
},
y: {
min: 0.1,
max: 0.3,
},
},
colors: {
background: "#9138e5",
particles: ["#6bd6ff", "#ffcb57", "#ff333d"],
},
blending: "overlay",
opacity: {
center: 1,
edge: 0.1,
},
skew: 0,
shapes: ["c"],
});
}
init();
} catch (error) {
console.error(error);
}
}, []);
return null;
}