Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Animating/Morphing custom path #61

Closed
stubbies opened this issue Oct 4, 2016 · 3 comments
Closed

Animating/Morphing custom path #61

stubbies opened this issue Oct 4, 2016 · 3 comments

Comments

@stubbies
Copy link

stubbies commented Oct 4, 2016

Will Moj in the future have the ability to animate svg paths? Similar to <animate or Snap.svg.

@legomushroom
Copy link
Member

@Errvald hi, thanks for the issue! What do you mean under animate a path? Animate an object along a path, or animate path's strokeDash properties?

@stubbies
Copy link
Author

stubbies commented Oct 4, 2016

I have this svg icon:
Icon

I'm trying to animate the opening of the envelope, so far I've tried with css to rotate or scale, it works but at certain angles the stroke looks flat and can cause flickering.

Morphing doesn't affect the thickness of the stroke.

A more simple example would be the transition from a star symbol to a box.

@legomushroom
Copy link
Member

@Errvald makes sense, thanks, so you want to add morph. Might be a good feature to add next, let me ponder about it. For this simple case, you have few variants with mojs:

Hope it helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants