Key details for optimal template use.
To achieve the high-end, editorial feel of Visia, this template comes pre-configured with a refined smooth scrolling experience powered by Lenis. This enhances the weight and fluidity of transitions across the entire site.
The integration is handled through custom code, which is already installed and active in your Site Settings → Custom Code → Footer Code.
<!-- Smooth scroll -->
<link rel="stylesheet" href="https://unpkg.com/lenis@1.2.3/dist/lenis.css">
<script src="https://unpkg.com/lenis@1.2.3/dist/lenis.min.js"></script>
<script>
let lenis = new Lenis({
duration: 2.5, // Controls scroll smoothness (higher = smoother, lower = faster)
});
function raf(time) {
lenis.raf(time);
requestAnimationFrame(raf);
}
requestAnimationFrame(raf);
</script>The scrolling behavior can be easily fine-tuned to match your brand's pacing by changing the duration parameter inside the custom code snippet.
duration: 2.5,If you prefer to restore the browser’s default, native scrolling behavior, simply delete the Lenis script snippet from your Site Settings and republish the site.