@sarthak03dot/romantic-animations 1.2.6 → 1.2.9

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 CHANGED
@@ -1,4 +1,4 @@
1
- # 💖 Romantic Animations v1.2.6
1
+ # 💖 Romantic Animations v1.2.8
2
2
 
3
3
  <p align="center">
4
4
  <b>A premium, lightweight, zero-dependency JavaScript canvas particle library for gorgeous romantic & celebratory effects.</b>
@@ -28,20 +28,17 @@
28
28
 
29
29
  ---
30
30
 
31
- ## Gallery & Screenshots (Placeholder Previews)
32
-
33
- Here is a sneak peek at the gorgeous, performance-tuned particle renderers in action.
34
- *(You can swap these placeholders with your actual screenshots in `docs/screenshots/`)*
31
+ ## Gallery & Screenshots
35
32
 
36
33
  <div align="center">
37
34
  <h3>✨ Floating Hearts & Live Tweaks</h3>
38
- <img width="1874" height="859" alt="Image" src="https://github.com/user-attachments/assets/00c543ff-1cae-48c8-abc0-c8974d14682e" />
39
-
35
+ <img src="https://raw.githubusercontent.com/sarthak03dot/romantic-animations/main/docs/screenshots/demo1.png" width="100%" />
36
+
40
37
  <h3>🎆 Starry Fireworks Celebration</h3>
41
- <img width="1880" height="853" alt="Image" src="https://github.com/user-attachments/assets/a4646719-aa5f-4da4-bae1-78db71d3bc09" />
42
-
38
+ <img src="https://raw.githubusercontent.com/sarthak03dot/romantic-animations/main/docs/screenshots/demo2.png" width="100%" />
39
+
43
40
  <h3>📚 Integrated Live Customizer & Developer Portal</h3>
44
- <img width="1864" height="855" alt="Image" src="https://github.com/user-attachments/assets/dbdedabb-a04f-4544-8241-ef103a039e0d" />
41
+ <img src="https://raw.githubusercontent.com/sarthak03dot/romantic-animations/main/docs/screenshots/demo3.png" width="100%" />
45
42
  </div>
46
43
 
47
44
  ---
@@ -0,0 +1 @@
1
+ export {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sarthak03dot/romantic-animations",
3
- "version": "1.2.6",
3
+ "version": "1.2.9",
4
4
  "description": "Romantic & celebratory canvas animations — hearts, sparkles, fireworks, confetti, star fields and more. Zero dependencies.",
5
5
  "homepage": "https://github.com/sarthak03dot/romantic-animations#readme",
6
6
  "bugs": {
@@ -32,6 +32,7 @@
32
32
  "module": "dist/romantic-animations.es.js",
33
33
  "exports": {
34
34
  ".": {
35
+ "types": "./dist/index.d.ts",
35
36
  "import": "./dist/romantic-animations.es.js",
36
37
  "require": "./dist/romantic-animations.umd.js"
37
38
  }
@@ -41,6 +42,7 @@
41
42
  "src",
42
43
  "README.md"
43
44
  ],
45
+ "sideEffects": false,
44
46
  "scripts": {
45
47
  "dev": "vite",
46
48
  "build": "vite build",
@@ -52,6 +54,7 @@
52
54
  },
53
55
  "devDependencies": {
54
56
  "gh-pages": "^6.3.0",
55
- "vite": "^7.0.2"
57
+ "vite": "^7.0.2",
58
+ "vite-plugin-dts": "^5.0.1"
56
59
  }
57
60
  }
package/src/index.d.ts ADDED
@@ -0,0 +1,26 @@
1
+ export interface AnimationOptions {
2
+ density?: number;
3
+ minSize?: number;
4
+ maxSize?: number;
5
+ speed?: number;
6
+ colors?: string[];
7
+ zIndex?: number;
8
+ pointerEvents?: boolean;
9
+ }
10
+
11
+ export declare function startFloatingHearts(
12
+ container?: HTMLElement,
13
+ options?: AnimationOptions
14
+ ): number;
15
+
16
+ export declare function startConfetti(
17
+ container?: HTMLElement,
18
+ options?: AnimationOptions
19
+ ): number;
20
+
21
+ export declare function startFireworks(
22
+ container?: HTMLElement,
23
+ options?: AnimationOptions
24
+ ): number;
25
+
26
+ export declare function stopAnimation(id: number): void;