---
title: "Flowing Rivers"
canonical_url: "https://framerhub.io/components/flowing-rivers"
last_updated: "2026-11-09T16:24:42.604Z"
---

## Flowing Rivers

A 3D animation of flowing lines that trace the surface of an invisible sphere, like rivers seen from space. Built with Three.js.

## Features

**Flowing lines.** Lines travel across the sphere's surface in river-like patterns.

**Raycasting.** Each line is raycast onto the sphere so it stays on the curved surface.

**Starfield.** Optional twinkling stars in the background.

**Mouse orbit.** Moving the mouse orbits the camera around the sphere.

**6 colors.** Pick up to 6 colors. Each line uses one at random.

## Use Cases

**Hero sections.** An artistic hero for a landing page.

**Portfolios.** An organic, moving background.

**Brand pages.** Rivers in your brand colors.

**Abstract backgrounds.** Movement behind any section.

![Flowing Rivers Preview](/framerhub/img/components/control/flowing-rivers.jpg)

## How to Use

**River Colors**

- Color 1-6: Customize up to 6 colors for the flowing rivers

**Background**

- Background Color: Set a background color for the entire canvas
- Star Count: Number of background stars (0-2000)
- Star Color: Color of the background stars
- Star Size: Size of the background stars (0.01-0.2)

**Animation**

- Speed: Control how fast the rivers flow (0.1-5)
- Line Width: Thickness of the river lines (0.01-0.2)

**Interaction**

- Enable Mouse Effect: Toggle camera orbit based on mouse movement

### Quick Tips

**Contrast.** Bright river colors on a dark background stand out most. Analogous colors look most natural together.

**Speed.** 0.5 to 1 feels slow and calm. 2 to 4 feels energetic.

**Stars.** 500 to 1000 stars add subtle depth. 1500 to 2000 make a dense starfield.

**Color order.** Neighboring colors that blend (blues to purples to pinks) give smooth-looking flows.

## Credits

Built upon [Animated Mesh Lines](https://github.com/Jeremboo/animated-mesh-lines) by [Jeremboo](https://jeremieboulay.fr/portfolio/) for [Codrops](https://tympanus.net/codrops/).

---

**Need help?** [Contact us](/contact).

## Sitemap

See the full [sitemap](/sitemap.md) for all pages.
