@katajere/recap 1.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 +39 -0
- package/dist/App.css +120 -0
- package/dist/FloatingFrames.css +55 -0
- package/dist/FloatingFrames.d.ts +11 -0
- package/dist/FloatingFrames.d.ts.map +1 -0
- package/dist/FloatingFrames.js +12 -0
- package/dist/LoginScreen.css +146 -0
- package/dist/OtpScreen.css +133 -0
- package/dist/RecapApp.d.ts +17 -0
- package/dist/RecapApp.d.ts.map +1 -0
- package/dist/RecapApp.js +7 -0
- package/dist/RecapStory.css +105 -0
- package/dist/RecapStory.d.ts +11 -0
- package/dist/RecapStory.d.ts.map +1 -0
- package/dist/RecapStory.js +150 -0
- package/dist/StoryProgress.css +47 -0
- package/dist/StoryProgress.d.ts +15 -0
- package/dist/StoryProgress.d.ts.map +1 -0
- package/dist/StoryProgress.js +23 -0
- package/dist/assets/huxxle-blue-logo.png +0 -0
- package/dist/assets/huxxle-blue-logo.svg +14 -0
- package/dist/assets/huxxle-logo.png +0 -0
- package/dist/assets/huxxle_star_final.gif +0 -0
- package/dist/assets/login-logo.png +0 -0
- package/dist/assets/login-logo.svg +14 -0
- package/dist/assets/money-rain.png +0 -0
- package/dist/assets/raining-money.gif +0 -0
- package/dist/assets/recap-music.mp3 +0 -0
- package/dist/assets/sketch_draw.gif +0 -0
- package/dist/assets/slide-logo.png +0 -0
- package/dist/assets/slide-logo.svg +14 -0
- package/dist/assets/sound-off.svg +4 -0
- package/dist/assets/sound-on.svg +5 -0
- package/dist/components/Header.css +46 -0
- package/dist/components/Header.d.ts +12 -0
- package/dist/components/Header.d.ts.map +1 -0
- package/dist/components/Header.js +25 -0
- package/dist/data/mock.d.ts +8 -0
- package/dist/data/mock.d.ts.map +1 -0
- package/dist/data/mock.js +59 -0
- package/dist/data/recapCopy.d.ts +10 -0
- package/dist/data/recapCopy.d.ts.map +1 -0
- package/dist/data/recapCopy.js +23 -0
- package/dist/hooks/useBackgroundMusic.d.ts +20 -0
- package/dist/hooks/useBackgroundMusic.d.ts.map +1 -0
- package/dist/hooks/useBackgroundMusic.js +62 -0
- package/dist/index.css +13 -0
- package/dist/index.d.ts +30 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +40 -0
- package/dist/slides/Slide10Final.css +101 -0
- package/dist/slides/Slide10Final.d.ts +9 -0
- package/dist/slides/Slide10Final.d.ts.map +1 -0
- package/dist/slides/Slide10Final.js +68 -0
- package/dist/slides/Slide1Intro.css +261 -0
- package/dist/slides/Slide1Intro.d.ts +13 -0
- package/dist/slides/Slide1Intro.d.ts.map +1 -0
- package/dist/slides/Slide1Intro.js +61 -0
- package/dist/slides/Slide2Days.css +209 -0
- package/dist/slides/Slide2Days.d.ts +11 -0
- package/dist/slides/Slide2Days.d.ts.map +1 -0
- package/dist/slides/Slide2Days.js +11 -0
- package/dist/slides/Slide3Revenue.css +89 -0
- package/dist/slides/Slide3Revenue.d.ts +12 -0
- package/dist/slides/Slide3Revenue.d.ts.map +1 -0
- package/dist/slides/Slide3Revenue.js +16 -0
- package/dist/slides/Slide4Orders.css +135 -0
- package/dist/slides/Slide4Orders.d.ts +10 -0
- package/dist/slides/Slide4Orders.d.ts.map +1 -0
- package/dist/slides/Slide4Orders.js +16 -0
- package/dist/slides/Slide5Buyers.css +140 -0
- package/dist/slides/Slide5Buyers.d.ts +11 -0
- package/dist/slides/Slide5Buyers.d.ts.map +1 -0
- package/dist/slides/Slide5Buyers.js +12 -0
- package/dist/slides/Slide6Customer.css +92 -0
- package/dist/slides/Slide6Customer.d.ts +10 -0
- package/dist/slides/Slide6Customer.d.ts.map +1 -0
- package/dist/slides/Slide6Customer.js +10 -0
- package/dist/slides/Slide7Products.css +144 -0
- package/dist/slides/Slide7Products.d.ts +11 -0
- package/dist/slides/Slide7Products.d.ts.map +1 -0
- package/dist/slides/Slide7Products.js +29 -0
- package/dist/slides/Slide8Months.css +148 -0
- package/dist/slides/Slide8Months.d.ts +7 -0
- package/dist/slides/Slide8Months.d.ts.map +1 -0
- package/dist/slides/Slide8Months.js +31 -0
- package/dist/slides/Slide9Year.css +93 -0
- package/dist/slides/Slide9Year.d.ts +8 -0
- package/dist/slides/Slide9Year.d.ts.map +1 -0
- package/dist/slides/Slide9Year.js +9 -0
- package/dist/types.d.ts +33 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +11 -0
- package/dist/utils/format.d.ts +9 -0
- package/dist/utils/format.d.ts.map +1 -0
- package/dist/utils/format.js +17 -0
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +3 -0
- package/dist/utils/motion.d.ts +19 -0
- package/dist/utils/motion.d.ts.map +1 -0
- package/dist/utils/motion.js +80 -0
- package/package.json +98 -0
- package/src/App.css +120 -0
- package/src/App.tsx +73 -0
- package/src/FloatingFrames.css +55 -0
- package/src/FloatingFrames.tsx +27 -0
- package/src/LoginScreen.css +146 -0
- package/src/LoginScreen.tsx +70 -0
- package/src/OtpScreen.css +133 -0
- package/src/OtpScreen.tsx +109 -0
- package/src/RecapApp.tsx +34 -0
- package/src/RecapStory.css +105 -0
- package/src/RecapStory.tsx +269 -0
- package/src/StoryProgress.css +47 -0
- package/src/StoryProgress.tsx +60 -0
- package/src/assets.d.ts +41 -0
- package/src/components/Header.css +46 -0
- package/src/components/Header.tsx +41 -0
- package/src/data/mock.ts +62 -0
- package/src/data/recapCopy.ts +33 -0
- package/src/hooks/useBackgroundMusic.ts +79 -0
- package/src/index.css +13 -0
- package/src/index.ts +70 -0
- package/src/react-app-env.d.ts +26 -0
- package/src/slides/Slide10Final.css +101 -0
- package/src/slides/Slide10Final.tsx +105 -0
- package/src/slides/Slide1Intro.css +261 -0
- package/src/slides/Slide1Intro.tsx +141 -0
- package/src/slides/Slide2Days.css +209 -0
- package/src/slides/Slide2Days.tsx +92 -0
- package/src/slides/Slide3Revenue.css +89 -0
- package/src/slides/Slide3Revenue.tsx +76 -0
- package/src/slides/Slide4Orders.css +135 -0
- package/src/slides/Slide4Orders.tsx +63 -0
- package/src/slides/Slide5Buyers.css +140 -0
- package/src/slides/Slide5Buyers.tsx +74 -0
- package/src/slides/Slide6Customer.css +92 -0
- package/src/slides/Slide6Customer.tsx +27 -0
- package/src/slides/Slide7Products.css +144 -0
- package/src/slides/Slide7Products.tsx +81 -0
- package/src/slides/Slide8Months.css +148 -0
- package/src/slides/Slide8Months.tsx +63 -0
- package/src/slides/Slide9Year.css +93 -0
- package/src/slides/Slide9Year.tsx +35 -0
- package/src/types.ts +39 -0
- package/src/utils/format.ts +18 -0
- package/src/utils/index.ts +3 -0
- package/src/utils/motion.ts +89 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import React, { useEffect, useState } from 'react';
|
|
2
|
+
import './Slide8Months.css';
|
|
3
|
+
|
|
4
|
+
const MONTHS = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
|
|
5
|
+
|
|
6
|
+
interface Slide8MonthsProps {
|
|
7
|
+
busiestMonth: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
const animationDelay = 120;
|
|
11
|
+
|
|
12
|
+
function Slide8Months({ busiestMonth }: Slide8MonthsProps) {
|
|
13
|
+
const activeMonth = MONTHS.includes(busiestMonth) ? busiestMonth : MONTHS[0];
|
|
14
|
+
const targetIndex = Math.max(MONTHS.indexOf(activeMonth), 0);
|
|
15
|
+
const [highlightIndex, setHighlightIndex] = useState(0);
|
|
16
|
+
|
|
17
|
+
useEffect(() => {
|
|
18
|
+
setHighlightIndex(0);
|
|
19
|
+
const timers: number[] = [];
|
|
20
|
+
|
|
21
|
+
for (let step = 1; step <= targetIndex; step += 1) {
|
|
22
|
+
const timer = window.setTimeout(() => {
|
|
23
|
+
setHighlightIndex(step);
|
|
24
|
+
}, step * animationDelay);
|
|
25
|
+
timers.push(timer);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
return () => timers.forEach((timer) => window.clearTimeout(timer));
|
|
29
|
+
}, [targetIndex]);
|
|
30
|
+
|
|
31
|
+
return (
|
|
32
|
+
<div className="slide8-months">
|
|
33
|
+
<div className="slide8-months__message">You burst brain pass for</div>
|
|
34
|
+
<div className="slide8-months__list">
|
|
35
|
+
{MONTHS.map((month, index) => {
|
|
36
|
+
const classes = [
|
|
37
|
+
'slide8-months__entry',
|
|
38
|
+
index === highlightIndex ? 'slide8-months__entry--current' : ''
|
|
39
|
+
]
|
|
40
|
+
.filter(Boolean)
|
|
41
|
+
.join(' ');
|
|
42
|
+
|
|
43
|
+
return (
|
|
44
|
+
<span key={month} className={classes}>
|
|
45
|
+
{month}
|
|
46
|
+
</span>
|
|
47
|
+
);
|
|
48
|
+
})}
|
|
49
|
+
</div>
|
|
50
|
+
|
|
51
|
+
<div className="slide8-months__rect-group slide8-months__rect-group--left">
|
|
52
|
+
<span className="slide8-months__rect slide8-months__rect--r1 move-up" />
|
|
53
|
+
<span className="slide8-months__rect slide8-months__rect--r2 move-down" />
|
|
54
|
+
</div>
|
|
55
|
+
<div className="slide8-months__rect-group slide8-months__rect-group--right">
|
|
56
|
+
<span className="slide8-months__rect slide8-months__rect--r3 move-down" />
|
|
57
|
+
<span className="slide8-months__rect slide8-months__rect--r4 move-up" />
|
|
58
|
+
</div>
|
|
59
|
+
</div>
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export default Slide8Months;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
.slide9-year {
|
|
2
|
+
position: relative;
|
|
3
|
+
width: 100%;
|
|
4
|
+
height: 100%;
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
align-items: center;
|
|
9
|
+
/* justify-content: center; */
|
|
10
|
+
padding-top: 17.54vh;
|
|
11
|
+
color: white;
|
|
12
|
+
text-align: center;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.slide9-year__message {
|
|
16
|
+
font-family: 'Lora', serif;
|
|
17
|
+
font-size: clamp(14px, 4.1vw, 16px);
|
|
18
|
+
font-weight: 400;
|
|
19
|
+
margin-bottom: 2.84%;
|
|
20
|
+
/* width: 320px; */
|
|
21
|
+
background: linear-gradient(90deg, #FFFFFF 0%, #FFCC80 100%);
|
|
22
|
+
-webkit-background-clip: text;
|
|
23
|
+
-webkit-text-fill-color: transparent;
|
|
24
|
+
background-clip: text;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.slide9-year__title {
|
|
28
|
+
font-family: 'Lora', serif;
|
|
29
|
+
font-size: clamp(24px, 10.26vw, 40px);
|
|
30
|
+
font-weight: 700;
|
|
31
|
+
line-height: 1.28;
|
|
32
|
+
margin-bottom: 1.9%;
|
|
33
|
+
width: 92.31%;
|
|
34
|
+
text-transform: capitalize;
|
|
35
|
+
background: linear-gradient(90deg, #FFFFFF 0%, #FFCC80 100%);
|
|
36
|
+
-webkit-background-clip: text;
|
|
37
|
+
-webkit-text-fill-color: transparent;
|
|
38
|
+
background-clip: text;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.slide9-year__crown {
|
|
42
|
+
font-size: clamp(48px, 24.62vw, 96px);
|
|
43
|
+
line-height: 1.28;
|
|
44
|
+
margin-bottom: 4.74%;
|
|
45
|
+
background-clip: text;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.slide9-year__rect-layer {
|
|
49
|
+
display: flex;
|
|
50
|
+
flex-direction: row;
|
|
51
|
+
justify-content: center;
|
|
52
|
+
align-items: center;
|
|
53
|
+
padding: 0;
|
|
54
|
+
gap: clamp(8px, 3.08vw, 12px);
|
|
55
|
+
position: absolute;
|
|
56
|
+
width: 100%;
|
|
57
|
+
left: 0;
|
|
58
|
+
z-index: 2;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.slide9-year__rect-layer--top {
|
|
62
|
+
top: 50vh;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.slide9-year__rect-layer--bottom {
|
|
66
|
+
top: 79.86vh;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.slide9-year__rect {
|
|
70
|
+
width: clamp(140px, 46.15vw, 180px);
|
|
71
|
+
height: 28.4vh;
|
|
72
|
+
box-sizing: border-box;
|
|
73
|
+
border: 1px solid #ffffff;
|
|
74
|
+
flex: none;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.top-group {
|
|
78
|
+
animation: slide9MoveRight 8s linear infinite;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.bottom-group {
|
|
82
|
+
animation: slide9MoveLeft 8s linear infinite;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
@keyframes slide9MoveRight {
|
|
86
|
+
from { transform: translateX(0); }
|
|
87
|
+
to { transform: translateX(20.51%); }
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
@keyframes slide9MoveLeft {
|
|
91
|
+
from { transform: translateX(0); }
|
|
92
|
+
to { transform: translateX(-20.51%); }
|
|
93
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './Slide9Year.css';
|
|
3
|
+
import { recapCopy } from '../data/recapCopy';
|
|
4
|
+
import { BUSINESS_CATEGORIES } from '../types';
|
|
5
|
+
import type { BusinessCategory } from '../types';
|
|
6
|
+
|
|
7
|
+
interface Slide9YearProps {
|
|
8
|
+
businessCategory: BusinessCategory;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
function Slide9Year({ businessCategory }: Slide9YearProps) {
|
|
12
|
+
const copy = recapCopy[businessCategory] ?? recapCopy[BUSINESS_CATEGORIES.THRIVING];
|
|
13
|
+
|
|
14
|
+
return (
|
|
15
|
+
<div className="slide9-year">
|
|
16
|
+
<div className="slide9-year__message">{copy.yearHeadline}</div>
|
|
17
|
+
<div className="slide9-year__title">2026 na your year</div>
|
|
18
|
+
<div className="slide9-year__crown">👑</div>
|
|
19
|
+
|
|
20
|
+
<div className="slide9-year__rect-layer slide9-year__rect-layer--top">
|
|
21
|
+
<span className="slide9-year__rect slide9-year__rect--top-1 top-group" />
|
|
22
|
+
<span className="slide9-year__rect slide9-year__rect--top-2 top-group" />
|
|
23
|
+
<span className="slide9-year__rect slide9-year__rect--top-3 top-group" />
|
|
24
|
+
</div>
|
|
25
|
+
|
|
26
|
+
<div className="slide9-year__rect-layer slide9-year__rect-layer--bottom">
|
|
27
|
+
<span className="slide9-year__rect slide9-year__rect--bottom-1 bottom-group" />
|
|
28
|
+
<span className="slide9-year__rect slide9-year__rect--bottom-2 bottom-group" />
|
|
29
|
+
<span className="slide9-year__rect slide9-year__rect--bottom-3 bottom-group" />
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export default Slide9Year;
|
package/src/types.ts
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// Type definitions for the Huxxle Recap app
|
|
2
|
+
|
|
3
|
+
export type AuthStep = 'login' | 'otp' | 'recap';
|
|
4
|
+
|
|
5
|
+
export type BusinessCategory = 'thriving' | 'not_thriving' | 'new_user';
|
|
6
|
+
|
|
7
|
+
export interface RecapData {
|
|
8
|
+
businessName: string;
|
|
9
|
+
days: number;
|
|
10
|
+
streak: number;
|
|
11
|
+
revenue: number;
|
|
12
|
+
orders: number;
|
|
13
|
+
firstTimeBuyers: number;
|
|
14
|
+
repeatBuyers: number;
|
|
15
|
+
topCustomerName: string;
|
|
16
|
+
businessCategory: BusinessCategory;
|
|
17
|
+
topProducts: Array<ProductSummary>;
|
|
18
|
+
busiestMonth: string;
|
|
19
|
+
videoUrl: string;
|
|
20
|
+
downloadUrl: string;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface ProductSummary {
|
|
24
|
+
name: string;
|
|
25
|
+
units: number;
|
|
26
|
+
productImage: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export const AUTH_STEPS = {
|
|
30
|
+
LOGIN: 'login' as AuthStep,
|
|
31
|
+
OTP: 'otp' as AuthStep,
|
|
32
|
+
RECAP: 'recap' as AuthStep
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export const BUSINESS_CATEGORIES = {
|
|
36
|
+
THRIVING: 'thriving' as BusinessCategory,
|
|
37
|
+
NOT_THRIVING: 'not_thriving' as BusinessCategory,
|
|
38
|
+
NEW_USER: 'new_user' as BusinessCategory
|
|
39
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Format a number as Nigerian Naira currency
|
|
3
|
+
*/
|
|
4
|
+
export function formatCurrency(amount: number): string {
|
|
5
|
+
return new Intl.NumberFormat('en-NG', {
|
|
6
|
+
style: 'currency',
|
|
7
|
+
currency: 'NGN',
|
|
8
|
+
minimumFractionDigits: 0,
|
|
9
|
+
maximumFractionDigits: 0
|
|
10
|
+
}).format(amount);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Format a number with thousand separators
|
|
15
|
+
*/
|
|
16
|
+
export function formatNumber(num: number): string {
|
|
17
|
+
return new Intl.NumberFormat('en-US').format(num);
|
|
18
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { Variants } from 'framer-motion';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Common Framer Motion variants and animation configs
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
// Slide transition variants
|
|
8
|
+
export const slideVariants: Variants = {
|
|
9
|
+
initial: {
|
|
10
|
+
opacity: 0,
|
|
11
|
+
y: 40
|
|
12
|
+
},
|
|
13
|
+
animate: {
|
|
14
|
+
opacity: 1,
|
|
15
|
+
y: 0,
|
|
16
|
+
transition: {
|
|
17
|
+
duration: 0.4,
|
|
18
|
+
ease: 'easeOut'
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
exit: {
|
|
22
|
+
opacity: 0,
|
|
23
|
+
y: -40,
|
|
24
|
+
transition: {
|
|
25
|
+
duration: 0.4,
|
|
26
|
+
ease: 'easeIn'
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
// Fade in from top (for logo)
|
|
32
|
+
export const fadeInFromTop: Variants = {
|
|
33
|
+
initial: { opacity: 0, y: -20 },
|
|
34
|
+
animate: {
|
|
35
|
+
opacity: 1,
|
|
36
|
+
y: 0,
|
|
37
|
+
transition: { duration: 0.5, ease: 'easeOut' }
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
// Scale in (for titles)
|
|
42
|
+
export const scaleIn: Variants = {
|
|
43
|
+
initial: { opacity: 0, scale: 0.9 },
|
|
44
|
+
animate: {
|
|
45
|
+
opacity: 1,
|
|
46
|
+
scale: 1,
|
|
47
|
+
transition: { duration: 0.5, ease: 'easeOut' }
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
// Slide up (for forms)
|
|
52
|
+
export const slideUp: Variants = {
|
|
53
|
+
initial: { opacity: 0, y: 30 },
|
|
54
|
+
animate: {
|
|
55
|
+
opacity: 1,
|
|
56
|
+
y: 0,
|
|
57
|
+
transition: { duration: 0.6, ease: 'easeOut', delay: 0.2 }
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
// Pulse animation (for OTP boxes)
|
|
62
|
+
export const pulse: Variants = {
|
|
63
|
+
initial: { scale: 0.95, opacity: 0 },
|
|
64
|
+
animate: {
|
|
65
|
+
scale: 1,
|
|
66
|
+
opacity: 1,
|
|
67
|
+
transition: { duration: 0.3, ease: 'easeOut' }
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
// Delayed fade in (for secondary text)
|
|
72
|
+
export const delayedFadeIn = (delay: number = 0.5): Variants => ({
|
|
73
|
+
initial: { opacity: 0, x: 12 },
|
|
74
|
+
animate: {
|
|
75
|
+
opacity: 1,
|
|
76
|
+
x: 0,
|
|
77
|
+
transition: { duration: 0.5, ease: 'easeOut', delay }
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
// Floating animation (for decorative frames)
|
|
82
|
+
export const floatingAnimation = {
|
|
83
|
+
x: [-30, 30, -30],
|
|
84
|
+
transition: {
|
|
85
|
+
duration: 24,
|
|
86
|
+
repeat: Infinity,
|
|
87
|
+
ease: 'linear' as const
|
|
88
|
+
}
|
|
89
|
+
};
|