I want to animate my logo like drawing it for reveal it, it is looking like that:
is it possible to draw only with a fill? every tutorials i looked showed only the possibility to draw with strokes. but i actually want the same drawing effect with my fill:
.st1{fill:black;}
This is my full svg code:
With a nice and simple logo like that, you can easily fake it by using strokes:
stroke-width
wide enough to cover the logo..st1
) as aclipPath
on those lines to hide the parts that are outside the logo.Updated fiddle: https://jsfiddle.net/b4dn44kL/1/
this is the gradient solution i found:
https://jsfiddle.net/9mhxpbph/
The short answer is no. There is no easy way to have the "drawn line" effect for an arbitrary filled shape. You could use a mask of a linear fill to "fill" it from top to bottom, or bottom to top. But that obviously would follow the shape of the line around the loop etc.
You are pretty much stuck with using the traditional animation technique: draw a sequence of frames and show them one after the other.