svelte-typewriter
Advanced tools
Comparing version 2.1.0 to 2.1.3
@@ -7,2 +7,14 @@ ### Changelog | ||
#### [v2.1.1](https://github.com/henriquehbr/svelte-typewriter/compare/v2.1.0...v2.1.1) | ||
> 23 January 2020 | ||
- docs(README): add `on:done` section, closes #8 [`#8`](https://github.com/henriquehbr/svelte-typewriter/issues/8) | ||
#### [v2.1.0](https://github.com/henriquehbr/svelte-typewriter/compare/v2.0.3...v2.1.0) | ||
> 23 January 2020 | ||
- feat: implement animation callback event #8 [`63ef3c1`](https://github.com/henriquehbr/svelte-typewriter/commit/63ef3c164b636f36589caa51a29508f30b1cbde2) | ||
#### [v2.0.3](https://github.com/henriquehbr/svelte-typewriter/compare/v2.0.2...v2.0.3) | ||
@@ -9,0 +21,0 @@ |
@@ -12,3 +12,3 @@ { | ||
}, | ||
"version": "2.1.0", | ||
"version": "2.1.3", | ||
"main": "Typewriter.svelte", | ||
@@ -15,0 +15,0 @@ "author": "Henrique Borges <henriqueborgeshbr@gmail.com>", |
@@ -136,1 +136,27 @@ # svelte-typewriter | ||
default: `true` | ||
### `on:done` | ||
Executes a specified function after the animation execution has finished | ||
[DEMO](https://svelte.dev/repl/145cbf66c396497aa5338846077d53e0) | ||
#### Example: | ||
```svelte | ||
<Typewriter on:done={() => alert('Done!')}> | ||
<h1>A "Done!" will be displayed after...</h1> | ||
<h2>Both of these texts animations are finished</h2> | ||
</Typewriter> | ||
<!-- You can omit both parenthesis and arrow function when you don't need to pass arguments --> | ||
const alertOnDone = () => console.log('Typewriter Effect finished!') | ||
<Typewriter on:done={alertOnDone}> | ||
<p>Lorem ipsum dolor...</p> | ||
<small>...sit amet consectetur</small> | ||
</Typewriter> | ||
``` | ||
default: `undefined` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15902
162