# Trajectory emitter

Repeat arbitrary content along native keyframe paths.

Source: https://legend.so/slides/effects/trajectory-emitter/

Legend Slides: Preview.

[All effects](https://legend.so/slides/effects/)

[Trajectory emitter preview](https://legend.so/slides/effects/previews/trajectory-emitter/98ff3d801ccaf95742924bdae7eaf7bda14d727b12d7f31b381e8eb688f13483.mp4)

Recorded in Legend Slides for macOS (release build).

[Install in Slides](legend-slides://effects/install?pack=particles&version=1.0.3) [Open example](legend-slides://effects/example?effect=trajectory-emitter) [Download example](https://legend.so/slides/effects/examples/trajectory-emitter/49fb59f638d23e52f399459e9ed283f6c85955d410c5f873d979a95196889957.mdx)

Requires a Legend Slides build with effect installation support. Installs the particles pack (1.0.3, 13 KB source) and its dependencies. macOS host capabilities: reanimated, webgpu. Installed decks work offline.

## Use it in a deck

trajectory-emitter.mdx

```mdx
---
title: Trajectory emitter
---

import { View, Text } from "react-native";
import { TrajectoryEmitter } from "slides:particles/TrajectoryEmitter";

export const paths = [0, 1, 2].map(index => [
  { time: 0, x: 180, y: 500, opacity: 0, scale: 0.6 },
  { time: 380, x: 460, y: 400 - index * 45, opacity: 1, scale: 1 },
  { time: 1050, x: 920, y: 220 + index * 70, opacity: 1, scale: 1 },
  { time: 1950, x: 1490, y: 150 + index * 95, opacity: 0, scale: 0.7 },
]);

# Trajectory emitter

<View style={{ width: 1696, height: 650 }}>
<Text style={{ color: "#e0f2fe", fontSize: 46, marginTop: 50, marginLeft: 80 }}>Events flow through the pipeline</Text>
<TrajectoryEmitter trajectories={paths} interval={650} style={{ position: "absolute", width: 190, height: 60 }} renderParticle={index => <View style={{ paddingHorizontal: 20, paddingVertical: 12, borderRadius: 16, backgroundColor: "#0e7490", borderColor: "#67e8f9", borderWidth: 2 }}><Text style={{ color: "white", fontSize: 30 }}>{["request", "parse", "render"][index % 3]}</Text></View>} />
</View>
```

## Configure

**trajectories**

Supply ordered native keyframes.

**interval / start**

Set spacing and start delay.

**renderParticle**

Supply the emitted content.

Only imported effects enter the compiled deck. [Installation and versioning →](https://legend.so/slides/effects/installation/)

[View Markdown](https://legend.so/slides/effects/trajectory-emitter.md)[Report a documentation correction](https://github.com/LegendApp/legend-docs/issues/new?title=Docs%3A+Trajectory+emitter&body=Page%3A+https%3A%2F%2Flegend.so%2Fslides%2Feffects%2Ftrajectory-emitter%0A%0AWhat+is+incorrect+or+missing%3F%0A%0AExpected+behavior+or+supporting+source%3A%0A)
