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

Animated Diagrams #53

Open
cadbox1 opened this issue Jun 25, 2019 · 7 comments
Open

Animated Diagrams #53

cadbox1 opened this issue Jun 25, 2019 · 7 comments

Comments

@cadbox1
Copy link

cadbox1 commented Jun 25, 2019

Is anyone interested in animated diagrams?

I was reading this hackernews thread to find a tool that can create beautiful, animated diagrams like the sequence diagram at Git LFS but didn't really find a tool in the comments that could handle the animation part.

I love Mermaid especially the live editor, making it easy to share diagrams with just a link but I think some larger diagrams can be a bit overwhelming and animations might be able to help with this.

I've created a proof of concept to explore the idea here.

And here's a large sequence diagram.

Looking forward to some feedback, or finding a similar tool to achieve this.

@nestoru
Copy link

nestoru commented Jun 3, 2020

Awesome. Would be great to offer gif or animated SVG export as a result. Perhaps even an embedded js code that could do the animation just by pasting the <script/> code.

@sidgitind
Copy link

This looks amazing...If we can simply embed such drawings in the web, that would be great if export in gif/SVG is resource intensive

@maiermic
Copy link

@cadbox1 Have you found a similar tool? I see potential using it with Reveal.js or reveal-md https://github.com/amra/reveal-md-scripts/tree/master/mermaidjs

@maiermic
Copy link

maiermic commented Aug 8, 2021

@cadbox1 I am unsure how to interpret the 👀 reaction (to my previous comment). Would you please explain it to me? 😅

@cadbox1
Copy link
Author

cadbox1 commented Aug 9, 2021

hey @maiermic haha good question. I haven't found a similar tool but reveal-md looks really cool so I guess that's what I was meaning by the eyes.

@maiermic
Copy link

maiermic commented Aug 11, 2021

Reveal.js does support animations (e.g. using fragments). Therefore, you need to add attributes (e.g. the class fragment) to the respective HTMLElements. Is this possible?

PS: I just realized that the organization/repository moved to https://github.com/mermaid-js/mermaid-live-editor. I'm not sure if this issue is still watched by maintainers.

Edit: According to this comment

As to animation - this is not supported in Mermaid, and there are no plans to introduce this feature in the near future.

@maiermic
Copy link

I've implemented a first version of a library that demonstrates how to animate (mermaid) diagrams in (reveal-md) presentations using fragments. The approach adds classes and data attributes to the rendered graph (SVG) elements. It may also be used in reveal.js.

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

4 participants