@jackmaturan/tailwind-animate-css 2.0.0 → 2.0.2

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
@@ -11,9 +11,15 @@ A collection of Tailwind CSS v4.0 utilities for creating beautiful animations. I
11
11
 
12
12
  This package is a replacement for [`tailwindcss-animate`][Original_Plugin_GitHub]. It embraces the new [CSS-first architecture][TailwindCSS_Custom_Utilities], providing a pure CSS solution for adding animation capabilities to your Tailwind CSS project without relying on the legacy JavaScript plugin system or having to define all keywords from scratch.
13
13
 
14
- > [!NOTE]
14
+ > ℹ️ **NOTE**
15
15
  > **npm:** The unscoped name `tailwind-animate-css` is blocked (too similar to [`tailwind-animatecss`](https://www.npmjs.com/package/tailwind-animatecss)). Install **`@jackmaturan/tailwind-animate-css`** instead. The upstream package [`tw-animate-css`](https://www.npmjs.com/package/tw-animate-css) remains the original npm name from Wombosvideo.
16
16
 
17
+ ## Support
18
+
19
+ This scoped package is maintained by [@jackmaturan](https://github.com/jackmaturan). If it helps your project, consider [sponsoring on GitHub](https://github.com/sponsors/jackmaturan).
20
+
21
+ The animations are based on the excellent work of [Luca Bosin (@Wombosvideo)](https://github.com/Wombosvideo) and [`tw-animate-css`](https://github.com/Wombosvideo/tw-animate-css). You can [support the original author](https://github.com/sponsors/Wombosvideo) as well.
22
+
17
23
  ## Table of Contents
18
24
 
19
25
  - [Demo](#demo)
@@ -27,6 +33,7 @@ This package is a replacement for [`tailwindcss-animate`][Original_Plugin_GitHub
27
33
  - [Transform Classes](#transform-classes)
28
34
  - [Ready-to-Use Animations](#ready-to-use-animations)
29
35
  - [Examples](#examples)
36
+ - [Support](#support)
30
37
  - [Notes on Compatibility](#notes-on-compatibility)
31
38
 
32
39
  ## Demo
@@ -79,7 +86,7 @@ In Cursor, open the **Ports** view, ensure port `5173` is forwarded, then open t
79
86
  <!-- And so much more! -->
80
87
  ```
81
88
 
82
- > [!NOTE]
89
+ > ℹ️ **NOTE**
83
90
  > The above guide works for esbuild, Vite and probably other bundlers too. If you are using a different bundler, the syntax may differ. [Let me know][Create_Issue] how it works and I'll update the documentation.
84
91
 
85
92
  ### Manual Download
@@ -205,7 +212,7 @@ By the way, if you don't use some of the above animations, they will not be incl
205
212
 
206
213
  ## Notes on Compatibility
207
214
 
208
- > [!NOTE]
215
+ > ℹ️ **NOTE**
209
216
  > I use only a small portion of the original plugin, so it might not be a 100% compatible drop-in replacement. If you notice any inconsistencies, feel free to contribute to this repository by opening a pull-request.
210
217
 
211
218
  <!-- Links -->
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jackmaturan/tailwind-animate-css",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
4
4
  "description": "TailwindCSS v4.0 compatible replacement for `tailwindcss-animate`.",
5
5
  "keywords": [
6
6
  "accordion",
@@ -31,11 +31,20 @@
31
31
  "homepage": "https://github.com/jackmaturan/tailwind-animate-css#readme",
32
32
  "bugs": "https://github.com/jackmaturan/tailwind-animate-css/issues",
33
33
  "repository": "github:jackmaturan/tailwind-animate-css",
34
- "funding": "https://github.com/sponsors/Wombosvideo",
34
+ "funding": [
35
+ {
36
+ "type": "github",
37
+ "url": "https://github.com/sponsors/jackmaturan"
38
+ },
39
+ {
40
+ "type": "github",
41
+ "url": "https://github.com/sponsors/Wombosvideo"
42
+ }
43
+ ],
35
44
  "license": "MIT",
36
45
  "author": {
37
- "name": "Luca Bosin",
38
- "url": "https://github.com/Wombosvideo"
46
+ "name": "Jack Maturan",
47
+ "url": "https://github.com/jackmaturan"
39
48
  },
40
49
  "type": "module",
41
50
  "exports": {
@@ -57,6 +66,14 @@
57
66
  "scripts",
58
67
  "src"
59
68
  ],
69
+ "scripts": {
70
+ "build": "pnpx @tailwindcss/cli -i ./src/tailwind-animate.css -o ./dist/tailwind-animate.css -m && node ./transform.ts ./dist/tailwind-animate.css ./dist/tailwind-animate-prefix.css",
71
+ "demo": "pnpm --filter tailwind-animate-css-demo dev",
72
+ "demo:preview": "pnpm --filter tailwind-animate-css-demo build && pnpm --filter tailwind-animate-css-demo preview",
73
+ "format": "prettier --write --ignore-unknown .",
74
+ "log:os": "node ./scripts/log-os-info.cjs",
75
+ "prepare": "simple-git-hooks"
76
+ },
60
77
  "simple-git-hooks": {
61
78
  "pre-commit": "pnpx lint-staged",
62
79
  "commit-msg": "pnpx commitlint --edit $1"
@@ -84,14 +101,14 @@
84
101
  "simple-git-hooks": "^2.13.1",
85
102
  "sort-package-json": "^3.4.0"
86
103
  },
104
+ "packageManager": "pnpm@10.17.1",
87
105
  "publishConfig": {
88
106
  "access": "public"
89
107
  },
90
- "scripts": {
91
- "build": "pnpx @tailwindcss/cli -i ./src/tailwind-animate.css -o ./dist/tailwind-animate.css -m && node ./transform.ts ./dist/tailwind-animate.css ./dist/tailwind-animate-prefix.css",
92
- "demo": "pnpm --filter tailwind-animate-css-demo dev",
93
- "demo:preview": "pnpm --filter tailwind-animate-css-demo build && pnpm --filter tailwind-animate-css-demo preview",
94
- "format": "prettier --write --ignore-unknown .",
95
- "log:os": "node ./scripts/log-os-info.cjs"
108
+ "pnpm": {
109
+ "onlyBuiltDependencies": [
110
+ "esbuild",
111
+ "simple-git-hooks"
112
+ ]
96
113
  }
97
- }
114
+ }
@@ -47,23 +47,25 @@ function createLogglyLogger(options = {}) {
47
47
  .map((tag) => tag.trim())
48
48
  .filter(Boolean);
49
49
 
50
- const logger = winston.createLogger({
51
- level: "info",
52
- format: winston.format.combine(winston.format.timestamp(), winston.format.json()),
53
- defaultMeta: { service: "tailwind-animate-css" },
54
- transports: [new winston.transports.Console({ format: winston.format.simple() })],
55
- });
56
-
57
- logger.add(
50
+ const transports = [
58
51
  new Loggly({
59
52
  token: logglyConfig.token,
60
53
  subdomain: logglyConfig.subdomain,
61
54
  tags,
62
55
  json: true,
63
56
  }),
64
- );
57
+ ];
65
58
 
66
- return logger;
59
+ if (process.env.TAILWIND_ANIMATE_CSS_LOG_CONSOLE === "1") {
60
+ transports.push(new winston.transports.Console({ format: winston.format.simple() }));
61
+ }
62
+
63
+ return winston.createLogger({
64
+ level: "info",
65
+ format: winston.format.combine(winston.format.timestamp(), winston.format.json()),
66
+ defaultMeta: { service: "tailwind-animate-css" },
67
+ transports,
68
+ });
67
69
  }
68
70
 
69
71
  module.exports = { collectOsInfo, createLogglyLogger };