An interactive star field background effect with html canvas. Uses no external libraries.
Grab the code and read the guide to get started.
Inspired by Barney Code's Star Field Hyperdrive Light Speed Effect, which was built on p5.js.
This is a more configurable, production ready implementation that uses canvas directly.
Pretty much, it's licensed under the MIT License so go crazy with it.
Hover or drag won't work.
Tap the origin instead to
accelerate the stars.