← Component library

Expanding File Tree

Free

Nested project folders open level by level as the file tree scrolls to the active route.

Type
File navigation
Category
Product UI & Devices
Appearance
Minimal, Light UI
Editorial role
UI walkthrough
Motion
Expand, Scroll
Duration
1.56 s · 25 fps
Source film
Build it your way with Base44. · Base44

Customize

Use this component

npx shadcn add @betterframes/file-tree-cascade

This Canvas module needs no npm packages. The usage example includes your edits.

Download .mjsDownload preview
import { draw } from './file-tree-cascade.mjs';

// On each frame, pass this clip’s elapsed time in seconds.
// Coordinates use a 640 × 360 drawing area.
export function render(ctx, seconds) {
  ctx.save();
  ctx.scale(ctx.canvas.width / 640, ctx.canvas.height / 360);
  ctx.clearRect(0, 0, 640, 360);
  draw(ctx, seconds, {});
  ctx.restore();
}
Component source