| <!DOCTYPE html> |
| <html lang="en"> |
| <head> |
| <meta charset="UTF-8"> |
| <meta name="viewport" content="width=1080, initial-scale=1.0"> |
| <title>Mobile UI - Element Animations</title> |
| <style> |
| body { margin: 0; padding: 0; background: transparent; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; } |
| #render-target { |
| width: 1080px; |
| height: 2400px; |
| position: relative; |
| overflow: hidden; |
| background: #FFFFFF; |
| color: #1f1f1f; |
| } |
| |
| |
| .statusbar { |
| height: 120px; |
| padding: 0 36px; |
| display: flex; |
| align-items: center; |
| justify-content: space-between; |
| color: #5f6368; |
| font-size: 42px; |
| box-sizing: border-box; |
| } |
| .status-right { |
| display: flex; |
| align-items: center; |
| gap: 26px; |
| } |
| .dot { width: 12px; height: 12px; background: #9aa0a6; border-radius: 50%; display: inline-block; } |
| .status-icon { width: 46px; height: 46px; } |
| |
| |
| .toolbar { |
| height: 130px; |
| border-top: 1px solid #eee; |
| border-bottom: 1px solid #eee; |
| display: flex; |
| align-items: center; |
| justify-content: space-between; |
| padding: 0 28px; |
| box-sizing: border-box; |
| } |
| .left-actions, .right-actions { |
| display: flex; |
| align-items: center; |
| gap: 36px; |
| } |
| .icon-btn { |
| width: 66px; height: 66px; display: inline-flex; align-items: center; justify-content: center; |
| } |
| .icon { |
| width: 54px; height: 54px; fill: none; stroke: #2b2b2b; stroke-width: 3; |
| } |
| |
| |
| .canvas { |
| position: relative; |
| height: 1240px; |
| background: #f6f7f8; |
| } |
| |
| .band-dark { |
| position: absolute; left: 0; right: 0; top: 210px; height: 170px; background: #25322E; |
| } |
| .band-yellow { |
| position: absolute; left: 0; right: 0; top: 380px; height: 120px; background: #FFF2B5; |
| } |
| |
| |
| .video-frame { |
| position: absolute; |
| left: 60px; |
| right: 60px; |
| top: 430px; |
| height: 520px; |
| border-radius: 22px; |
| overflow: hidden; |
| box-shadow: 0 10px 30px rgba(0,0,0,0.25); |
| } |
| .img-ph { |
| width: 100%; height: 100%; |
| background: #E0E0E0; |
| border: 1px solid #BDBDBD; |
| display: flex; align-items: center; justify-content: center; |
| color: #757575; font-size: 42px; letter-spacing: 0.5px; |
| } |
| |
| .handle { |
| position: absolute; width: 32px; height: 32px; background: #ffffff; |
| border: 2px solid #D0D0D0; border-radius: 50%; |
| } |
| .h-tl { top: -16px; left: -16px; } |
| .h-tr { top: -16px; right: -16px; } |
| .h-bl { bottom: -16px; left: -16px; } |
| .h-br { bottom: -16px; right: -16px; } |
| .h-ml { top: 50%; left: -16px; transform: translateY(-50%); } |
| .h-mr { top: 50%; right: -16px; transform: translateY(-50%); } |
| .h-tm { left: 50%; top: -16px; transform: translateX(-50%); } |
| .h-bm { left: 50%; bottom: -16px; transform: translateX(-50%); } |
| |
| |
| .play-overlay { |
| position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; |
| } |
| .play-circle { |
| width: 120px; height: 120px; |
| background: rgba(0,0,0,0.55); |
| border-radius: 50%; |
| display: flex; align-items: center; justify-content: center; |
| } |
| .play-triangle { |
| width: 0; height: 0; border-left: 42px solid #fff; border-top: 28px solid transparent; border-bottom: 28px solid transparent; margin-left: 8px; |
| } |
| .scrub { |
| position: absolute; left: 28px; right: 28px; bottom: 24px; height: 58px; display: flex; align-items: center; gap: 22px; color: #fff; font-size: 34px; |
| } |
| .scrub .line { |
| flex: 1; height: 6px; background: rgba(255,255,255,0.55); border-radius: 4px; |
| position: relative; |
| } |
| .scrub .progress { |
| position: absolute; left: 0; top: 0; bottom: 0; width: 0%; |
| background: #fff; border-radius: 4px; |
| } |
| |
| |
| .rotate { |
| position: absolute; left: 50%; top: 990px; transform: translateX(-50%); |
| width: 82px; height: 82px; background: #ffffff; border: 2px solid #D9D9D9; border-radius: 50%; |
| display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 14px rgba(0,0,0,0.08); |
| } |
| .rotate svg { width: 46px; height: 46px; stroke: #6b6b6b; stroke-width: 3; fill: none; } |
| |
| |
| .sheet { |
| position: absolute; left: 0; right: 0; bottom: 0; height: 900px; background: #ffffff; |
| border-top-left-radius: 36px; border-top-right-radius: 36px; |
| box-shadow: 0 -12px 32px rgba(0,0,0,0.12); |
| padding: 28px 36px 24px; |
| box-sizing: border-box; |
| } |
| .sheet-header { |
| display: flex; align-items: center; justify-content: space-between; padding: 18px 6px 12px; |
| } |
| .sheet-title { |
| font-size: 52px; font-weight: 700; letter-spacing: 0.3px; |
| } |
| .close-btn { width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; } |
| .close-btn svg { width: 44px; height: 44px; stroke: #222; stroke-width: 3; fill: none; } |
| |
| .checkbox-row { display: flex; align-items: center; gap: 22px; margin: 26px 6px; font-size: 40px; color: #2b2b2b; } |
| .cbx { |
| width: 46px; height: 46px; border: 3px solid #CFCFCF; border-radius: 8px; box-sizing: border-box; background: #fff; |
| } |
| |
| .pill-row { |
| margin-top: 28px; display: flex; gap: 22px; overflow: hidden; flex-wrap: wrap; |
| } |
| .pill { |
| padding: 26px 34px; border: 2px solid #E2E2E9; border-radius: 22px; font-size: 38px; color: #222; background: #fff; |
| } |
| .pill.active { border-color: #7B61FF; color: #7B61FF; background: #FBF9FF; } |
| |
| |
| .sheet-nav { |
| position: absolute; left: 0; right: 0; bottom: 90px; display: flex; justify-content: space-around; text-align: center; |
| } |
| .nav-item { color: #8a88a6; font-size: 32px; } |
| .nav-item.active { color: #7B61FF; } |
| .nav-ico { width: 70px; height: 70px; margin: 0 auto 12px; } |
| |
| |
| .home-indicator { |
| position: absolute; left: 50%; transform: translateX(-50%); bottom: 22px; |
| width: 360px; height: 10px; background: #000; border-radius: 8px; opacity: 0.7; |
| } |
| </style> |
| </head> |
| <body> |
| <div id="render-target"> |
|
|
| |
| <div class="statusbar"> |
| <div>6:06</div> |
| <div class="status-right"> |
| <span class="dot"></span><span class="dot"></span><span class="dot"></span> |
| <svg class="status-icon" viewBox="0 0 24 24" stroke="#8a8a8a" fill="none" stroke-width="2"> |
| <circle cx="12" cy="12" r="9"></circle> |
| <path d="M12 7v5l4 2"></path> |
| </svg> |
| <svg class="status-icon" viewBox="0 0 24 24" stroke="#8a8a8a" fill="none" stroke-width="2"> |
| <path d="M2 18l8-8 5 5 7-7"></path> |
| </svg> |
| <svg class="status-icon" viewBox="0 0 24 24" stroke="#8a8a8a" fill="none" stroke-width="2"> |
| <rect x="5" y="6" width="14" height="12" rx="2"></rect> |
| <path d="M9 6v-1a3 3 0 0 1 6 0v1"></path> |
| </svg> |
| </div> |
| </div> |
|
|
| |
| <div class="toolbar"> |
| <div class="left-actions"> |
| <div class="icon-btn"> |
| <svg class="icon" viewBox="0 0 24 24"> |
| <path d="M15 18l-6-6 6-6" stroke-linecap="round" stroke-linejoin="round"></path> |
| </svg> |
| </div> |
| <div class="icon-btn" title="Preview"> |
| <svg class="icon" viewBox="0 0 24 24" stroke-dasharray="3 3"> |
| <circle cx="12" cy="12" r="9"></circle> |
| <path d="M10 8l6 4-6 4z" fill="#2b2b2b" stroke="none"></path> |
| </svg> |
| </div> |
| <div class="icon-btn" title="Layers"> |
| <svg class="icon" viewBox="0 0 24 24"> |
| <path d="M12 3l9 5-9 5-9-5 9-5z"></path> |
| <path d="M3 12l9 5 9-5" opacity="0.8"></path> |
| </svg> |
| </div> |
| <div class="icon-btn" title="Undo"> |
| <svg class="icon" viewBox="0 0 24 24"> |
| <path d="M9 10H4l5-5"></path> |
| <path d="M20 19a8 8 0 0 0-11-9"></path> |
| </svg> |
| </div> |
| </div> |
| <div class="right-actions"> |
| <div class="icon-btn" title="More"> |
| <svg class="icon" viewBox="0 0 24 24"> |
| <circle cx="12" cy="5" r="1.5" fill="#2b2b2b" stroke="none"></circle> |
| <circle cx="12" cy="12" r="1.5" fill="#2b2b2b" stroke="none"></circle> |
| <circle cx="12" cy="19" r="1.5" fill="#2b2b2b" stroke="none"></circle> |
| </svg> |
| </div> |
| <div class="icon-btn" title="Download"> |
| <svg class="icon" viewBox="0 0 24 24"> |
| <path d="M12 3v12"></path> |
| <path d="M7 11l5 5 5-5"></path> |
| <path d="M5 21h14"></path> |
| </svg> |
| </div> |
| <div class="icon-btn" title="Share"> |
| <svg class="icon" viewBox="0 0 24 24"> |
| <path d="M4 12v7a2 2 0 0 0 2 2h12"></path> |
| <path d="M12 16l8-8"></path> |
| <path d="M15 4h5v5"></path> |
| </svg> |
| </div> |
| </div> |
| </div> |
|
|
| |
| <div class="canvas"> |
| <div class="band-dark"></div> |
| <div class="band-yellow"></div> |
|
|
| <div class="video-frame"> |
| <div class="img-ph">[IMG: Video Preview]</div> |
|
|
| <div class="play-overlay"> |
| <div class="play-circle"><div class="play-triangle"></div></div> |
| </div> |
|
|
| <div class="scrub"> |
| <span>00:00</span> |
| <div class="line"><div class="progress" style="width:0%"></div></div> |
| <span>00:15</span> |
| </div> |
|
|
| <div class="handle h-tl"></div> |
| <div class="handle h-tr"></div> |
| <div class="handle h-bl"></div> |
| <div class="handle h-br"></div> |
| <div class="handle h-ml"></div> |
| <div class="handle h-mr"></div> |
| <div class="handle h-tm"></div> |
| <div class="handle h-bm"></div> |
| </div> |
|
|
| <div class="rotate"> |
| <svg viewBox="0 0 24 24"> |
| <path d="M3 12a9 9 0 1 0 9-9" stroke-linecap="round"></path> |
| <path d="M3 6v6h6" stroke-linecap="round"></path> |
| </svg> |
| </div> |
| </div> |
|
|
| |
| <div class="sheet"> |
| <div class="sheet-header"> |
| <div class="sheet-title">Element Animations</div> |
| <div class="close-btn"> |
| <svg viewBox="0 0 24 24"> |
| <path d="M5 5l14 14"></path> |
| <path d="M19 5L5 19"></path> |
| </svg> |
| </div> |
| </div> |
|
|
| <div class="checkbox-row"> |
| <div class="cbx"></div> |
| <div>Apply same animation to all pages</div> |
| </div> |
| <div class="checkbox-row" style="margin-top: 12px;"> |
| <div class="cbx"></div> |
| <div>Animate elements together</div> |
| </div> |
|
|
| <div class="pill-row"> |
| <div class="pill active">Swing In</div> |
| <div class="pill">Fade In</div> |
| <div class="pill">Rotate in from left</div> |
| <div class="pill">Rotate in from screen</div> |
| <div class="pill">Zoom In</div> |
| <div class="pill">Slide Up</div> |
| </div> |
|
|
| <div class="sheet-nav"> |
| <div class="nav-item active"> |
| <svg class="nav-ico" viewBox="0 0 24 24" fill="none" stroke="#7B61FF" stroke-width="2"> |
| <circle cx="12" cy="12" r="8"></circle> |
| <circle cx="12" cy="12" r="2" fill="#7B61FF" stroke="none"></circle> |
| </svg> |
| Animations |
| </div> |
| <div class="nav-item"> |
| <svg class="nav-ico" viewBox="0 0 24 24" fill="none" stroke="#8a88a6" stroke-width="2"> |
| <circle cx="12" cy="12" r="9"></circle> |
| <path d="M12 7v5l3 2"></path> |
| </svg> |
| Duration |
| </div> |
| <div class="nav-item"> |
| <svg class="nav-ico" viewBox="0 0 24 24" fill="none" stroke="#8a88a6" stroke-width="2"> |
| <rect x="4" y="4" width="16" height="16" rx="3"></rect> |
| <text x="8" y="16" font-size="8" fill="#8a88a6" stroke="none">9+</text> |
| </svg> |
| Manage pages |
| </div> |
| </div> |
| </div> |
|
|
| <div class="home-indicator"></div> |
| </div> |
| </body> |
| </html> |