@finggujadhav/motion 0.9.0

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/animations.css ADDED
@@ -0,0 +1,21 @@
1
+ /* Entry and Exit Animations */
2
+
3
+ .ff-fade-in {
4
+ animation: ff-fade-in var(--ff-motion-medium) forwards;
5
+ }
6
+
7
+ .ff-slide-up {
8
+ animation: ff-slide-up var(--ff-motion-medium) var(--ff-motion-medium) backwards;
9
+ /* delayed to show staggered effect if used together */
10
+ }
11
+
12
+ .ff-scale-in {
13
+ animation: ff-scale-in var(--ff-motion-medium) forwards;
14
+ }
15
+
16
+ /* Utility to disable animations for prefers-reduced-motion is handled in reset.css */
17
+ /* But we can provide explicit 'no-motion' overrides if needed */
18
+ .ff-no-motion {
19
+ animation: none !important;
20
+ transition: none !important;
21
+ }
package/index.css ADDED
@@ -0,0 +1,13 @@
1
+ /* FingguFlux Motion Engine - Main Entry Point */
2
+
3
+ @import './keyframes.css';
4
+ @import './transitions.css';
5
+ @import './animations.css';
6
+
7
+ :root {
8
+ --finggu-flux-motion-version: "1.0.0-phase2";
9
+
10
+ /* Helper for RGB colors to use with alpha in glows/shadows */
11
+ --ff-primary-rgb: 59, 130, 246;
12
+ /* Matches #3b82f6 */
13
+ }
package/keyframes.css ADDED
@@ -0,0 +1,49 @@
1
+ /* Global Motion Keyframes */
2
+
3
+ @keyframes ff-fade-in {
4
+ from {
5
+ opacity: 0;
6
+ }
7
+
8
+ to {
9
+ opacity: 1;
10
+ }
11
+ }
12
+
13
+ @keyframes ff-slide-up {
14
+ from {
15
+ opacity: 0;
16
+ transform: translateY(var(--ff-space-4));
17
+ }
18
+
19
+ to {
20
+ opacity: 1;
21
+ transform: translateY(0);
22
+ }
23
+ }
24
+
25
+ @keyframes ff-scale-in {
26
+ from {
27
+ opacity: 0;
28
+ transform: scale(0.95);
29
+ }
30
+
31
+ to {
32
+ opacity: 1;
33
+ transform: scale(1);
34
+ }
35
+ }
36
+
37
+ @keyframes ff-glow {
38
+ 0% {
39
+ box-shadow: 0 0 0 0 rgba(var(--ff-primary-rgb), 0);
40
+ }
41
+
42
+ 50% {
43
+ box-shadow: 0 0 20px 5px rgba(var(--ff-primary-rgb), 0.3);
44
+ }
45
+
46
+ 100% {
47
+ box-shadow: 0 0 0 0 rgba(var(--ff-primary-rgb), 0);
48
+ }
49
+ }
package/package.json ADDED
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "@finggujadhav/motion",
3
+ "version": "0.9.0",
4
+ "description": "FingguFlux motion primitives and utility animations.",
5
+ "main": "index.css",
6
+ "files": [
7
+ "*.css"
8
+ ],
9
+ "keywords": [
10
+ "css",
11
+ "animations",
12
+ "motion",
13
+ "fingguflux"
14
+ ],
15
+ "author": "Finggu Architecture Team",
16
+ "license": "MIT"
17
+ }
@@ -0,0 +1,38 @@
1
+ /* Hover and State Transitions */
2
+
3
+ .ff-hover-lift {
4
+ transition: transform var(--ff-motion-medium), box-shadow var(--ff-motion-medium);
5
+ }
6
+
7
+ .ff-hover-lift:hover {
8
+ transform: translateY(-4px);
9
+ box-shadow: var(--ff-shadow-lg);
10
+ }
11
+
12
+ .ff-hover-glow {
13
+ transition: box-shadow var(--ff-motion-medium), border-color var(--ff-motion-medium);
14
+ }
15
+
16
+ .ff-hover-glow:hover {
17
+ box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
18
+ /* Using primary color hex for now as fallback */
19
+ border-color: var(--ff-primary);
20
+ }
21
+
22
+ /* Specific button-like active state */
23
+ .ff-active-shrink {
24
+ transition: transform var(--ff-motion-fast);
25
+ }
26
+
27
+ .ff-active-shrink:active {
28
+ transform: scale(0.95);
29
+ }
30
+
31
+ /* Motion Mixins (Classes used for composition) */
32
+ .ff-transition-all {
33
+ transition: all var(--ff-motion-fast);
34
+ }
35
+
36
+ .ff-transition-colors {
37
+ transition: background-color var(--ff-motion-fast), border-color var(--ff-motion-fast), color var(--ff-motion-fast), box-shadow var(--ff-motion-fast);
38
+ }