Effect · foreground layer

Aircraft effect

The Zeenat aircraft effect sends original SVG fighter jets across a foreground layer, oriented in their direction of travel. Pakistan Defence Day uses a right-to-left flyover. Flight endpoints follow viewport resizing, including changes within the same breakpoint.

Installation and imports

Install Zeenat once, then use the aggregate effects entry or the smallest explicit subpath. Both paths are exported by package version 0.3.0.

Install
npm install zeenat
Imports
import { aircraft } from "zeenat/effects";
// or
import { aircraft } from "zeenat/effects/aircraft";

Basic usage

Flyover.tsx
import { ZeenatScene } from "zeenat";
import { aircraft } from "zeenat/effects/aircraft";

const effects = [aircraft()];

export function Decoration() {
  return <ZeenatScene effects={effects} />;
}

aircraft() options

Properties marked required have no factory default. Every other value below is taken from the current TypeScript source.

PropertyTypeRequiredDefaultDescription
colorsreadonly string[]No["#315c4a", "#edf4ef"]CSS colors used for aircraft bodies and accents.
countnumberNo2Base aircraft count before responsive intensity scaling.
direction"ltr" | "rtl"No"ltr"Direction of travel across the viewport.
altitudereadonly [number, number]No[0.16, 0.48]Minimum and maximum vertical position as viewport fractions.
layer"background" | "ambient" | "foreground" | "top"No"foreground"Semantic layer used to order the effect inside the Zeenat scene.
ordernumberNoOptional ordering value among effects in the same semantic layer.

Examples

Subtle

Subtle
aircraft({ count: 1, altitude: [0.2, 0.32] })

Intense

Intense
aircraft({ count: 4, direction: "rtl", colors: ["#334155", "#e2e8f0"] })

Combined

Combined
definePreset({ id: "flyover", name: "Flyover", effects: [
  aircraft({ count: 2 }),
  bunting({ colors: ["#166534", "#ffffff"] }),
] })

Reduced motion

The effect mounts no aircraft when effective motion is reduced.

Read the complete reduced-motion contract

Performance notes

Each aircraft is a small inline SVG animated with transforms and opacity through the Web Animations API.

Zeenat performance architecture