Photo Trail
Images pop up along the pointer path one after another, then shrink and fade away.
pixikit.com/docs/effects/photo-trail
Customize
Scope
Size190px
Aspect ratio1.10
Radius15px
Threshold80px
Lifetime0.4s
Appear scale1.00
Zoom1.00
Flash0.00
Exit scale0.20
Drift0.00
Rotation0°
Size variance0.00
Align to motion
Stack0
Tilt0°
Props
18| Name | Type | Default | Description |
|---|---|---|---|
scope | "container" | "page" | "container" | Where the trail appears: the nearest positioned parent, or the whole page. |
items | string[] | [] | The image addresses shown in turn; with none, soft gradient cards are used. |
size | number | string | 190 | Width of each image in pixels, or any CSS length. |
aspectRatio | number | 1.1 | Width divided by height for each image. |
radius | number | string | 15 | Corner radius of the images, in pixels or any CSS length. |
threshold | number | 80 | How far the pointer travels, in pixels, before the next image appears. |
lifetime | number | 0.4 | Seconds an image stays before it fades out. |
appearScale | number | 1 | Size an image starts at as it appears: 0 grows it from nothing, 1 shows it at full size right away. |
zoom | number | 1 | How far each picture starts zoomed in before settling inside its frame; 1 turns it off. |
flash | number | 0 | Brightness flash as an image appears, 0 to 1. |
exitScale | number | 0.2 | Size an image shrinks or grows to while it fades out; 1 keeps its size. |
drift | number | 0 | How far images keep flying in the pointer's direction as they fade, 0 to 1. |
rotation | number | 0 | Random tilt of each image, in degrees. |
sizeVariance | number | 0 | Random size variation between images, 0 to 1. |
alignToMotion | boolean | false | Turns each image to face the direction the pointer is moving. |
stack | number | 0 | Keeps this many of the newest images on screen in a pile instead of fading each on its own; 0 turns it off. |
tilt | number | 0 | Tilts images in 3D toward the edge where they appear, in degrees. |
className | string | None |