Julien Thibeaut

Sliding Number

Text 51

About

A component that slides numbers.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Sliding Number to your project and fits it to your theme.

Code

How Sliding Number is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

'use client';
import { SlidingNumber } from '@/components/ui/sliding-number';
import { useState } from 'react';

export function SlidingNumberWithSlider() {
  const [value, setValue] = useState(100);
  const [width, setWidth] = useState(0);

  return (
    <div className='flex flex-col items-start gap-0'>
      <div className='flex items-center gap-2 font-mono'>Current ARR:</div>
      <div className='inline-flex items-center gap-1 font-mono leading-none'>
        $<SlidingNumber value={value} />
      </div>
      <input
        type='range'
        value={value}
        min={500}
        max={100000}
        step={50}
        onChange={(e) => setValue(+e.target.value)}
        className='mt-2 accent-indigo-950'
      />
    </div>
  );
}

Dependencies

More by Julien Thibeaut

View all
  • Dock

    Dock

    3.1K
  • Text Effect

    Text Effect

    1.6K
  • Infinite Slider

    Infinite Slider

    1.5K
  • Text Shimmer

    Text Shimmer

    1.3K
  • Text Scramble

    Text Scramble

    1.1K
  • Progressive blur

    Progressive blur

    683
  • Glow Effect

    Glow Effect

    608
  • Tailwind CSS Background Snippet

    Tailwind CSS Background Snippet

    533

More in Text

View all
  • Vertical Cut Reveal Characters

    Vertical Cut Reveal Characters

    103
  • Motion Blur Text

    Motion Blur Text

    35
  • Rainbow Text Effect

    Rainbow Text Effect

    47
  • Text Reveal

    Text Reveal

    317
  • Blur Reveal

    Blur Reveal

    297
  • NeonRGBTextEffect

    NeonRGBTextEffect

    144
  • Glow

    Glow

    40
  • Apple Hello Effect

    Apple Hello Effect

    606