RandomSparkles
Daniel Enesi

Daniel Enesi @danielx17

Location:
Grambling, Louisiana
Joined:
Jul 24, 2023

RandomSparkles

Publish Date: Aug 17 '23
6 6

This pen uses JavaScript to draw random spots by setting the "d" attribute of the SVG path element to a set of random points, switching the M and L options to create space between the lines.

It also engages the SVG circle element, animating created circles to move to random positions, grow and shrink repeatedly, and eventually disappear after ten seconds.

Comments 6 total

  • Stefan Neidig
    Stefan NeidigAug 17, 2023

    Would be great if you'd explain your code, so that we can better learn from it. I like the result but I wouldn't be able to use it in one of my projects without understanding what's going on. Or maybe I am too lazy to get into your code without any jumpstart :)

  • Jon Randy 🎖️
    Jon Randy 🎖️Aug 18, 2023

    Doesn't do anything - just sits there like this:

    Random sparkles

    • Daniel Enesi
      Daniel EnesiAug 18, 2023

      Sorry, maybe the browser you use does not support JavaScript

      • Jon Randy 🎖️
        Jon Randy 🎖️Aug 19, 2023

        Believe me, it does. A quick check seems to reveal at least one problem with CSS. I'm using Firefox. Maybe you should do cross-browser testing

  • Kudzai Murimi
    Kudzai MurimiAug 18, 2023

    Well Explained hey !

Add comment