ReferenceLayersLines and shapes
Tunnel
Flying down an endless tunnel.
- Kind
- Layer · Lines and shapes
- Script name
tunnel- Cost to draw
- Moderate

Tunnel
| Setting | Kind | Starts at | Range and notes |
|---|---|---|---|
Wallsstyle | choice | Grid | Rings, Grid, Picture |
Picturesource | image file | none | For the picture walls |
Colourcolour | colour and alpha | #a98bffff | – |
Second colourcolour2 | colour and alpha | #7ce695ff | – |
Speedspeed | number | 0.6× | -3 to 3×Below zero it flies backwards |
Twisttwist | number | 0.3× | -2 to 2× |
Ringsdensity | number | 10 | 2 to 40 |
Fogfog | number | 50% | 0% to 100% |
Wobblewobble | number | 30% | 0% to 100%The far end swings about |
Far endcentre | point | [0.5, 0.5] | 0 to 1 |
From a script
Every setting above can be changed by the scene's logic, by its key. Say the layer is called Tunnel:
scene.set("Tunnel", "speed", 3);scene.animate("Tunnel", "opacity", 0.5, 2);import { scene } from "motion";scene.set("Tunnel", "speed", 3);scene.animate("Tunnel", "opacity", 0.5, 2);◆On Scene Start
ƒSet Layer SettingTarget is Layer
TargetTunnel
Parameter Namespeed
Parameter Value3
What every layer has
Besides its own settings, every layer has its opacity, blend, placement, quick effects and an effects stack. They're listed once, on the layers page.
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.