Infinite Canvas

Mood track «Pamgaea» · Kevin MacLeod incompetech.com · licensed under Creative Commons BY 4.0
Example image of the style Infinite Canvas
Preview built in HTML and CSS in this style

Tela infinita · Lienzo infinito · Lavagna infinita · Zoomable canvas · Pan and zoom · Whiteboard UI

Instead of a scrolling page there is a borderless surface you pan by dragging and zoom in and out of, like collaborative whiteboards. Notes, frames and arrows live in an open space where teammates' cursors also move in real time.

Era
2016 – today
Use
Mainstream
Domain
Web / UIMotion
Mood
rationalplayfulimmersive
Explore

Live demo

View code
<main class="vp">
  <div class="world">
    <h2 style="left:540px;top:300px">Brainstorm Q4</h2>
    <div class="note" style="left:540px;top:350px;--c:#FFCD29;--r:-3deg">Nuovo onboarding più corto</div>
    <div class="note" style="left:650px;top:368px;--c:#14AE5C;--r:2deg">Test con 5 utenti</div>
    <div class="frame" style="left:790px;top:330px"><i>Schermata 1</i><b></b><b class="s"></b><u></u></div>
    <svg class="link" style="left:740px;top:380px" width="60" height="30"><path d="M2 20 C 20 0, 40 0, 56 12" fill="none" stroke="#1E1E1E" stroke-width="2" marker-end="url(#a)"/><defs><marker id="a" markerWidth="8" markerHeight="8" refX="5" refY="4" orient="auto"><path d="M0 0L6 4L0 8z" fill="#1E1E1E"/></marker></defs></svg>
    <div class="note" style="left:380px;top:470px;--c:#F24822;--r:4deg;color:#fff">Priorità!</div>
    <div class="note" style="left:980px;top:560px;--c:#0D99FF;--r:-2deg;color:#fff">Idee per il lancio</div>
    <div class="note" style="left:300px;top:230px;--c:#FFCD29;--r:3deg">Ricerca</div>
    <div class="cur" style="--n:'Anna';--c:#F24822"></div>
  </div>
  <div class="cur me" style="--n:'Tu';--c:#0D99FF"></div>
  <nav class="tools"><i class="on">▲</i><i>□</i><i>✎</i><i>T</i><span>Zoom</span></nav>
  <div class="mini"><i></i></div>
