Skip to content
TheChatArchiveThe Chat Archive
Claudeclaude-3-7-sonnet-20250219· AnthropicHugging Face LMArena Human Preference 140K

instead of the ping animation, can you do like a scroll animation, so instead of the…

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with Mistralmistral-medium-2505’s answer.
  1. User

    instead of the ping animation, can you do like a scroll animation, so instead of the white dots pinging, its doing this scroll animation from top to bottom

  2. Claude Assistant

    Absolutely! Here's a more realistic mouse scroll animation where the dot moves from top to bottom inside the mouse outline:

    <div className="absolute bottom-6 z-10">
      <div className="w-6 h-10 rounded-full border-2 border-black dark:border-white flex items-start justify-center p-1 relative">
        <div className="w-1 h-1 bg-black dark:bg-white rounded-full absolute animate-scrollDown" />
      </div>
    </div>
    

    You'll need to add a custom animation to your Tailwind config. In your tailwind.config.js file, add this to the extend.animation section:

    // In tailwind.config.js
    module.exports = {
      theme: {
        extend: {
          animation: {
            scrollDown: 'scrollDown 1.5s ease-in-out infinite',
          },
          keyframes: {
            scrollDown: {
              '0%': { top: '15%', opacity: '1' },
              '90%': { top: '75%', opacity: '0' },
              '100%': { top: '15%', opacity: '0' },
            },
          },
        },
      },
      // rest of your config
    };
    

    This creates a smooth animation where the dot:

    1. Starts at the top of the mouse
    2. Smoothly moves down
    3. Fades out at the bottom
    4. Resets to the top (invisibly)
    5. Repeats infinitely

    The animation timing (1.5s) gives it a natural scrolling feel rather than being too fast or too slow.

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.