Circles with random positions, colors, and times to live are added to the SVG root. A weak map is used to maintain the time to live of each circle. When a circle's time to live has expired, it is removed.