viewfx 0.0.5

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/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Luis Martínez
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.es.md ADDED
@@ -0,0 +1,111 @@
1
+ <div align="center">
2
+
3
+ # ViewFX
4
+
5
+ [![en](https://img.shields.io/badge/lang-en-red.svg)](./README.md)
6
+ [![es](https://img.shields.io/badge/lang-es-yellow.svg)](./README.es.md)
7
+
8
+ [![GitHub stars](https://img.shields.io/github/stars/LuisitoLuis/viewfx)](https://github.com/LuisitoLuis/viewfx/stargazers)
9
+ [![GitHub Forks](https://img.shields.io/github/forks/LuisitoLuis/viewfx)](https://github.com/LuisitoLuis/viewfx/forks)
10
+ [![GitHub PRs](https://img.shields.io/github/issues-pr/LuisitoLuis/viewfx)](https://github.com/LuisitoLuis/viewfx/pulls)
11
+ [![GitHub issues](https://img.shields.io/github/issues/LuisitoLuis/viewfx)](https://github.com/LuisitoLuis/viewfx/issues)
12
+ [![GitHub Contributors](https://img.shields.io/github/contributors/LuisitoLuis/viewfx)](https://github.com/LuisitoLuis/viewfx/graphs/contributors)
13
+
14
+ ![Catálogo de ViewFX](./lib/imgs/web.webp)
15
+
16
+ ![Tailwind CSS](https://img.shields.io/badge/Tailwind%20CSS-4-blue?style=for-the-badge&logo=tailwind-css)
17
+ [![npm](https://img.shields.io/npm/v/viewfx?style=for-the-badge)](https://www.npmjs.com/package/viewfx)
18
+
19
+ Transiciones de tema con una sola clase de Tailwind en <code>&lt;html&gt;</code>.
20
+
21
+ Paquete: [`viewfx`](https://www.npmjs.com/package/viewfx)
22
+
23
+ Visita el [repositorio en GitHub](https://github.com/LuisitoLuis/viewfx) para obtener más información.
24
+
25
+ </div>
26
+
27
+ ## Instalación :book:
28
+
29
+ #### Instalar el paquete
30
+
31
+ > Instala el paquete con tu gestor de paquetes favorito:
32
+
33
+ - npm
34
+
35
+ ```bash
36
+ npm install viewfx
37
+ ```
38
+
39
+ - pnpm
40
+
41
+ ```bash
42
+ pnpm add viewfx
43
+ ```
44
+
45
+ - yarn
46
+
47
+ ```bash
48
+ yarn add viewfx
49
+ ```
50
+
51
+ #### Implementación del plugin
52
+
53
+ > Úsalo en tu proyecto de Tailwind CSS:
54
+
55
+ ```css
56
+ /* globals.css (para Tailwind CSS 4.*) */
57
+ @import 'tailwindcss';
58
+ @import 'viewfx';
59
+ ```
60
+
61
+ > Tailwind CSS v3 — registra el plugin de JavaScript:
62
+
63
+ ```js
64
+ /** @type {import('tailwindcss').Config} */
65
+ module.exports = {
66
+ plugins: [
67
+ require('viewfx')
68
+ ]
69
+ }
70
+ ```
71
+
72
+ ## Uso :gear:
73
+
74
+ #### Ejemplo
75
+
76
+ > Pon una clase de efecto en `<html>` y envuelve el toggle de tema en `document.startViewTransition`:
77
+
78
+ ```html
79
+ <html class="dark circle">
80
+ ```
81
+
82
+ ```html
83
+ <html class="dark circle-duration-1000-delay-300">
84
+ ```
85
+
86
+ ```js
87
+ const switchTheme = () =>
88
+ document.documentElement.classList.toggle('dark')
89
+
90
+ document.startViewTransition
91
+ ? document.startViewTransition(switchTheme)
92
+ : switchTheme()
93
+ ```
94
+
95
+ El timing puede ir en la misma clase (`circle-duration-1000`, `circle-duration-1000-delay-300`) o en utilidades sueltas: `fx-duration-1000`, `fx-delay-300`, `fx-steps-modern`.
96
+
97
+ El tema se espera como clase `.dark` en `<html>` (el wipe `polygon` se invierte en oscuro).
98
+
99
+ `prefers-reduced-motion: reduce` se respeta: el tema cambia, el wipe no. Los navegadores sin View Transitions API cambian al instante.
100
+
101
+ ### Efectos
102
+
103
+ 31 utilidades. Pasa el ratón para previsualizar y haz clic para copiar en el [catálogo](https://github.com/LuisitoLuis/viewfx#effects).
104
+
105
+ `circle`, `circle-blur`, `polygon`, `corner-tl`, `corner-tr`, `corner-bl`, `corner-br`, `iris`, `diamond`, `hexagon`, `square`, `mosaic`, `soft`, `heart`, `expand`, `split`, `shutter`, `ink`, `spiral`, `slide-right`, `slide-left`, `slide-up`, `slide-down`, `venetian`, `glitch`, `slide`, `lift`, `zoom`, `rotate`, `fade`, `dissolve`.
106
+
107
+ ## Contribuidores 👑
108
+
109
+ <a href="https://github.com/LuisitoLuis/viewfx/graphs/contributors">
110
+ <img src="https://contrib.rocks/image?repo=LuisitoLuis/viewfx" alt="Contribuidores de ViewFX" />
111
+ </a>
package/README.md ADDED
@@ -0,0 +1,111 @@
1
+ <div align="center">
2
+
3
+ # ViewFX
4
+
5
+ [![en](https://img.shields.io/badge/lang-en-red.svg)](./README.md)
6
+ [![es](https://img.shields.io/badge/lang-es-yellow.svg)](./README.es.md)
7
+
8
+ [![GitHub stars](https://img.shields.io/github/stars/LuisitoLuis/viewfx)](https://github.com/LuisitoLuis/viewfx/stargazers)
9
+ [![GitHub Forks](https://img.shields.io/github/forks/LuisitoLuis/viewfx)](https://github.com/LuisitoLuis/viewfx/forks)
10
+ [![GitHub PRs](https://img.shields.io/github/issues-pr/LuisitoLuis/viewfx)](https://github.com/LuisitoLuis/viewfx/pulls)
11
+ [![GitHub issues](https://img.shields.io/github/issues/LuisitoLuis/viewfx)](https://github.com/LuisitoLuis/viewfx/issues)
12
+ [![GitHub Contributors](https://img.shields.io/github/contributors/LuisitoLuis/viewfx)](https://github.com/LuisitoLuis/viewfx/graphs/contributors)
13
+
14
+ ![ViewFX catalogue](./lib/imgs/web.webp)
15
+
16
+ ![Tailwind CSS](https://img.shields.io/badge/Tailwind%20CSS-4-blue?style=for-the-badge&logo=tailwind-css)
17
+ [![npm](https://img.shields.io/npm/v/viewfx?style=for-the-badge)](https://www.npmjs.com/package/viewfx)
18
+
19
+ Theme transitions with one Tailwind class on <code>&lt;html&gt;</code>.
20
+
21
+ Package: [`viewfx`](https://www.npmjs.com/package/viewfx)
22
+
23
+ Visit the [GitHub repository](https://github.com/LuisitoLuis/viewfx) to get more information.
24
+
25
+ </div>
26
+
27
+ ## Installation :book:
28
+
29
+ #### Package install
30
+
31
+ > Install the package with your favorite package manager:
32
+
33
+ - npm
34
+
35
+ ```bash
36
+ npm install viewfx
37
+ ```
38
+
39
+ - pnpm
40
+
41
+ ```bash
42
+ pnpm add viewfx
43
+ ```
44
+
45
+ - yarn
46
+
47
+ ```bash
48
+ yarn add viewfx
49
+ ```
50
+
51
+ #### Plugin Implementation
52
+
53
+ > Use the plugin in your Tailwind CSS project:
54
+
55
+ ```css
56
+ /* globals.css (for Tailwind CSS 4.*) */
57
+ @import 'tailwindcss';
58
+ @import 'viewfx';
59
+ ```
60
+
61
+ > Tailwind CSS v3 — register the JavaScript plugin:
62
+
63
+ ```js
64
+ /** @type {import('tailwindcss').Config} */
65
+ module.exports = {
66
+ plugins: [
67
+ require('viewfx')
68
+ ]
69
+ }
70
+ ```
71
+
72
+ ## Usage :gear:
73
+
74
+ #### Example
75
+
76
+ > Put an effect class on `<html>`, then wrap your theme toggle in `document.startViewTransition`:
77
+
78
+ ```html
79
+ <html class="dark circle">
80
+ ```
81
+
82
+ ```html
83
+ <html class="dark circle-duration-1000-delay-300">
84
+ ```
85
+
86
+ ```js
87
+ const switchTheme = () =>
88
+ document.documentElement.classList.toggle('dark')
89
+
90
+ document.startViewTransition
91
+ ? document.startViewTransition(switchTheme)
92
+ : switchTheme()
93
+ ```
94
+
95
+ Timing can sit in the same class (`circle-duration-1000`, `circle-duration-1000-delay-300`) or as separate utilities: `fx-duration-1000`, `fx-delay-300`, `fx-steps-modern`.
96
+
97
+ Theme is expected as a `.dark` class on `<html>` (the `polygon` wipe reverses in dark).
98
+
99
+ `prefers-reduced-motion: reduce` is honoured: the theme still changes, without the wipe. Browsers without the View Transitions API skip the animation and toggle instantly.
100
+
101
+ ### Effects
102
+
103
+ 31 utilities. Hover to preview and click to copy on the [catalogue](https://github.com/LuisitoLuis/viewfx#effects).
104
+
105
+ `circle`, `circle-blur`, `polygon`, `corner-tl`, `corner-tr`, `corner-bl`, `corner-br`, `iris`, `diamond`, `hexagon`, `square`, `mosaic`, `soft`, `heart`, `expand`, `split`, `shutter`, `ink`, `spiral`, `slide-right`, `slide-left`, `slide-up`, `slide-down`, `venetian`, `glitch`, `slide`, `lift`, `zoom`, `rotate`, `fade`, `dissolve`.
106
+
107
+ ## Contributors 👑
108
+
109
+ <a href="https://github.com/LuisitoLuis/viewfx/graphs/contributors">
110
+ <img src="https://contrib.rocks/image?repo=LuisitoLuis/viewfx" alt="ViewFX contributors" />
111
+ </a>
package/package.json ADDED
@@ -0,0 +1,57 @@
1
+ {
2
+ "name": "viewfx",
3
+ "version": "0.0.5",
4
+ "description": "Tailwind CSS v3/v4 plugin for View Transitions theme effects",
5
+ "style": "./src/index.css",
6
+ "main": "./src/plugin.cjs",
7
+ "exports": {
8
+ ".": {
9
+ "style": "./src/index.css",
10
+ "require": "./src/plugin.cjs",
11
+ "import": "./src/plugin.js",
12
+ "default": "./src/plugin.cjs"
13
+ },
14
+ "./index.css": "./src/index.css",
15
+ "./plugin": {
16
+ "require": "./src/plugin.cjs",
17
+ "import": "./src/plugin.js",
18
+ "default": "./src/plugin.cjs"
19
+ }
20
+ },
21
+ "files": [
22
+ "src"
23
+ ],
24
+ "repository": {
25
+ "type": "git",
26
+ "url": "git+https://github.com/LuisitoLuis/viewfx.git"
27
+ },
28
+ "homepage": "https://github.com/LuisitoLuis/viewfx",
29
+ "type": "module",
30
+ "scripts": {
31
+ "emit:masks": "node scripts/emit-masks.mjs",
32
+ "test": "vitest",
33
+ "test:ci": "vitest run"
34
+ },
35
+ "keywords": [
36
+ "tailwind",
37
+ "css",
38
+ "view-transitions",
39
+ "theme",
40
+ "plugin"
41
+ ],
42
+ "license": "MIT",
43
+ "engines": {
44
+ "node": ">=22.12.0"
45
+ },
46
+ "peerDependencies": {
47
+ "tailwindcss": "^3.0.0 || ^4.0.0"
48
+ },
49
+ "devDependencies": {
50
+ "@csstools/postcss-minify": "3.0.0",
51
+ "@tailwindcss/postcss": "4.3.3",
52
+ "postcss": "8.5.28",
53
+ "tailwindcss": "4.3.3",
54
+ "tailwindcss-v3": "npm:tailwindcss@3.4.17",
55
+ "vitest": "5.0.1"
56
+ }
57
+ }
@@ -0,0 +1,47 @@
1
+ /**
2
+ * Combined effect+timing utilities:
3
+ * circle-duration-1000
4
+ * circle-duration-1000-delay-300
5
+ *
6
+ * Tailwind v4 only allows one `*` in `@utility` names, so these are registered
7
+ * from JS (`@plugin` in v4, `require('viewfx')` in v3).
8
+ */
9
+ const plugin = require('tailwindcss/plugin')
10
+ const effects = require('./effects.cjs')
11
+ const { duration, delay } = require('./theme.json')
12
+
13
+ function registerCompound({ matchUtilities }) {
14
+ for (const [selector, tokens] of Object.entries(effects)) {
15
+ if (!selector.startsWith('.') || selector.includes('.dark')) continue
16
+
17
+ const name = selector.slice(1)
18
+
19
+ matchUtilities(
20
+ {
21
+ [`${name}-duration`]: (value) => ({
22
+ ...tokens,
23
+ '--fx-duration-override': value
24
+ })
25
+ },
26
+ { values: duration }
27
+ )
28
+
29
+ for (const [durationKey, durationValue] of Object.entries(duration)) {
30
+ matchUtilities(
31
+ {
32
+ [`${name}-duration-${durationKey}-delay`]: (value) => ({
33
+ ...tokens,
34
+ '--fx-duration-override': durationValue,
35
+ '--fx-delay': value
36
+ })
37
+ },
38
+ { values: delay }
39
+ )
40
+ }
41
+ }
42
+ }
43
+
44
+ const compoundPlugin = plugin(registerCompound)
45
+ compoundPlugin.registerCompound = registerCompound
46
+
47
+ module.exports = compoundPlugin
@@ -0,0 +1,232 @@
1
+ /** Effect utilities — keep in sync with `@utility` blocks in `src/index.css`. */
2
+
3
+ module.exports = {
4
+ '.circle': {
5
+ '--fx-anim': 'fx-mask-grow',
6
+ '--fx-anim-old': 'none',
7
+ '--fx-old-z': '-1',
8
+ '--fx-mask': 'var(--mask-circle)',
9
+ '--fx-mask-size': '200vmax',
10
+ '--fx-duration': '1s'
11
+ },
12
+ '.circle-blur': {
13
+ '--fx-anim': 'fx-mask-grow',
14
+ '--fx-anim-old': 'none',
15
+ '--fx-old-z': '-1',
16
+ '--fx-mask': 'var(--mask-circle-blur)',
17
+ '--fx-mask-size': '200vmax',
18
+ '--fx-duration': '1s'
19
+ },
20
+ '.corner-tl': {
21
+ '--fx-anim': 'fx-mask-grow',
22
+ '--fx-anim-old': 'none',
23
+ '--fx-old-z': '-1',
24
+ '--fx-mask': 'var(--mask-corner-tl)',
25
+ '--fx-mask-position': 'top left',
26
+ '--fx-mask-size': '200vmax',
27
+ '--fx-duration': '1.6s',
28
+ '--fx-ease': 'ease-in-out'
29
+ },
30
+ '.corner-tr': {
31
+ '--fx-anim': 'fx-mask-grow',
32
+ '--fx-anim-old': 'none',
33
+ '--fx-old-z': '-1',
34
+ '--fx-mask': 'var(--mask-corner-tr)',
35
+ '--fx-mask-position': 'top right',
36
+ '--fx-mask-size': '200vmax',
37
+ '--fx-duration': '1.6s',
38
+ '--fx-ease': 'ease-in-out'
39
+ },
40
+ '.corner-bl': {
41
+ '--fx-anim': 'fx-mask-grow',
42
+ '--fx-anim-old': 'none',
43
+ '--fx-old-z': '-1',
44
+ '--fx-mask': 'var(--mask-corner-bl)',
45
+ '--fx-mask-position': 'bottom left',
46
+ '--fx-mask-size': '200vmax',
47
+ '--fx-duration': '1.6s',
48
+ '--fx-ease': 'ease-in-out'
49
+ },
50
+ '.corner-br': {
51
+ '--fx-anim': 'fx-mask-grow',
52
+ '--fx-anim-old': 'none',
53
+ '--fx-old-z': '-1',
54
+ '--fx-mask': 'var(--mask-corner-br)',
55
+ '--fx-mask-position': 'bottom right',
56
+ '--fx-mask-size': '200vmax',
57
+ '--fx-duration': '1.6s',
58
+ '--fx-ease': 'ease-in-out'
59
+ },
60
+ '.iris': {
61
+ '--fx-anim': 'fx-mask-grow',
62
+ '--fx-anim-old': 'none',
63
+ '--fx-old-z': '-1',
64
+ '--fx-mask': 'var(--mask-star)',
65
+ '--fx-mask-size': '320vmax',
66
+ '--fx-duration': '1.6s',
67
+ '--fx-ease': 'ease-in-out'
68
+ },
69
+ '.diamond': {
70
+ '--fx-anim': 'fx-mask-grow',
71
+ '--fx-anim-old': 'none',
72
+ '--fx-old-z': '-1',
73
+ '--fx-mask': 'var(--mask-diamond)',
74
+ '--fx-mask-size': '300vmax',
75
+ '--fx-duration': '1.6s',
76
+ '--fx-ease': 'ease-in-out'
77
+ },
78
+ '.hexagon': {
79
+ '--fx-anim': 'fx-mask-grow',
80
+ '--fx-anim-old': 'none',
81
+ '--fx-old-z': '-1',
82
+ '--fx-mask': 'var(--mask-hexagon)',
83
+ '--fx-mask-size': '320vmax',
84
+ '--fx-duration': '1.6s',
85
+ '--fx-ease': 'ease-in-out'
86
+ },
87
+ '.square': {
88
+ '--fx-anim': 'fx-mask-grow',
89
+ '--fx-anim-old': 'none',
90
+ '--fx-old-z': '-1',
91
+ '--fx-mask': 'var(--mask-square)',
92
+ '--fx-mask-size': '280vmax',
93
+ '--fx-duration': '1.6s',
94
+ '--fx-ease': 'ease-in-out'
95
+ },
96
+ '.mosaic': {
97
+ '--fx-anim': 'fx-mosaic',
98
+ '--fx-anim-old': 'none',
99
+ '--fx-old-z': '-1',
100
+ '--fx-duration': '1.2s',
101
+ '--fx-ease': 'cubic-bezier(0.4, 0, 0.15, 1)'
102
+ },
103
+ '.soft': {
104
+ '--fx-anim': 'fx-mask-grow',
105
+ '--fx-anim-old': 'none',
106
+ '--fx-old-z': '-1',
107
+ '--fx-mask': 'var(--mask-soft)',
108
+ '--fx-mask-size': '300vmax',
109
+ '--fx-duration': '1.6s',
110
+ '--fx-ease': 'ease-in-out'
111
+ },
112
+ '.heart': {
113
+ '--fx-anim': 'fx-mask-grow',
114
+ '--fx-anim-old': 'none',
115
+ '--fx-old-z': '-1',
116
+ '--fx-mask': 'var(--mask-heart)',
117
+ '--fx-mask-size': '300vmax',
118
+ '--fx-duration': '1.6s',
119
+ '--fx-ease': 'ease-in-out'
120
+ },
121
+ '.expand': {
122
+ '--fx-anim': 'fx-expand-in',
123
+ '--fx-anim-old': 'none',
124
+ '--fx-old-z': '-1',
125
+ '--fx-duration': '0.6s'
126
+ },
127
+ '.split': {
128
+ '--fx-anim': 'fx-split-in',
129
+ '--fx-anim-old': 'none',
130
+ '--fx-old-z': '-1',
131
+ '--fx-duration': '0.7s'
132
+ },
133
+ '.shutter': {
134
+ '--fx-anim': 'fx-shutter-in',
135
+ '--fx-anim-old': 'none',
136
+ '--fx-old-z': '-1',
137
+ '--fx-duration': '0.7s'
138
+ },
139
+ '.ink': {
140
+ '--fx-anim': 'fx-mask-grow',
141
+ '--fx-anim-old': 'none',
142
+ '--fx-old-z': '-1',
143
+ '--fx-mask': 'var(--mask-ink)',
144
+ '--fx-mask-size': '280vmax',
145
+ '--fx-duration': '1.8s',
146
+ '--fx-ease': 'ease-in-out'
147
+ },
148
+ '.spiral': {
149
+ '--fx-anim': 'fx-spiral',
150
+ '--fx-anim-old': 'none',
151
+ '--fx-old-z': '-1',
152
+ '--fx-mask': 'conic-gradient(from 0deg, #fff 0%, transparent 0%)',
153
+ '--fx-mask-size': '280vmax',
154
+ '--fx-duration': '1.8s',
155
+ '--fx-ease': 'ease-in-out'
156
+ },
157
+ '.polygon': {
158
+ '--fx-anim': 'fx-reveal-light',
159
+ '--fx-anim-old': 'none',
160
+ '--fx-old-z': '-1',
161
+ '--fx-duration': '0.7s'
162
+ },
163
+ '.dark.polygon': {
164
+ '--fx-anim': 'fx-reveal-dark'
165
+ },
166
+ '.dark[class*="polygon-duration"]': {
167
+ '--fx-anim': 'fx-reveal-dark'
168
+ },
169
+ '.slide-right': {
170
+ '--fx-anim': 'fx-wipe-in-h',
171
+ '--fx-anim-old': 'fx-wipe-out-h',
172
+ '--fx-duration': '0.6s'
173
+ },
174
+ '.slide-left': {
175
+ '--fx-anim': 'fx-wipe-in-left',
176
+ '--fx-anim-old': 'fx-wipe-out-left',
177
+ '--fx-duration': '0.6s'
178
+ },
179
+ '.slide-up': {
180
+ '--fx-anim': 'fx-wipe-in-up',
181
+ '--fx-anim-old': 'fx-wipe-out-up',
182
+ '--fx-duration': '0.6s'
183
+ },
184
+ '.slide-down': {
185
+ '--fx-anim': 'fx-wipe-in-down',
186
+ '--fx-anim-old': 'fx-wipe-out-down',
187
+ '--fx-duration': '0.6s'
188
+ },
189
+ '.venetian': {
190
+ '--fx-anim': 'fx-wipe-in-down',
191
+ '--fx-anim-old': 'fx-venetian-out',
192
+ '--fx-duration': '0.8s'
193
+ },
194
+ '.glitch': {
195
+ '--fx-anim': 'fx-glitch-in',
196
+ '--fx-anim-old': 'fx-glitch-out',
197
+ '--fx-duration': '1s',
198
+ '--fx-ease': 'step-end'
199
+ },
200
+ '.slide': {
201
+ '--fx-anim': 'fx-slide-in',
202
+ '--fx-anim-old': 'fx-slide-out',
203
+ '--fx-duration': '0.6s'
204
+ },
205
+ '.lift': {
206
+ '--fx-anim': 'fx-lift-in',
207
+ '--fx-anim-old': 'fx-lift-out',
208
+ '--fx-duration': '0.7s'
209
+ },
210
+ '.zoom': {
211
+ '--fx-anim': 'fx-zoom-in',
212
+ '--fx-anim-old': 'fx-zoom-out',
213
+ '--fx-duration': '0.7s'
214
+ },
215
+ '.rotate': {
216
+ '--fx-anim': 'fx-rotate-in',
217
+ '--fx-anim-old': 'fx-rotate-out',
218
+ '--fx-duration': '0.7s'
219
+ },
220
+ '.fade': {
221
+ '--fx-anim': 'fx-fade-in',
222
+ '--fx-anim-old': 'fx-fade-out',
223
+ '--fx-duration': '0.5s',
224
+ '--fx-ease': 'ease-in-out'
225
+ },
226
+ '.dissolve': {
227
+ '--fx-anim': 'fx-blur-in',
228
+ '--fx-anim-old': 'fx-blur-out',
229
+ '--fx-duration': '0.7s',
230
+ '--fx-ease': 'ease-in-out'
231
+ }
232
+ }