Support
All support for the Relume is provided through Slack. To get assistance, please join our Slack community and send a preview link of your Webflow project along with a description of your problem to one of our experts. We will review your issue and guide you through a solution.

For account-related issues, please contact support@relume.io.
We're performing some maintenance. If you're experiencing any issues please reach out via Slack
Go to Slack
Your payment method has expired. Update your billing details to regain access to premium features.
Manage Billing
Now open!
Vote on new
Relume components
Vote on what components you'd like to see added to our roadmap next month.
Get started

Banner 14

"use client";

import { useScroll, useTransform, motion } from "framer-motion";
import { useRef } from "react";

type Props = {
  headings: string[];
};

export type Banner14Props = React.ComponentPropsWithoutRef<"section"> & Partial<Props>;

export const Banner14 = (props: Banner14Props) => {
  const { headings } = {
    ...Banner14Defaults,
    ...props,
  };

  const sectionRef = useRef<HTMLDivElement>(null);
  const { scrollYProgress } = useScroll({
    target: sectionRef,
    offset: ["start end", "end start"],
  });

  const headingTranslate = useTransform(scrollYProgress, [0, 1], ["-50%", "0%"]);

  return (
    <section id="relume" ref={sectionRef} className="overflow-hidden">
      <div className="flex whitespace-nowrap border-b border-t border-border-primary">
        <div className="flex w-full items-center overflow-hidden whitespace-nowrap py-4">
          {Array(2)
            .fill(0)
            .map((_, index) => (
              <motion.div
                key={index}
                className="ml-12 grid auto-cols-max grid-flow-col grid-cols-[max-content] gap-12"
                style={{ x: headingTranslate }}
              >
                {headings.map((heading, headingIndex) => {
                  return (
                    <h1 key={headingIndex} className="text-md font-bold md:text-lg">
                      {heading}
                    </h1>
                  );
                })}
              </motion.div>
            ))}
        </div>
      </div>
    </section>
  );
};

export const Banner14Defaults: Props = {
  headings: [
    "Relume Library",
    "Relume Library",
    "Relume Library",
    "Relume Library",
    "Relume Library",
  ],
};
You need to be logged in to view the code.
Get the code
Upgrade your plan to view the code.
Upgrade
Details
Category
Banners
Last updated
April 1, 2025
React version
18
Tailwind version
3.4
Need help?
For installation guidelines and API information, visit the docs.
Examples
No items found.