Skip to content Skip to sidebar Skip to footer

Raphaeljs Html5 Library: Glow Animate Along The Circle

I have a circle which I move it around, how can I make for the glow effect to follow that circle. circle = paper.circle(x, y, 5); glowSet = circle.glow({ 'fill': true, 'col

Solution 1:

The glow set and the circle remain independent. You should be able to achieve the effect you desire by simply combining them into a single set, like this:

circle = paper.circle(x, y, 5);
glowSet = paper.set(circle, circle.glow({
    'fill': true,
    'color': '#bbb'
}));

Then apply your animations to glowSet.

Post a Comment for "Raphaeljs Html5 Library: Glow Animate Along The Circle"