</main>
body{margin:0;height:100vh;overflow:hidden;background:#F5F5F2;font-family:Inter,sans-serif;color:#1E1E1E}
.vp{position:relative;height:100vh;overflow:hidden}
.world{position:absolute;left:50%;top:50%;width:1400px;height:900px;margin:-450px 0 0 -700px;transform-origin:700px 450px;background:radial-gradient(#C9C9C2 1.2px,transparent 1.4px) 0 0/22px 22px;transform:translate(-40px,60px) scale(.9)}
.world>*{position:absolute}
h2{margin:0;font:800 22px 'Inter Tight',sans-serif}
.note{width:96px;min-height:80px;padding:10px;box-sizing:border-box;background:var(--c);transform:rotate(var(--r));font:600 19px/1.05 Caveat,cursive;box-shadow:0 6px 14px -6px rgba(0,0,0,.35)}
.frame{width:170px;height:118px;background:#fff;border:1.5px solid #0D99FF;border-radius:4px;padding:22px 12px 0;box-sizing:border-box}
.frame i{position:absolute;top:-18px;left:0;font:500 11px Inter,sans-serif;font-style:normal;color:#0D99FF}
.frame b{display:block;height:10px;width:70%;background:#1E1E1E;border-radius:3px;margin-bottom:8px}
.frame b.s{width:45%;background:#D5D5CE}
.frame u{display:block;width:60px;height:22px;border-radius:6px;background:#0D99FF;margin-top:14px}
.cur{width:0;height:0;border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:18px solid var(--c);transform:rotate(-28deg);left:720px;top:470px}
.cur::after{content:var(--n);position:absolute;left:6px;top:14px;background:var(--c);color:#fff;font:600 11px Inter,sans-serif;padding:2px 7px;border-radius:9px;transform:rotate(28deg);white-space:nowrap}
.cur.me{position:absolute;left:62%;top:64%}
.tools{position:absolute;bottom:14px;left:50%;transform:translateX(-50%);display:flex;gap:4px;align-items:center;background:#fff;border-radius:12px;padding:6px;box-shadow:0 8px 24px -8px rgba(0,0,0,.3)}
.tools i{width:28px;height:28px;display:grid;place-items:center;border-radius:8px;font-style:normal;font-size:13px}
.tools i.on{background:#0D99FF;color:#fff}
.tools span{font:600 11px 'Inter Tight',sans-serif;padding:0 8px;border-left:1px solid #E5E5E0}
.mini{position:absolute;right:12px;top:12px;width:84px;height:54px;background:#fff;border-radius:8px;box-shadow:0 4px 14px -6px rgba(0,0,0,.3);overflow:hidden}
.mini i{position:absolute;left:30px;top:18px;width:26px;height:16px;border:1.5px solid #0D99FF;border-radius:3px}
@media (prefers-reduced-motion:no-preference){
  .world{animation:cam 12s cubic-bezier(.65,0,.35,1) infinite}
  .mini i{animation:mini 12s cubic-bezier(.65,0,.35,1) infinite}
  .world .cur{animation:anna 6s ease-in-out infinite}
  .cur.me{animation:me 12s cubic-bezier(.65,0,.35,1) infinite}
  @keyframes cam{0%,8%{transform:translate(-40px,60px) scale(.9)}28%,40%{transform:translate(0,10px) scale(.5)}60%,72%{transform:translate(-220px,80px) scale(1.35)}92%,100%{transform:translate(-40px,60px) scale(.9)}}
  @keyframes mini{0%,8%{transform:none}28%,40%{transform:scale(1.8)}60%,72%{transform:translate(8px,-2px) scale(.65)}92%,100%{transform:none}}
  @keyframes anna{0%,100%{left:720px;top:470px}35%{left:620px;top:420px}70%{left:860px;top:440px}}
  @keyframes me{0%,8%{left:62%;top:64%}28%,40%{left:48%;top:46%}60%,72%{left:70%;top:52%}92%,100%{left:62%;top:64%}}
}

Characteristics

  • Dot grid that moves with the view
  • Drag to pan and wheel or pinch to zoom
  • Zoom anchored at the pointer
  • Named cursors of other users
  • Toolbar and minimap stay fixed

Palette

Click a swatch to copy it

Typography

Headings · Inter Tight Infinite Canvas

Body · Inter Instead of a scrolling page there is a borderless surface you pan by dragging and zoom in and out of, like collaborative whiteboards. Notes, frames and arrows live in an open space where teammates' cursors also move in real time.

Motion

Easing
inerzia con attrito (velocità × 0.9 per frame) per il pan; cubic-bezier(0.22, 1, 0.36, 1) per gli zoom animati
Typical duration
continuo durante il gesto; zoom a un elemento 300–600 ms
Techniques
transform translate + scale su un unico contenitore, wheel con ctrlKey per il pinch su trackpad, pointer events e setPointerCapture, Canvas 2D o WebGL per molti oggetti, tldraw, background-position della griglia sincronizzato con la vista

Accessibility (reduced motion)

Keep pan and zoom direct with no inertia, and jump straight to targets instead of animated fly-to.

Prompt for your agent

Copy and paste into your prompt to have an agent or image generator reproduce this style.

For web pages and UI

Design the web page or interface in this style: Infinite Canvas (Tela infinita, Lienzo infinito).
Instead of a scrolling page there is a borderless surface you pan by dragging and zoom in and out of, like collaborative whiteboards. Notes, frames and arrows live in an open space where teammates' cursors also move in real time.
Characteristics: Dot grid that moves with the view, Drag to pan and wheel or pinch to zoom, Zoom anchored at the pointer, Named cursors of other users, Toolbar and minimap stay fixed.
Palette: #F5F5F2, #1E1E1E, #0D99FF, #FFCD29, #14AE5C, #F24822.
Typography: headings in Inter Tight, body text in Inter (Google Fonts or equivalents).
Mood: rational, playful, immersive.
Motion: easing inerzia con attrito (velocità × 0.9 per frame) per il pan; cubic-bezier(0.22, 1, 0.36, 1) per gli zoom animati, typical duration continuo durante il gesto; zoom a un elemento 300–600 ms; techniques: transform translate + scale su un unico contenitore, wheel con ctrlKey per il pinch su trackpad, pointer events e setPointerCapture, Canvas 2D o WebGL per molti oggetti, tldraw, background-position della griglia sincronizzato con la vista.
With prefers-reduced-motion: Keep pan and zoom direct with no inertia, and jump straight to targets instead of animated fly-to.
References: Figma e FigJam, Miro, tldraw, Excalidraw (open source).

Relations

Derives from: Zooming UIZooming UISimilar to: Spatial UISpatial UISimilar to: Physics DragPhysics DragContrasts with: Scroll SnapScroll SnapContrasts with: ScrollytellingScrollytellingInfinite Canvas
Derives fromSimilar toContrasts withSee in the graph →

References

  • Figma e FigJam
  • Miro
  • tldraw
  • Excalidraw (open source)