Collage Board
Drag torn-paper pieces, stickers and tape around a board; the last piece you touch comes to the front.
AI prompt
Mixed-media collage poster of a city at night, layered torn paper pieces in deep blue, cream and orange, a cut-out halftone moon photograph pasted top right, strips of washi tape holding the corners, a hand-drawn star sticker, rough torn edges with white paper fibres, soft drop shadows between layers, off-white board, slight rotation of every piece, balanced asymmetric composition, tactile scrapbook look. Negative: perfect digital edges, uniform spacing, glossy gradients, photorealism, text, clutter at the margins.About this pattern
Definition
A collage assembles separate cut or torn pieces, such as paper, photos, stickers and tape, into one composition. Overlap, rotation and uneven edges are what make it look handmade.
When to use it
- Gives posters, covers and mood boards a tactile, scrapbook feel.
- Vary scale and rotation; overlap pieces and let tape or shadows connect them.
- In prompts, list the materials, their colours and where they overlap.
What the controls do
- Drag any piece; the dragged piece rises above the others; Shuffle scatters them.
Motion & timing
- Pieces lift with a stronger shadow while dragged (120ms); Shuffle moves them over 400ms.
- Reduced motion: Shuffle moves them instantly.
Tips & variations
- Pieces are draggable with mouse or touch; keyboard users can move a focused piece with the arrow keys.
- Keep pieces away from the edge so none are cropped awkwardly.
Code of this live preview
<div class="bx"><div class="board" id="bd"></div><button id="sh" type="button">Shuffle</button></div>:root{--bg:#F1F1EF;--surface:#fff;--surface-2:#F7F7F5;--line:#E0E0DC;--text:#171717;--muted:#6f6f6f;--accent:#171717;--accent-ink:#fff;--danger:#d92d20}
*{box-sizing:border-box;margin:0}
.bx{width:min(300px,100%);display:grid;gap:8px;justify-items:center}
.board{position:relative;width:100%;height:160px;border-radius:12px;background:#f1ead9;overflow:hidden;touch-action:none}
.pc{position:absolute;left:var(--x);top:var(--y);transform:rotate(var(--r));cursor:grab;filter:drop-shadow(0 2px 3px rgba(40,30,10,.3));transition:left .4s,top .4s,filter .12s;border:0;padding:0;background:var(--c)}
.pc.drag{cursor:grabbing;filter:drop-shadow(0 8px 8px rgba(40,30,10,.38));transition:filter .12s}
.pc:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.p1{width:110px;height:70px;clip-path:polygon(0 8%,12% 0,40% 6%,70% 0,100% 10%,96% 50%,100% 90%,60% 100%,30% 94%,4% 100%,0 60%)}
.p2{width:80px;height:80px;border-radius:50%;background:radial-gradient(circle,#f6f1dc 0 30%,#d9d2b8 31% 34%,#f6f1dc 35% 60%,#d9d2b8 61%)}
.p3{width:70px;height:48px;clip-path:polygon(4% 0,100% 8%,92% 100%,0 90%)}
.p4{width:60px;height:60px;clip-path:polygon(50% 0,62% 36%,100% 38%,70% 60%,80% 100%,50% 76%,20% 100%,30% 60%,0 38%,38% 36%)}
.p5{width:56px;height:16px;opacity:.85}
@media (prefers-reduced-motion:reduce){.pc{transition:none}}const bd=document.getElementById('bd'),P=[['p1','#1f3b73',14,-6],['p2','#f6f1dc',190,10],['p3','#f08a3c',80,70],['p4','#ffcf3f',30,86],['p5','#e8d89a',120,6]],els=[];let z=1;
P.forEach(([c,col,x,y],i)=>{const b=document.createElement('button');b.type='button';b.className='pc '+c;b.setAttribute('aria-label','Collage piece '+(i+1)+', drag or use arrow keys');b.style.setProperty('--c',col);b.style.setProperty('--x',x+'px');b.style.setProperty('--y',y+'px');b.style.setProperty('--r',((i*37)%24-12)+'deg');b.style.zIndex=i;if(c==='p2')b.style.background='';bd.append(b);els.push(b);
let sx,sy,ox,oy,dr=false;const pos=()=>[parseFloat(b.style.getPropertyValue('--x')),parseFloat(b.style.getPropertyValue('--y'))];
const put=(x,y)=>{b.style.setProperty('--x',Math.max(-10,Math.min(bd.clientWidth-30,x))+'px');b.style.setProperty('--y',Math.max(-10,Math.min(bd.clientHeight-20,y))+'px');};
b.addEventListener('pointerdown',e=>{dr=true;b.setPointerCapture(e.pointerId);[ox,oy]=pos();sx=e.clientX;sy=e.clientY;b.style.zIndex=++z;b.classList.add('drag');b.style.transition='filter .12s';});
b.addEventListener('pointermove',e=>{if(dr)put(ox+e.clientX-sx,oy+e.clientY-sy);});
const end=()=>{dr=false;b.classList.remove('drag');b.style.transition='';};b.addEventListener('pointerup',end);b.addEventListener('pointercancel',end);
b.addEventListener('keydown',e=>{const k={ArrowLeft:[-8,0],ArrowRight:[8,0],ArrowUp:[0,-8],ArrowDown:[0,8]}[e.key];if(k){e.preventDefault();const[a,c2]=pos();put(a+k[0],c2+k[1]);b.style.zIndex=++z;}});});
document.getElementById('sh').addEventListener('click',()=>els.forEach(b=>{b.style.setProperty('--x',(Math.random()*(bd.clientWidth-90))+'px');b.style.setProperty('--y',(Math.random()*(bd.clientHeight-70))+'px');b.style.setProperty('--r',(Math.random()*30-15)+'deg');}));One complete HTML file. Save it and open it in a browser.
<!doctype html>
<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Collage Board — demo</title>
<style>
:root{--bg:#F1F1EF;--surface:#fff;--surface-2:#F7F7F5;--line:#E0E0DC;--text:#171717;--muted:#6f6f6f;--accent:#171717;--accent-ink:#fff;--danger:#d92d20}
*{box-sizing:border-box;margin:0}
html,body{height:100%}body{background:var(--bg);color:var(--text);font:15px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',Inter,Roboto,sans-serif;-webkit-font-smoothing:antialiased}.stage{min-height:100%;display:grid;place-items:center;padding:24px}button,input,select,textarea{font-family:inherit}@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
.bx{width:min(300px,100%);display:grid;gap:8px;justify-items:center}
.board{position:relative;width:100%;height:160px;border-radius:12px;background:#f1ead9;overflow:hidden;touch-action:none}
.pc{position:absolute;left:var(--x);top:var(--y);transform:rotate(var(--r));cursor:grab;filter:drop-shadow(0 2px 3px rgba(40,30,10,.3));transition:left .4s,top .4s,filter .12s;border:0;padding:0;background:var(--c)}
.pc.drag{cursor:grabbing;filter:drop-shadow(0 8px 8px rgba(40,30,10,.38));transition:filter .12s}
.pc:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.p1{width:110px;height:70px;clip-path:polygon(0 8%,12% 0,40% 6%,70% 0,100% 10%,96% 50%,100% 90%,60% 100%,30% 94%,4% 100%,0 60%)}
.p2{width:80px;height:80px;border-radius:50%;background:radial-gradient(circle,#f6f1dc 0 30%,#d9d2b8 31% 34%,#f6f1dc 35% 60%,#d9d2b8 61%)}
.p3{width:70px;height:48px;clip-path:polygon(4% 0,100% 8%,92% 100%,0 90%)}
.p4{width:60px;height:60px;clip-path:polygon(50% 0,62% 36%,100% 38%,70% 60%,80% 100%,50% 76%,20% 100%,30% 60%,0 38%,38% 36%)}
.p5{width:56px;height:16px;opacity:.85}
@media (prefers-reduced-motion:reduce){.pc{transition:none}}
</style></head>
<body><div class="stage">
<div class="bx"><div class="board" id="bd"></div><button id="sh" type="button">Shuffle</button></div>
</div>
<script>
const bd=document.getElementById('bd'),P=[['p1','#1f3b73',14,-6],['p2','#f6f1dc',190,10],['p3','#f08a3c',80,70],['p4','#ffcf3f',30,86],['p5','#e8d89a',120,6]],els=[];let z=1;
P.forEach(([c,col,x,y],i)=>{const b=document.createElement('button');b.type='button';b.className='pc '+c;b.setAttribute('aria-label','Collage piece '+(i+1)+', drag or use arrow keys');b.style.setProperty('--c',col);b.style.setProperty('--x',x+'px');b.style.setProperty('--y',y+'px');b.style.setProperty('--r',((i*37)%24-12)+'deg');b.style.zIndex=i;if(c==='p2')b.style.background='';bd.append(b);els.push(b);
let sx,sy,ox,oy,dr=false;const pos=()=>[parseFloat(b.style.getPropertyValue('--x')),parseFloat(b.style.getPropertyValue('--y'))];
const put=(x,y)=>{b.style.setProperty('--x',Math.max(-10,Math.min(bd.clientWidth-30,x))+'px');b.style.setProperty('--y',Math.max(-10,Math.min(bd.clientHeight-20,y))+'px');};
b.addEventListener('pointerdown',e=>{dr=true;b.setPointerCapture(e.pointerId);[ox,oy]=pos();sx=e.clientX;sy=e.clientY;b.style.zIndex=++z;b.classList.add('drag');b.style.transition='filter .12s';});
b.addEventListener('pointermove',e=>{if(dr)put(ox+e.clientX-sx,oy+e.clientY-sy);});
const end=()=>{dr=false;b.classList.remove('drag');b.style.transition='';};b.addEventListener('pointerup',end);b.addEventListener('pointercancel',end);
b.addEventListener('keydown',e=>{const k={ArrowLeft:[-8,0],ArrowRight:[8,0],ArrowUp:[0,-8],ArrowDown:[0,8]}[e.key];if(k){e.preventDefault();const[a,c2]=pos();put(a+k[0],c2+k[1]);b.style.zIndex=++z;}});});
document.getElementById('sh').addEventListener('click',()=>els.forEach(b=>{b.style.setProperty('--x',(Math.random()*(bd.clientWidth-90))+'px');b.style.setProperty('--y',(Math.random()*(bd.clientHeight-70))+'px');b.style.setProperty('--r',(Math.random()*30-15)+'deg');}));
</script>
</body></html>