Socket
Socket
Sign inDemoInstall

svelte-typewriter

Package Overview
Dependencies
Maintainers
1
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svelte-typewriter - npm Package Compare versions

Comparing version 2.1.0 to 2.1.3

12

CHANGELOG.md

@@ -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 @@

2

package.json

@@ -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`
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc