Interactive Particles Slideshow

An interactive particles slideshow experiment built with HTML5 Canvas.


View demo Download source

This is an experimental interactive slideshow component with math shapes and texts using Canvas. The slideshow consists of pairs of shape and text, both made out of particles that the user can interact with and that transition into the next pair when navigating. With Canvas we can dynamically draw 2D stuff using JavaScript and this experiment shows some of the possibilities.

Please note: this only works as intended in browsers that support the respective CSS properties. Modern browsers only!

The particles for the shapes have a predefined set of colors that the particles will be painted with. The text will be built up of white particles:


When navigating to the next (or previous) slide, the text and the shape will morph into the new one, creating an interesting effect:

After the transformation, we can see the shape and the text of the next slide:

The particles of the text and the shape are interactive in a way that we can push them around a bit:

Hope you liked it, and that it gave you some inspiration!

View demo Download source


Tagged with:

I'm a freelance developer. I love all things related to animations, motion, and interactive web stuff. I also love arts, physics, and cars. You can find my experiments at:

View all contributions by


Related Articles

CSS Reference

Learn about all important CSS properties from the basics with our extensive and easy-to-read CSS Reference.

It doesn't matter if you are a beginner or intermediate, start learning CSS now.