Interactive Particles Slideshow

An interactive particles slideshow experiment built with HTML5 Canvas.

InteractiveParticlesSlideshow

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:

InteractiveParticlesSlideshow01

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

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

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

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

View demo Download source

Previous:
Next:

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: http://codepen.io/Francext

View all contributions by

Website: http://francescotrillini.it

Related Articles

Feedback 33

  1. 1

    Very nice man! How do you create new shape like “Square”, “Oval”, and So on.. I’d really like to be able to create shape like coputer monitor, car, and building…

    Thanks!

  2. 3

    Excellent stuff. We know how hard it is to create something like this and you give it away for free!

  3. 4

    hey this is really amazing bro :-) B-) awesome :-) good work :-) i was wondering if could change the shape according to my desire!!! is this possible? :-O

  4. 8

    This demo actually DOES work on IE9/IE10, please make sure you are accurately portraying the browser we all love to hate! Cool demo, btw!

    • 9

      Hey, there’s a “?” sign on IE and not cross. I think it implies it would work on some version and may not on others.

  5. 10

    Fantastic work. I thought you’d have used a library like paper.js or two.js
    Would love to know your opinion about them.

  6. 11

    Hi, that is looking good and i guess it was a alot of work. Thank u!

    but i noticed that my cpu usage went to 100% when i was browsing the demo page.
    Is it because of the old pc i have? or the bad graphic card?

Follow this discussion

Leave a Comment

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>