Selfie-to-try-on avatar

셀피 기반 가상 착용 아바타

Turn a selfie into a full-body preview for trying on clothing online.

···
html
<div class="vt"><div class="vt-panel"><span>SELFIE → AVATAR</span><div class="vt-person"><i class="vt-head"></i><i class="vt-body"></i><i class="vt-top"></i></div></div><div class="vt-side"><strong>TRY ON</strong><div class="vt-swatch"><i></i><i></i></div><b id="vt-label">SELFIE ONLY</b><button type="button">BUILD PREVIEW →</button><span>SCHEMATIC PREVIEW</span></div></div>
css
.vt{width:min(88%,420px);display:flex;gap:clamp(7px,2vmin,15px);font:700 clamp(10px,1vw,14px)/1.2 sans-serif}.vt-panel{width:58%;height:clamp(140px,34vmin,270px);border:2px solid var(--fg);background:var(--surface);padding:clamp(6px,1.5vmin,12px);position:relative;overflow:hidden}.vt-panel>span{color:var(--muted)}.vt-person{position:absolute;left:50%;bottom:0;transform:translateX(-50%);width:48%;height:78%}.vt-head{position:absolute;top:0;left:36%;width:28%;aspect-ratio:1;border-radius:50%;background:var(--accent-3)}.vt-body{position:absolute;top:25%;left:22%;width:56%;height:75%;border-radius:24% 24% 0 0;background:var(--line)}.vt-top{position:absolute;top:25%;left:19%;width:62%;height:43%;clip-path:polygon(20% 0,80% 0,100% 28%,82% 45%,76% 100%,24% 100%,18% 45%,0 28%);background:var(--muted);transition:.5s}.vt.on .vt-top{background:linear-gradient(130deg,var(--accent),var(--accent-2))}.vt-side{flex:1;display:flex;flex-direction:column;gap:clamp(5px,1.2vmin,10px);min-width:0}.vt-side strong{font-size:clamp(14px,1.5vw,20px)}.vt-swatch{display:flex;gap:5px}.vt-swatch i{width:clamp(17px,5vmin,30px);aspect-ratio:1;background:var(--muted)}.vt-swatch i+ i{background:var(--accent)}.vt-side b{color:var(--accent);font-size:clamp(12px,1.5vw,20px)}.vt button{border:0;background:var(--fg);color:var(--bg);padding:clamp(6px,1.5vmin,12px);font:inherit;text-align:left;cursor:pointer}.vt-side span{color:var(--muted)}
js
const root=document.querySelector('.vt'),label=document.querySelector('#vt-label'),button=root.querySelector('button');function toggle(){const on=root.classList.toggle('on');label.textContent=on?'AVATAR READY':'SELFIE ONLY';button.textContent=on?'SHOW INPUT →':'BUILD PREVIEW →'}button.addEventListener('click',toggle);setTimeout(toggle,850);setInterval(toggle,4200);

Selfie-based virtual try-on prepares a full-body shopping image from a selfie and the shopper's usual clothing size. In December 2025, Google introduced this option for U.S. shoppers who do not have a full-body photo.

The demo schematically moves from selfie to try-on image; it does not upload photos or generate imagery. The preview cannot guarantee real-world fit, so pair it with measurements and return information.

When to use

Use it when a shopper needs a try-on preview without an existing full-body image.

Open as page ↗