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

Native SVG environment, not using HTML for positioning #76

Open
Kay2dan opened this issue Nov 23, 2016 · 3 comments
Open

Native SVG environment, not using HTML for positioning #76

Kay2dan opened this issue Nov 23, 2016 · 3 comments
Labels
feature feature request to implement
Projects

Comments

@Kay2dan
Copy link

Kay2dan commented Nov 23, 2016

Hi Oleg,

Loving the Mo.js examples, look so gorgeous. Im seriously thinking of adopting it for my SVG application. However, after reading Sarah's mo.js tutorial, Im a bit curious about when you want to move to purely SVG enviroment for positioning & animations?

My app is purely SVG, with just the SVG parent container within a div.

My needs will be mainly animating the g containers, which house different shapes & text content etc. In some cases, it will be quite performance heavy. However, judging by the various issues here, you seem to have been most conscious of the performance.

So my question is, do you intend to have the position / other bits without a container 'div' for SVG elements?

@legomushroom
Copy link
Member

Hi @Kay2dan ! Thanks for the issue!

mojs will tweak the parent option in the future, so you will be able to transparently add the modules inside html or svg elements (right now you can add them only inside html). Re: timing -- it won't lend too soon I guess, I think in a month or so.

Just wondering -- you request the same modules work inside svg or just having the tools to animate existing svg elements ?

Cheers ~

@Kay2dan
Copy link
Author

Kay2dan commented Nov 24, 2016

A month is perfectly reasonable.

Ideally, I would like the same existing functionality to be able to work in SVG. I haven't reviewed the tools yet so right now dont see myself using them, however, that may change after the review :D
A lot of the animations that I have in mind are pretty basic e.g.

  • animating credit cost of a user action onto the screen & disappearing it after a setTimeout.
  • animating a stream of svg elements (easily over a few hundred) on to the screen, one after another.
    However, your pretty animations are giving me food for thought :)

@legomushroom
Copy link
Member

@Kay2dan,

Thanks for clarifications! This makes perfect sense.

@legomushroom legomushroom added the feature feature request to implement label Nov 24, 2016
@xavierfoucrier xavierfoucrier added this to Features in mojs@next Feb 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature feature request to implement
Projects
No open projects
mojs@next
Features
Development

No branches or pull requests

2 participants