svelte-typewriter
Advanced tools
Comparing version 1.1.1 to 1.2.0
{ | ||
"name": "svelte-typewriter", | ||
"description": "A simple and reusable typewriter effect for your Svelte applications", | ||
"version": "1.1.1", | ||
"keywords": ["svelte", "typewriter-effect"], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/henriquehbr/svelte-typewriter" | ||
}, | ||
"version": "1.2.0", | ||
"main": "Typewriter.svelte", | ||
"author": "Henrique Borges <henriqueborgeshbr@gmail.com>", | ||
"license": "MIT", | ||
"husky": { | ||
"hooks": { | ||
"pre-push": "auto-changelog -p && git add CHANGELOG.md && git commit -m 'create CHANGELOG.md'" | ||
} | ||
}, | ||
"peerDependencies": { | ||
"svelte": "^3.14.0" | ||
"svelte": "^3.14.1" | ||
}, | ||
"devDependencies": { | ||
"auto-changelog": "^1.16.2", | ||
"husky": "^4.0.0-beta.5" | ||
} | ||
} |
@@ -32,4 +32,34 @@ # svelte-typewriter | ||
## TODO | ||
## Options | ||
- Pass a option through props to enable/disable typewriting cascading effect | ||
You can control the behavior of the typewriter effect by passing specific props to the `Typewriter` component | ||
### `interval` | ||
The interval in milliseconds between each letter | ||
default: `30` | ||
#### Example: | ||
```html | ||
<Typewriter interval={50}> | ||
<p>Each letter of this paragraph will be displayed with a interval of 50 milliseconds</p> | ||
</Typewriter> | ||
``` | ||
### `cascade` | ||
Enables the cascading mode, where each element is animated sequentially instead of simultaneously | ||
default: `false` | ||
#### Example: | ||
```html | ||
<Typewriter cascade> | ||
<h1>First</h1> | ||
<h2>Second</h2> | ||
<h3>Third</h3> | ||
</Typewriter> | ||
``` |
Sorry, the diff of this file is not supported yet
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
5938
5
65
0
2