@canvas-ui/particle-scroll-vanillaloading the log…
NO RECENT BUILD
Pipeline
  1. Docsusage, props, keywords
  2. Demosrc/demo.tsx
  3. Buildshadcn add → vite
  4. Capturelight, dark, motion
  5. IndexBM25 + vectors

Public log. Prompts, raw model errors and costs stay on the admin side.

Log
Demo source
src/demo.tsx · from an earlier run
import { useEffect, useRef } from 'react';import { createParticleScroll, supportsHtmlInCanvas } from '@/components/canvasui/ParticleScrollVanilla';import { Button } from '@/components/ui/button';export default function ParticleScrollDemo() {  const sourceRef = useRef<HTMLCanvasElement>(null);  const contentRef = useRef<HTMLDivElement>(null);  const outputRef = useRef<HTMLCanvasElement>(null);  useEffect(() => {    const source = sourceRef.current;    const content = contentRef.current;    const output = outputRef.current;    if (!source || !content || !output || !supportsHtmlInCanvas()) return;    const instance = createParticleScroll({ source, content, output });    return () => instance?.destroy();  }, []);  return (    <section className='relative h-[400px] w-full max-w-xl overflow-hidden rounded-xl border bg-background'>      <canvas ref={sourceRef} className='absolute inset-0 h-full w-full'>        <div ref={contentRef} className='h-full overflow-y-auto bg-background p-8'>          <p className='text-muted-foreground'>            We took the coast road because the highway was closed for repairs. Nobody minded the detour.          </p>          <p className='mt-4 text-muted-foreground'>            The water was calm in the morning and the cafe by the harbor opened early. We ordered coffee and watched the boats.          </p>          <p className='mt-4 text-muted-foreground'>            By noon the wind picked up and we moved inside. Someone had left a stack of old maps on the table.          </p>          <p className='mt-4 text-muted-foreground'>            Late in the afternoon we reached the lighthouse, climbed the stairs, and stayed until the sun dropped.          </p>          <div className='mt-6'>            <Button>Read the next chapter</Button>          </div>        </div>      </canvas>      <canvas ref={outputRef} aria-hidden='true' className='pointer-events-none absolute inset-0 h-full w-full' />    </section>  );}