Jump to content
Search Community

tweenMax + flubberjs or other SVG Morph library

Haisan test
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

I have this example of popmotion using flubber.

But I could not make the flubber work with tweenMax.

I do not understand how to merge the 2 libraries. I do not know if it is possible either. But I wanted to do with tweenMax, because my goal is to focus on the greensock tools.

Or if they know of another option I can use while I can not acquire SVG Morph.

I know we have the SVG Morph plugins, however at the moment I can not pay, because in my country this value of 99 dollars is 4x bigger.

 

Sorry for my google english. Thanks

See the Pen RYeMEm by Haisan (@Haisan) on CodePen

Link to comment
Share on other sites

2 hours ago, Haisan said:

I know we have the SVG Morph plugins, however at the moment I can not pay, because in my country this value of 99 dollars is 4x bigger.

 

What country?

 

Interesting library. It looks like it works differently than MorphSVG, drawing a bunch of tiny line segments instead of Beziers. 

 

You can animate some property on an object from 0 to 1 and fill in the rest.

 

See the Pen mGzjLg by osublake (@osublake) on CodePen

 

 

 

 

  • Like 4
Link to comment
Share on other sites

@OSUblake Thank you very much. 

 

I live in Brazil. Sorry for the basic questions. I worked 4 years developing simple websites and I ended up getting very comfortable where I was. Now I see that I have deprived myself of much knowledge. It's been a month since I quit my job and now I want to learn how to do more sophisticated things and open my own business, because here in the region all companies only make basic websites.

 

I also really enjoyed this library. But I found it a bit heavy.

 

There's this too, if I did not get something free from tweenMax:

See the Pen YGayLg by thednp (@thednp) on CodePen

 

I always see you helping everyone here. Again, thank you very much for your work.

  • Like 1
Link to comment
Share on other sites

"t" can be named whatever you want. It represent the progress of the animation, so it can be thought of going from 0% to 100%. 

 

See the Pen LJgJjK by osublake (@osublake) on CodePen

 

 

From Flubber's docs.

 

var interpolator = flubber.interpolate(triangle, octagon);

interpolator(0); // returns an SVG triangle path string
interpolator(0.5); // returns something halfway between the triangle and the octagon
interpolator(1); // returns an SVG octagon path string

 

So you pass that progress value into flubber, and will figure out where the points on the shape should be. 

 

 

 

  • Like 4
  • Thanks 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...