-
Notifications
You must be signed in to change notification settings - Fork 52
Open
Description
Interestingly, inserting an animated SVG in the hacker-slides editor displays that anim properly, try this for example:
<svg id="loadingSVG" align="center" width="600" height="400" version="1.1"
xmlns="http://www.w3.org/2000/svg">
<rect id="bg" height="400" width="600" y="0" x="0" fill="#f70606"/>
<rect id="spot" height="30" width="30" y="185" x="285" fill="#000">
<animate id="left"
attributeName="x" attributeType="XML"
from="285" to="85"
begin="1000ms; mid2.end+1000ms" dur="1ms"
fill="freeze" />
<animate id="mid"
attributeName="x" attributeType="XML"
from="85" to="285"
begin="left.end+1000ms" dur="1ms"
fill="freeze" />
<animate id="right"
attributeName="x" attributeType="XML"
from="285" to="485"
begin="mid.end+1000ms" dur="1ms"
fill="freeze" />
<animate id="mid2"
attributeName="x" attributeType="XML"
from="485" to="285"
begin="right.end+1000ms" dur="1ms"
fill="freeze" />
</rect>
<rect id="tbar" height="80" width="600" y="0" x="0" fill="#2cf706" visibility="hidden">
<animate id="bar_top"
attributeName="visibility" attributeType="XML"
from="hidden" to="visible"
begin="right.end+50ms; left.end+50ms" dur="20ms"
fill="freeze" />
<animate id="bar_top_stop"
attributeName="visibility" attributeType="XML"
from="visible" to="hidden"
begin="bar_top.end+20ms" dur="1ms"
fill="freeze" />
</rect>
<rect id="bbar" height="80" width="600" y="320" x="0" fill="#2cf706" visibility="hidden">
<animate id="bar_bot"
attributeName="visibility" attributeType="XML"
from="hidden" to="visible"
begin="bar_top_stop.end+60ms; left.end+50ms" dur="20ms"
fill="freeze" />
<animate id="bar_bot_stop"
attributeName="visibility" attributeType="XML"
from="visible" to="hidden"
begin="bar_bot.end+20ms" dur="1ms"
fill="freeze" />
</rect>
</g>
</svg>
However, the animated SVG does not work in presentation mode.
It would be really great to be able to use SVG in this way in HackerSlides,
Here's an issue from the main reveal.js repository that may help...
hakimel/reveal.js#1258
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels