weiyan
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by weiyan
-
-
Sure. The plugin can be controlled with a timeline or regular tween. Vivus is meant to do 1 thing, draw lines. GSAP can animate more than that, like say the stroke color or position. Simple example of one-by-one.
See the Pen cb71ed6bccaa98ce404b802d2d8c4595 by osublake (@osublake) on CodePen
.
In fact, i want a effect like this: http://www.devmeng.com/vivus/demo/
codepen:
See the Pen BpqXXV by mactive (@mactive) on CodePen
two point about advance effect
1. path has different color
2. path can be filled. no mater when all paths drawn or i can control each path's fill
-
render path/circle/rect in svg structure oneByOne or sync or delayed
here is the example
http://maxwellito.github.io/drafts/vivus-issue-85/
i am compare vivus and greensock , it same vivus (https://github.com/maxwellito/vivus)
has more control on animation timeline
I am a greensock newbee, i have no idea does the gsap timeline api can control path in svg
Can drawsvg plugin draw paths oneByOne
in GSAP
Posted
@OSUblake thanks a lot, I tried again. and i get the point
See the Pen zNMOBr by mactive (@mactive) on CodePen
your demo has same color, because of css> svg * > stroke: currentColor
and i saw that in vars:Object ,autoCss we can set css-property so i can control opacity to show or hide
and i can give paths different class or id, and control them one by one if
I tried like this
See the Pen zNMOBr by mactive (@mactive) on CodePen