All-Access · 22 templates$1270.97$99/year — save 92%Get access
  • HomeHome
  • TemplatesTemplates23
  • ComponentsComponents78
  • PricingPricing
  • Need a Website?Need a Website?New
Unlock All AccessUnlock All Access

Our latest template collection

Ready-to-launch sites for real estate agents, service businesses, and local brands — built to rank, load fast, and convert.

Explore All TemplatesExplore All Templates

Orvaine - Luxury Equestrian & Horse Breeding Website Template

Orvaine is a premium website template for stud farms, sport horse breeders and equestrian estates: horse pages with pedigrees, events, films. Next.js, Astro, Sanity.

Download Template
Orvaine - Luxury Equestrian & Horse Breeding Website Template

Maressa - Luxury Yacht Charter & Sales Website Template

Maressa is a premium website template for yacht charter, brokerage and superyacht brands: 21 editable sections, full-screen films, Next.js and Astro versions. Sanity.

Download Template
Maressa - Luxury Yacht Charter & Sales Website Template

Krishi – Agriculture & Farm Website Template

Krishi is a premium website template for farms, agritech and food brands: 17 editable sections, cinematic GSAP motion and both Next.js and Astro versions. Built with Sanity.

Download Template
Krishi – Agriculture & Farm Website Template
ComponentsAnimation

Scroll Word-Fill Statement

View code
Full screen

A large statement whose words darken one by one as it scrolls into view, beside a round portrait. React and Tailwind CSS, no dependencies.

ScrollWordFillStatement.tsx
"use client";

// Statement whose words darken one by one as you scroll it into view,
// beside a round portrait. Pure Tailwind + React, no dependencies. Works with Tailwind v3 and v4.

import { useEffect, useRef, useState } from "react";

type Props = {
  statement?: string;
  image?: string;
  imageAlt?: string;
  link?: { label: string; href: string };
};

export default function WordFillStatement({
  statement = "We believe good food starts with good soil, fair prices and people who know the land by name. Everything we grow is a promise to the next harvest.",
  image = "https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=300&h=300&q=80&auto=format&fit=crop&crop=faces",
  imageAlt = "Portrait of the farmer",
  link = { label: "Read our story", href: "#" },
}: Props) {
  const ref = useRef<HTMLParagraphElement>(null);
  const [progress, setProgress] = useState(1);
  const words = statement.split(" ");

  useEffect(() => {
    const el = ref.current;
    if (!el || window.matchMedia("(prefers-reduced-motion: reduce)").matches) return;
    const update = () => {
      const rect = el.getBoundingClientRect();
      const vh = window.innerHeight;
      // 0 when the text enters from the bottom, 1 once it reaches the upper third
      setProgress(Math.min(1, Math.max(0, (vh - rect.top) / (vh * 0.66 + rect.height * 0.5))));
    };
    update();
    window.addEventListener("scroll", update, { passive: true });
    window.addEventListener("resize", update);
    return () => {
      window.removeEventListener("scroll", update);
      window.removeEventListener("resize", update);
    };
  }, []);

  const lit = Math.round(progress * words.length);

  return (
    <section className="bg-[#f6f0de] px-4 py-24 font-['Geist',ui-sans-serif,system-ui,sans-serif] text-[#0f1712] antialiased md:px-8 md:py-36">
      <div className="mx-auto grid max-w-7xl gap-10 md:grid-cols-12">
        <div className="md:col-span-3">
          <img src={image} alt={imageAlt} className="h-20 w-20 rounded-full object-cover md:h-36 md:w-36" />
        </div>
        <div className="md:col-span-9">
          <p ref={ref} className="font-['Newsreader',Georgia,serif] text-[clamp(1.875rem,3.3vw,3.25rem)] leading-[1.15]" aria-label={statement}>
            {words.map((word, i) => (
              <span key={i} aria-hidden className={`transition-colors duration-300 ${i < lit ? "text-[#0f1712]" : "text-[#0f1712]/20"}`}>
                {word}{" "}
              </span>
            ))}
          </p>
          {link && (
            <a href={link.href} className="mt-10 inline-flex items-center gap-2 border-b border-[#0f1712]/30 pb-1 text-sm font-medium transition-colors hover:border-[#0f1712]">
              {link.label} →
            </a>
          )}
        </div>
      </div>
    </section>
  );
}

How to use it

  1. Make sure your Next.js or React project has Tailwind CSS set up (v3 or v4 both work).
  2. Create components/ScrollWordFillStatement.tsx and paste the code.
  3. Import it into a page and replace the sample text and images with your own.
Krishi – Agriculture & Farm Website Template

From the full template

Krishi$79

Every page, Sanity CMS and SEO already set up. This section is one of 5 you can try free.

Get the full template Get the full template Live preview Live preview
Share
Category
Animation
Template
Krishi
Dependencies
None, just React
Works with
Next.js, React, Tailwind CSS v3 & v4
Added
Oct 29, 2026

More from Krishi

See the full template
Alternating Feature Rows
Feature

Alternating Feature Rows

Bento Photo Tiles
Gallery

Bento Photo Tiles

Dot Timeline
Feature

Dot Timeline

Manifesto with Cycling Keywords
Feature

Manifesto with Cycling Keywords

More animation

View all
Curved 3D Carousel
Carousel

Curved 3D Carousel

Events Agenda with Hover Preview
Feature

Events Agenda with Hover Preview

Facilities Hover Reveal Grid
Feature

Facilities Hover Reveal Grid

Ready for a faster site that's easier to edit?

Book a free 30-minute call. We'll review your current site and send a fixed-price plan. No pressure, no pitch.

Book Free Call Book Free Call No commitment required

Fast Next.js + Sanity websites, built for you or ready to launch with our templates.

Book a Free Call Book a Free Call
Services
  • Web Design
  • UI/UX Design
  • Framer Dev
  • Webflow Dev
  • Custom Dev
  • Sanity CMS
Resources
  • Templates
  • Pricing
  • License
  • Components
  • Case Studies
Company
  • About Us
  • Contact
  • Privacy Policy
© 2026 rayso.studio — All rights reservedDesigned & built in-house Remote-first agency
Let's TalkLet's Talk