Polaroid & Film Frame
A photo shown in a Polaroid, Instax or 35mm film frame, with a fade slider for the aged look.
AI prompt
Flat lay photograph of a Polaroid instant print lying slightly tilted on a wooden table, a faded sunny beach scene with lifted blacks and warm yellow cast, thick white bottom border with a handwritten caption reading Summer, soft window light, a faint shadow under the print, tiny dust marks, shallow depth of field. Variants: a slimmer Instax card with cleaner colour, and a 35mm film strip with black borders, sprocket holes and frame numbers. Negative: digital sharpness, perfect colour, text errors, hands, heavy borders. Reduced motion: static image.About this pattern
Definition
A frame is part of a photo style. A Polaroid has a thick white bottom border and a slight tilt, an Instax is narrower and cleaner, and a 35mm strip has a black border with sprocket holes. Combined with lifted blacks and warm fade, they tell the viewer when and how the picture was taken.
When to use it
- Polaroid: square image, thick bottom border, handwritten caption, warm faded colour.
- Instax: taller card, thinner borders, cleaner colour.
- 35mm strip: black background, sprocket holes, a frame number, grain.
- Fade lifts the blacks and lowers contrast, the quickest way to say old.
What the controls do
- Three frame types and a Fade slider.
Motion & timing
- Changes are instant.
- Reduced motion: nothing animates.
Tips & variations
- Keep the frame proportions fixed and scale the whole object.
- Do not put text in the photo area; keep it in the caption.
Code of this live preview
<div class="bx"><div class="sc"><div class="fr" id="fr"><div class="ph" id="ph"><u class="sun"></u><u class="sea"></u><u class="sand"></u></div><span id="cp">Summer</span></div></div><div class="pre" id="pre" role="group" aria-label="Frame"><button data-p="0" aria-pressed="true">Polaroid</button><button data-p="1" aria-pressed="false">Instax</button><button data-p="2" aria-pressed="false">35mm strip</button></div><label class="rw">Fade <b id="fv">40%</b><input id="fd" type="range" min="0" max="100" value="40"></label></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}
.pre{display:flex;gap:5px;flex-wrap:wrap}.pre button{height:28px;padding:0 11px;border-radius:99px;border:1px solid var(--line);background:var(--surface);font-size:11px;cursor:pointer}
.pre button[aria-pressed=true]{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.bx{width:min(330px,100%);display:grid;gap:9px}.rw{display:grid;gap:3px;font-size:11.5px;color:var(--muted)}.rw b{color:var(--text);font-weight:600}input[type=range]{width:100%;accent-color:#171717}
.out{font-size:12px;color:var(--muted);line-height:1.4}.out b{color:var(--text)}
button:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.sc{height:170px;border-radius:12px;background:#d9cfbd;display:grid;place-items:center;overflow:hidden}
.fr{background:#fbfaf6;padding:9px 9px 30px;box-shadow:0 8px 18px rgba(0,0,0,.28);transform:rotate(-3deg);position:relative;transition:all .25s}
.ph{width:112px;height:104px;position:relative;overflow:hidden;background:linear-gradient(#8ec6e8,#cde8f2);filter:sepia(var(--se)) saturate(var(--sa)) contrast(var(--co)) brightness(var(--br))}
.ph u{position:absolute;display:block}.sun{width:22px;height:22px;border-radius:50%;background:#fff3b8;right:18px;top:14px}.sea{left:0;right:0;top:58%;bottom:22%;background:#3f88b5}.sand{left:0;right:0;bottom:0;height:24%;background:#e8cf9a}
.fr span{position:absolute;left:0;right:0;bottom:6px;text-align:center;font:italic 14px/1 Georgia,serif;color:#444}
.fr.ix{padding:8px 8px 20px;transform:rotate(2deg)}.fr.ix .ph{width:96px;height:124px}.fr.ix span{bottom:3px;font-size:10px}
.fr.st{background:#141414;padding:14px 8px;transform:rotate(0);border-radius:2px;background-image:radial-gradient(#fbfaf6 0 2px,transparent 2.5px),radial-gradient(#fbfaf6 0 2px,transparent 2.5px);background-size:12px 12px;background-position:0 2px,0 calc(100% - 2px);background-repeat:repeat-x;background-position-y:3px,calc(100% - 3px)}
.fr.st .ph{width:130px;height:90px}.fr.st span{color:#e8b94a;font:10px/1 ui-monospace,Menlo,monospace;bottom:3px;text-align:left;left:10px}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}const K=['','ix','st'],C=['Summer','Instax mini','12 \u25B6 12A'],fr=document.getElementById('fr'),fd=document.getElementById('fd'),ph=document.getElementById('ph'),bs=[...document.querySelectorAll('#pre button')];let p=0;
function up(){const f=fd.value/100;fr.className='fr '+K[p];document.getElementById('cp').textContent=C[p];ph.style.setProperty('--se',(f*.45).toFixed(2));ph.style.setProperty('--sa',(1-f*.25).toFixed(2));ph.style.setProperty('--co',(1-f*.25).toFixed(2));ph.style.setProperty('--br',(1+f*.08).toFixed(2));document.getElementById('fv').textContent=fd.value+'%';bs.forEach(b=>b.setAttribute('aria-pressed',String(+b.dataset.p===p)));}
bs.forEach(b=>b.addEventListener('click',()=>{p=+b.dataset.p;up();}));fd.addEventListener('input',up);up();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>Polaroid & Film Frame — 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}}
.pre{display:flex;gap:5px;flex-wrap:wrap}.pre button{height:28px;padding:0 11px;border-radius:99px;border:1px solid var(--line);background:var(--surface);font-size:11px;cursor:pointer}
.pre button[aria-pressed=true]{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.bx{width:min(330px,100%);display:grid;gap:9px}.rw{display:grid;gap:3px;font-size:11.5px;color:var(--muted)}.rw b{color:var(--text);font-weight:600}input[type=range]{width:100%;accent-color:#171717}
.out{font-size:12px;color:var(--muted);line-height:1.4}.out b{color:var(--text)}
button:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.sc{height:170px;border-radius:12px;background:#d9cfbd;display:grid;place-items:center;overflow:hidden}
.fr{background:#fbfaf6;padding:9px 9px 30px;box-shadow:0 8px 18px rgba(0,0,0,.28);transform:rotate(-3deg);position:relative;transition:all .25s}
.ph{width:112px;height:104px;position:relative;overflow:hidden;background:linear-gradient(#8ec6e8,#cde8f2);filter:sepia(var(--se)) saturate(var(--sa)) contrast(var(--co)) brightness(var(--br))}
.ph u{position:absolute;display:block}.sun{width:22px;height:22px;border-radius:50%;background:#fff3b8;right:18px;top:14px}.sea{left:0;right:0;top:58%;bottom:22%;background:#3f88b5}.sand{left:0;right:0;bottom:0;height:24%;background:#e8cf9a}
.fr span{position:absolute;left:0;right:0;bottom:6px;text-align:center;font:italic 14px/1 Georgia,serif;color:#444}
.fr.ix{padding:8px 8px 20px;transform:rotate(2deg)}.fr.ix .ph{width:96px;height:124px}.fr.ix span{bottom:3px;font-size:10px}
.fr.st{background:#141414;padding:14px 8px;transform:rotate(0);border-radius:2px;background-image:radial-gradient(#fbfaf6 0 2px,transparent 2.5px),radial-gradient(#fbfaf6 0 2px,transparent 2.5px);background-size:12px 12px;background-position:0 2px,0 calc(100% - 2px);background-repeat:repeat-x;background-position-y:3px,calc(100% - 3px)}
.fr.st .ph{width:130px;height:90px}.fr.st span{color:#e8b94a;font:10px/1 ui-monospace,Menlo,monospace;bottom:3px;text-align:left;left:10px}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
</style></head>
<body><div class="stage">
<div class="bx"><div class="sc"><div class="fr" id="fr"><div class="ph" id="ph"><u class="sun"></u><u class="sea"></u><u class="sand"></u></div><span id="cp">Summer</span></div></div><div class="pre" id="pre" role="group" aria-label="Frame"><button data-p="0" aria-pressed="true">Polaroid</button><button data-p="1" aria-pressed="false">Instax</button><button data-p="2" aria-pressed="false">35mm strip</button></div><label class="rw">Fade <b id="fv">40%</b><input id="fd" type="range" min="0" max="100" value="40"></label></div>
</div>
<script>
const K=['','ix','st'],C=['Summer','Instax mini','12 \u25B6 12A'],fr=document.getElementById('fr'),fd=document.getElementById('fd'),ph=document.getElementById('ph'),bs=[...document.querySelectorAll('#pre button')];let p=0;
function up(){const f=fd.value/100;fr.className='fr '+K[p];document.getElementById('cp').textContent=C[p];ph.style.setProperty('--se',(f*.45).toFixed(2));ph.style.setProperty('--sa',(1-f*.25).toFixed(2));ph.style.setProperty('--co',(1-f*.25).toFixed(2));ph.style.setProperty('--br',(1+f*.08).toFixed(2));document.getElementById('fv').textContent=fd.value+'%';bs.forEach(b=>b.setAttribute('aria-pressed',String(+b.dataset.p===p)));}
bs.forEach(b=>b.addEventListener('click',()=>{p=+b.dataset.p;up();}));fd.addEventListener('input',up);up();
</script>
</body></html>