Rendyn

Component library

189 components

Interaction

Scroll Based Velocity

Scroll Velocity rows combine a base velocity with optional scroll reactivity.

Interactive exampleReact Tailwind CSS

Practical React example

Use a decorative moving text row that responds to scrolling without replacing normal document flow.

Before you copy and paste

Match the imported component’s client or server rendering boundary before using the example. Copy components/magicui/scroll-based-velocity.tsx and its returned support files from the Code tab; preserve the project-relative paths.

Listed package dependencies: motion.

Use the Code tab for the component files and installation instructions, then adapt the imports in this example to your project.

Use a decorative moving text row that responds to scrolling without replacing normal document flow

// Usage adapted from Magic UI's pinned MIT source.
// Copyright (c) Magic UI. See ./LICENSES.md.
'use client';

import {
  ScrollVelocityContainer,
  ScrollVelocityRow,
} from "@/components/magicui/scroll-based-velocity"

export function ComponentExample() {
  return (
    <ScrollVelocityContainer className="text-4xl font-bold md:text-7xl">
  <ScrollVelocityRow baseVelocity={20} direction={1}>
    Velocity Scroll
  </ScrollVelocityRow>
  <ScrollVelocityRow baseVelocity={20} direction={-1}>
    Velocity Scroll
  </ScrollVelocityRow>
</ScrollVelocityContainer>
  );
}

Usage example adapted from Magic UI's pinned MIT source. Retain the source licence notices when copying.

Keep the row’s content supplementary and tune baseVelocity to a readable pace. Make the main page usable without the reactive treatment.

Customization

ScrollVelocityRowProps.children
Required; React.ReactNode.
ScrollVelocityRowProps.baseVelocity
Optional; number.
ScrollVelocityRowProps.direction
Optional; 1 | -1.
ScrollVelocityRowProps.scrollReactivity
Optional; boolean.
ScrollVelocityRowImplProps.velocityFactor
Required; MotionValue<number>.

Integration notes

  • Motion tied to scrolling should not communicate essential information.
  • Test reduced motion, nested scrolling and large text before repeating several rows.

Component source: Magic UI documentation . These examples describe the version imported into Rendyn. Upstream APIs may have changed; retain the source licence notices when adapting the code.

Better with your agent

Give your agent taste.

The best way to use Rendyn is through MCP. Let your agent find the right component, compare previews and bring the source into your project.

All components are free. Sign up only to connect MCP.

Connect to MCP