The template integrates the Lenis library to deliver a smooth scrolling experience.
<!-- Lenis script and styles Start -->
<link rel="stylesheet" href="https://unpkg.com/lenis@1.3.4/dist/lenis.css">
<script src="https://unpkg.com/lenis@1.3.4/dist/lenis.min.js"></script> <!-- Lenis Script Start -->
<script>
// Initialize Lenis
const lenis = new Lenis({
smooth: true,
lerp: 0.1,
wheelMultiplier: 1,
infinite: false,
});
// Use requestAnimationFrame to continuously update the scroll
function raf(time) {
lenis.raf(time);
requestAnimationFrame(raf);
}
requestAnimationFrame(raf);
</script>This project uses GSAP for the Hero 3D Slider animation(Home Page).
Below are the elements used in GSAP:
.hero-image-block
You can easily control animation behavior by editing these values:
⏱ Duration (Animation Speed)
duration: 0.8👉 Example:
0.8 → normal speed1.2 → slower and smoother🔁 Autoplay Speed (Slider Interval)
setInterval(animateSlider, 2000);👉 Example:
→ Slower→ Faster 🎢 Ease (Animation Style)
ease: 'power2.inOut'You can change easing style:
📐 Position & Depth
const positions = [
{ x: '-60%', z: -800, opacity: 1 },
{ x: '-24%', z: -260, opacity: 1 },
{ x: '0%', z: 0, opacity: 1 },
{ x: '24%', z: -260, opacity: 1 },
{ x: '60%', z: -800, opacity: 1 },
];You can change easing style:
Follow these steps to disable the slider animation:
Step 1: Remove or Comment JS Code (Project Settings → Custom Code -> Footer)
// Comment or delete this block
window.addEventListener('DOMContentLoaded', () => {
...
});Step 2: Remove GSAP Script (Project Settings → Custom Code -> Header)
<!-- Remove this -->
<script src="https://cdn.jsdelivr.net/npm/gsap@3/dist/gsap.min.js"></script>Step 3: Publish Site








A space to move, breathe, and grow - yoga that meets you.
