Skip to content
This repository was archived by the owner on Mar 14, 2023. It is now read-only.

Commit 60baff9

Browse files
author
Bernhard Grünewaldt
committed
0.0.11 fix tspan leading whitespace and fix calculation of animation frames
1 parent a3cab71 commit 60baff9

File tree

3 files changed

+939
-64
lines changed

3 files changed

+939
-64
lines changed

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
> create self-contained »slideshow-like« SVG infographics with ease
77
88

9-
[![](https://codeclou.github.io//hirngespinst/img/demo.gif)](https://unpkg.com/hirngespinst@0.0.10/demo/demo-showWithDelay--withAutoHide.svg)
9+
[![](https://codeclou.github.io//hirngespinst/img/demo.gif)](https://unpkg.com/hirngespinst@0.0.11/demo/demo-showWithDelay--withAutoHide.svg)
1010

1111

1212
-----
@@ -49,7 +49,7 @@ You can easily create such above graphic with [Sketch](https://www.sketchapp.com
4949

5050
```xml
5151
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
52-
<?xml-stylesheet href="https://unpkg.com/hirngespinst@0.0.10/dist/showWithDelay.min.css" type="text/css"?>
52+
<?xml-stylesheet href="https://unpkg.com/hirngespinst@0.0.11/dist/showWithDelay.min.css" type="text/css"?>
5353
<svg width="751px" height="529px" viewBox="0 0 751 529" version="1.1"
5454
xmlns="http://www.w3.org/2000/svg"
5555
xmlns:xlink="http://www.w3.org/1999/xlink">
@@ -59,8 +59,8 @@ You can easily create such above graphic with [Sketch](https://www.sketchapp.com
5959
...
6060
</g>
6161
<script type="text/javascript"
62-
xlink:href="https://unpkg.com/hirngespinst@0.0.10/dist/showWithDelay.min.js"
63-
href="https://unpkg.com/hirngespinst@0.0.10/dist/showWithDelay.min.js"
62+
xlink:href="https://unpkg.com/hirngespinst@0.0.11/dist/showWithDelay.min.js"
63+
href="https://unpkg.com/hirngespinst@0.0.11/dist/showWithDelay.min.js"
6464
/>
6565
<script type="text/javascript">
6666
Hirngespinst.showWithDelay();
@@ -81,7 +81,7 @@ You can easily create such above graphic with [Sketch](https://www.sketchapp.com
8181

8282
**Demo**
8383

84-
See a working [demo here](https://unpkg.com/hirngespinst@0.0.10/demo/demo-showWithDelay.svg)
84+
See a working [demo here](https://unpkg.com/hirngespinst@0.0.11/demo/demo-showWithDelay.svg)
8585

8686
&nbsp;
8787

@@ -91,8 +91,7 @@ You can customize the options like so
9191

9292
```js
9393
Hirngespinst.showWithDelay({
94-
frameAnimationDelayInSeconds: 1, // Delay until next frame is shown in seconds
95-
frameAnimationDurationInSeconds: 4, // Duration for fade in of frame in seconds
94+
frameAnimationDurationInSeconds: 4, // Duration how long a frame is shown
9695
framePauseBetweenFramesInSeconds: 2, // Pause between frames in seconds
9796
frameAutoHide: true // will hide the frame after it was shown for a certain time
9897
});

demo/demo-showWithDelay--withAutoHide.svg

Lines changed: 472 additions & 7 deletions
Loading

0 commit comments

Comments
 (0)