Eat clean and green. Eat Organic.
Lorem ipsum dolor sit amet, proin hendrerit, metus congue velit erat,
ornare feugiat hendrerit lacinia. Proin vel nulla.
VIEW FEATURES
‹
›
.organic-hero {
width: 100%;
overflow: hidden;
background: #f5f3eb;
}
.organic-inner {
position: relative;
width: 100%;
max-width: 1521px;
height: 532px;
margin: 0 auto;
background:
linear-gradient(180deg, rgba(255,255,255,0.78), rgba(255,255,255,0.78)),
#f7f5ed;
overflow: hidden;
}
.organic-copy {
position: absolute;
left: 90px;
top: 110px;
width: 420px;
z-index: 20;
}
.organic-copy h2 {
margin: 0 0 18px;
font-size: 58px;
line-height: 1.05;
font-weight: 800;
color: #202020;
letter-spacing: -1px;
opacity: 0;
transform: translateY(30px);
}
.organic-copy p {
margin: 0 0 18px;
font-size: 14px;
line-height: 1.7;
color: #6a6a6a;
max-width: 330px;
opacity: 0;
transform: translateY(20px);
}
.organic-btn {
display: inline-block;
padding: 14px 28px;
background: #8dc63f;
color: #fff !important;
font-size: 12px;
font-weight: 700;
letter-spacing: 1px;
text-decoration: none !important;
opacity: 0;
transform: translateY(20px);
}
.organic-scene {
position: absolute;
inset: 0;
}
.obj {
position: absolute;
will-change: transform, opacity;
}
/* final layout positions */
.doodle {
right: 120px;
top: 10px;
width: 380px;
opacity: 0.35;
}
.bg-leaf {
left: 360px;
top: 170px;
width: 90px;
opacity: 0.65;
}
.bottle {
right: 250px;
top: -10px;
width: 230px;
z-index: 4;
}
.capsicum {
left: 610px;
top: 105px;
width: 105px;
z-index: 5;
}
.tomato-main {
left: 720px;
top: 135px;
width: 210px;
z-index: 6;
}
.tomato-top {
right: 120px;
top: 55px;
width: 150px;
z-index: 7;
}
.cucumber {
right: 320px;
top: 215px;
width: 62px;
z-index: 7;
}
.leaves-bottom {
right: 140px;
bottom: 40px;
width: 135px;
z-index: 3;
}
.veggie-bottom {
left: 560px;
bottom: -10px;
width: 260px;
z-index: 3;
}
.buy-tag {
right: 65px;
top: 205px;
width: 110px;
height: 46px;
background: #ff2f7d;
color: #fff;
display: flex;
align-items: center;
gap: 8px;
padding: 8px 10px;
box-sizing: border-box;
z-index: 8;
}
.buy-tag .circle {
width: 20px;
height: 20px;
border-radius: 50%;
background: #fff;
display: block;
flex-shrink: 0;
}
.buy-tag .tag-text {
display: flex;
flex-direction: column;
line-height: 1.1;
}
.buy-tag strong {
font-size: 10px;
}
.buy-tag small {
font-size: 9px;
}
/* arrows */
.nav {
position: absolute;
top: 50%;
transform: translateY(-50%);
z-index: 30;
border: none;
background: transparent;
color: #333;
font-size: 42px;
cursor: pointer;
line-height: 1;
}
.prev { left: 10px; }
.next { right: 10px; }
/* mobile */
@media (max-width: 991px) {
.organic-inner {
height: 620px;
}
.organic-copy {
left: 30px;
top: 40px;
width: calc(100% - 60px);
}
.organic-copy h2 {
font-size: 34px;
}
.organic-copy p {
max-width: 100%;
}
.bottle { right: 120px; top: 180px; width: 180px; }
.capsicum { left: 48%; top: 210px; width: 80px; }
.tomato-main { left: 50%; top: 255px; width: 150px; }
.tomato-top { right: 30px; top: 170px; width: 110px; }
.cucumber { right: 90px; top: 310px; width: 45px; }
.leaves-bottom { right: 15px; bottom: 100px; width: 90px; }
.veggie-bottom { left: 42%; bottom: 20px; width: 180px; }
.buy-tag { right: 20px; top: 285px; transform: scale(.9); }
.doodle { right: 10px; top: 20px; width: 230px; }
.bg-leaf { left: 220px; top: 235px; width: 70px; }
}
document.addEventListener('DOMContentLoaded', function () {
if (window.__organicHeroLoaded) return;
window.__organicHeroLoaded = true;
const hero = document.querySelector('.organic-inner');
if (!hero || typeof gsap === 'undefined') return;
const tl = gsap.timeline({ defaults: { ease: 'power3.out' } });
/* initial states */
gsap.set('.organic-copy h2', { y: 30, opacity: 0 });
gsap.set('.organic-copy p', { y: 20, opacity: 0 });
gsap.set('.organic-btn', { y: 20, opacity: 0 });
/* EXACT-LIKE object entry directions */
gsap.set('.tomato-main', { x: -260, opacity: 0, scale: 0.95 });
gsap.set('.capsicum', { y: -180, opacity: 0, rotation: -12, scale: 0.9 });
gsap.set('.tomato-top', { x: 120, y: -80, opacity: 0, scale: 0.9, rotation: 8 });
gsap.set('.bottle', { y: -220, opacity: 0, rotation: -15, transformOrigin: '50% 50%' });
gsap.set('.cucumber', { x: 80, opacity: 0, scale: 0.8 });
gsap.set('.leaves-bottom', { y: 90, opacity: 0, rotation: -8 });
gsap.set('.veggie-bottom', { y: 80, opacity: 0 });
gsap.set('.buy-tag', { x: 60, opacity: 0 });
gsap.set('.doodle', { opacity: 0, x: 20 });
gsap.set('.bg-leaf', { opacity: 0, x: -30 });
/* entrance animation */
tl.to('.doodle', { opacity: 0.35, x: 0, duration: 0.5 }, 0.05)
.to('.organic-copy h2', { opacity: 1, y: 0, duration: 0.7 }, 0.15)
.to('.organic-copy p', { opacity: 1, y: 0, duration: 0.55 }, 0.35)
.to('.organic-btn', { opacity: 1, y: 0, duration: 0.45 }, 0.48)
/* bottle from top */
.to('.bottle', { y: 0, opacity: 1, rotation: 0, duration: 0.9 }, 0.20)
/* capsicum drops from top */
.to('.capsicum', { y: 0, opacity: 1, rotation: 0, scale: 1, duration: 0.7 }, 0.38)
/* big tomato enters from left */
.to('.tomato-main', { x: 0, opacity: 1, scale: 1, duration: 0.85 }, 0.46)
/* top-right tomato comes from upper-right */
.to('.tomato-top', { x: 0, y: 0, opacity: 1, scale: 1, rotation: 0, duration: 0.7 }, 0.60)
/* cucumber from right */
.to('.cucumber', { x: 0, opacity: 1, scale: 1, duration: 0.55 }, 0.78)
/* leaf/background accents */
.to('.bg-leaf', { opacity: 0.65, x: 0, duration: 0.55 }, 0.55)
.to('.veggie-bottom', { y: 0, opacity: 1, duration: 0.75 }, 0.68)
.to('.leaves-bottom', { y: 0, opacity: 1, rotation: 0, duration: 0.65 }, 0.82)
/* pink badge */
.to('.buy-tag', { x: 0, opacity: 1, duration: 0.45 }, 0.95);
/* continuous floating after entry */
gsap.to('.tomato-main', {
y: -10,
rotation: 2,
duration: 2.6,
repeat: -1,
yoyo: true,
ease: 'sine.inOut',
delay: 1.4
});
gsap.to('.capsicum', {
y: -8,
rotation: -3,
duration: 2.2,
repeat: -1,
yoyo: true,
ease: 'sine.inOut',
delay: 1.2
});
gsap.to('.tomato-top', {
y: -9,
rotation: 3,
duration: 2.4,
repeat: -1,
yoyo: true,
ease: 'sine.inOut',
delay: 1.5
});
gsap.to('.bottle', {
y: -6,
rotation: 2,
duration: 3.2,
repeat: -1,
yoyo: true,
ease: 'sine.inOut',
delay: 1.0
});
gsap.to('.cucumber', {
y: -5,
duration: 2.0,
repeat: -1,
yoyo: true,
ease: 'sine.inOut',
delay: 1.6
});
gsap.to('.leaves-bottom', {
y: -6,
duration: 2.5,
repeat: -1,
yoyo: true,
ease: 'sine.inOut',
delay: 1.8
});
});