@castlenine/svelte-aoe 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@ A Svelte component to animate elements, without dependencies
|
|
|
11
11
|
|
|
12
12
|
When the element is detected as being in the viewport, `@castlenine/svelte-aoe` applies a class that triggers a CSS animation.
|
|
13
13
|
|
|
14
|
-
## 🚀 [Demo](https://
|
|
14
|
+
## 🚀 [Demo](https://castlenine-svelte-aoe.vercel.app/)
|
|
15
15
|
|
|
16
16
|
## Installation
|
|
17
17
|
|
|
@@ -117,7 +117,7 @@ You can add your own animations by following the same pattern in your CSS.
|
|
|
117
117
|
| `rootMargin` | `string` in pixel (`px`) or percentage (`%`) | `0px` |
|
|
118
118
|
| `threshold` | `number`, `number[]` between `0` and `1.0` | `0.3` |
|
|
119
119
|
|
|
120
|
-
`root` is the element that is used as the viewport for checking visibility of the target. Must be the ancestor of the target. Defaults to the browser viewport if not specified or if `null`.
|
|
120
|
+
`root` is the element that is used as the viewport for checking visibility of the target. Must be the ancestor of the target. Defaults to the browser viewport if not specified or if `null`.
|
|
121
121
|
|
|
122
122
|
`rootMargin` is the margin around the root. Can have values similar to the CSS margin property, e.g. `"10px 20px 30px 40px"` (top, right, bottom, left). The values can be percentages. Defaults to `'0px'` (no margin).
|
|
123
123
|
|
|
@@ -125,7 +125,7 @@ You can add your own animations by following the same pattern in your CSS.
|
|
|
125
125
|
|
|
126
126
|
---
|
|
127
127
|
|
|
128
|
-
Inspired by [Animate on Scroll](https://michalsnik.github.io/aos/) and [lliamscholtz/svelte-aoe](https://github.com/lliamscholtz/svelte-aoe)
|
|
128
|
+
Inspired by [Animate on Scroll](https://michalsnik.github.io/aos/) and forked from [lliamscholtz/svelte-aoe](https://github.com/lliamscholtz/svelte-aoe)
|
|
129
129
|
|
|
130
130
|
[npm]: https://www.npmjs.com/package/@castlenine/svelte-aoe
|
|
131
131
|
[npm.badge]: https://img.shields.io/npm/v/@castlenine/svelte-aoe
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@castlenine/svelte-aoe",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "A Svelte component to animate elements, without dependencies.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -8,8 +8,10 @@
|
|
|
8
8
|
"animate",
|
|
9
9
|
"animation-on-scroll",
|
|
10
10
|
"animation",
|
|
11
|
+
"component",
|
|
11
12
|
"css",
|
|
12
|
-
"svelte"
|
|
13
|
+
"svelte",
|
|
14
|
+
"sveltekit"
|
|
13
15
|
],
|
|
14
16
|
"author": {
|
|
15
17
|
"name": "Alexandre Castlenine",
|