Compare commits
2 Commits
d9dbb43926
...
cd3cb704be
| Author | SHA1 | Date | |
|---|---|---|---|
| cd3cb704be | |||
| b0f2bf142b |
@@ -29,7 +29,7 @@ const slides = [
|
|||||||
];
|
];
|
||||||
|
|
||||||
const autoplayPlugin = Autoplay({
|
const autoplayPlugin = Autoplay({
|
||||||
delay: 4000,
|
delay: general.carouselDelay,
|
||||||
stopOnInteraction: false,
|
stopOnInteraction: false,
|
||||||
stopOnMouseEnter: false,
|
stopOnMouseEnter: false,
|
||||||
});
|
});
|
||||||
@@ -74,35 +74,41 @@ export default function Hero({ content }: { content: HeroContent }) {
|
|||||||
<div className="relative rounded-lg px-6 py-2">
|
<div className="relative rounded-lg px-6 py-2">
|
||||||
<motion.div
|
<motion.div
|
||||||
className="absolute inset-0 rounded-lg bg-brand-50"
|
className="absolute inset-0 rounded-lg bg-brand-50"
|
||||||
initial={{ opacity: 0 }}
|
initial={{ opacity: 0, scaleY: 0 }}
|
||||||
animate={{ opacity: 1 }}
|
animate={{ opacity: 1, scaleY: 1 }}
|
||||||
transition={{ delay: 0.85, duration: 2, ease: [0.22, 1, 0.36, 1] }}
|
style={{ originY: "50%" }}
|
||||||
|
transition={{ delay: 0.85, duration: 1, ease: [0.22, 1, 0.36, 1] }}
|
||||||
/>
|
/>
|
||||||
<svg className="relative" viewBox="0 0 1390 500" xmlns="http://www.w3.org/2000/svg">
|
<svg className="relative" viewBox="0 0 1390 500" xmlns="http://www.w3.org/2000/svg">
|
||||||
<defs>
|
<defs>
|
||||||
<clipPath id="cachet-rise-clip">
|
<clipPath id="cachet-rise-clip">
|
||||||
<motion.rect
|
<motion.rect
|
||||||
x="0"
|
x="0"
|
||||||
initial={{ y: 334, height: 0 }}
|
initial={{ scaleY: 0 }}
|
||||||
animate={{ y: 0, height: 334 }}
|
animate={{ scaleY: 1 }}
|
||||||
|
style={{ originY: "100%" }}
|
||||||
transition={{
|
transition={{
|
||||||
duration: 1,
|
duration: 1,
|
||||||
ease: [0.22, 1, 0.36, 1],
|
ease: [0.22, 1, 0.36, 1],
|
||||||
delay: 0.85,
|
delay: 0.85,
|
||||||
}}
|
}}
|
||||||
|
height="334"
|
||||||
width="1390"
|
width="1390"
|
||||||
/>
|
/>
|
||||||
</clipPath>
|
</clipPath>
|
||||||
<clipPath id="decorateurs-drop-clip">
|
<clipPath id="decorateurs-drop-clip">
|
||||||
<motion.rect
|
<motion.rect
|
||||||
x="0"
|
x="0"
|
||||||
initial={{ y: 334, height: 0 }}
|
y="334"
|
||||||
animate={{ y: 334, height: 166 }}
|
initial={{ scaleY: 0 }}
|
||||||
|
animate={{ scaleY: 1 }}
|
||||||
|
style={{ originY: "0%" }}
|
||||||
transition={{
|
transition={{
|
||||||
duration: 1,
|
duration: 1,
|
||||||
ease: [0.22, 1, 0.36, 1],
|
ease: [0.22, 1, 0.36, 1],
|
||||||
delay: 0.85,
|
delay: .95,
|
||||||
}}
|
}}
|
||||||
|
height="166"
|
||||||
width="1390"
|
width="1390"
|
||||||
/>
|
/>
|
||||||
</clipPath>
|
</clipPath>
|
||||||
|
|||||||
@@ -16,5 +16,6 @@
|
|||||||
"instagram": "https://www.instagram.com/cachet.deco/",
|
"instagram": "https://www.instagram.com/cachet.deco/",
|
||||||
"linkedin": "",
|
"linkedin": "",
|
||||||
"rbq": "5839 8736 01",
|
"rbq": "5839 8736 01",
|
||||||
"neq": "9500-5609"
|
"neq": "9500-5609",
|
||||||
|
"carouselDelay": 2500
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user