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

generate animated GIF #55

Open
hofstef opened this issue Jul 4, 2019 · 2 comments
Open

generate animated GIF #55

hofstef opened this issue Jul 4, 2019 · 2 comments
Labels
feature concrete new feature or request

Comments

@hofstef
Copy link
Member

hofstef commented Jul 4, 2019

Is your feature request related to a problem? Please describe.
When I share a Domain Story as SVG or PNG with people who do not use the modeler, they have trouble to read (larger) stories in the right sequence.

Describe the solution you'd like
Additionally to the possibility of downloading a static picture, I would like to download an animated GIF. The animation should be slow enough so I can follow the story.

Describe alternatives you've considered
We could provide a "replay mode only" version of the modeler that runs in the web (e.g. www.wps.de/modeler/play) and that provides a super simple way for uploading and animating a .dst file. There might be other solutions that I have not considered yet.

@hofstef hofstef added the feature concrete new feature or request label Jul 4, 2019
@hofstef hofstef added this to the post 1.0.0 milestone Jul 4, 2019
@hofstef hofstef removed this from the post 1.0.0 milestone Jul 31, 2019
@hschwentner
Copy link
Member

I think we should animate SVGs instead of GIFs (and thus change the title to “generate animated SVG”). I experimented a bit with SVG's <animate> tag and think it does what we want. We could add something like the following to the sentences of a domain story:

<animate
    attributetype="XML"
    attributename="visibility" 
    from="hidden" 
    to="visible" 
    dur="1s">
</animate>

That would lead to an image where sentence after sentence will fade in.

Interesting sources:

@hschwentner
Copy link
Member

Update: maybe <set> is enough. We could write something like the following on every domain story sentence and increment the seconds.

<set end="1s" attributeName="visibility" to="hidden"/>

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

No branches or pull requests

2 participants