AndroidCode / code /1000 /1000_3.html
yhzheng1031's picture
Add files using upload-large-folder tool
98687c3 verified
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=1080, initial-scale=1.0">
<title>Editor - Element Animations</title>
<style>
body { margin: 0; padding: 0; background: transparent; font-family: Arial, Helvetica, sans-serif; }
#render-target {
position: relative;
width: 1080px;
height: 2400px;
overflow: hidden;
background: #ffffff;
border-radius: 0;
}
/* Status bar */
.status-bar {
height: 80px;
padding: 0 28px;
display: flex;
align-items: center;
justify-content: space-between;
color: #1f1f1f;
font-size: 36px;
}
.status-left { display: flex; align-items: center; gap: 12px; }
.status-right { display: flex; align-items: center; gap: 22px; }
.dot { width: 18px; height: 18px; background:#6b6b6b; border-radius: 50%; display:inline-block; opacity:.9; }
/* App toolbar */
.toolbar {
height: 120px;
padding: 0 28px;
display: flex;
align-items: center;
justify-content: space-between;
}
.toolbar .left-actions,
.toolbar .right-actions {
display: flex; align-items: center; gap: 34px;
}
.icon-btn {
width: 72px; height: 72px; display: inline-flex; align-items: center; justify-content: center;
color: #222;
}
.icon-btn svg { width: 48px; height: 48px; }
/* Canvas workspace */
.canvas {
position: relative;
height: 1220px;
background: #f3f3f3;
overflow: hidden;
}
/* Decorative bands behind the video */
.band-dark {
position: absolute; left: 0; right: 0; top: 140px; height: 180px; background: #25322d;
}
.band-yellow {
position: absolute; left: 60px; right: 60px; top: 260px; height: 140px; background: #fff1b0;
}
.collage {
position: absolute; left: 0; right: 0; bottom: 180px; height: 240px;
background: #E0E0E0; border-top: 1px solid #BDBDBD; border-bottom: 1px solid #BDBDBD;
display: flex; align-items: center; justify-content: center; color:#757575; font-size: 36px;
}
/* Video element (selected) */
.video-wrap {
position: absolute;
left: 90px; right: 90px; top: 320px; height: 540px;
border: 4px solid #4a9dfc;
border-radius: 20px;
overflow: hidden;
background: #E0E0E0;
display: flex; align-items: center; justify-content: center; color:#757575; font-size: 40px;
}
.handle {
position: absolute; width: 28px; height: 28px; background:#ffffff; border: 3px solid #4a9dfc; border-radius: 50%;
}
.h-tl { left:-14px; top:-14px; }
.h-tr { right:-14px; top:-14px; }
.h-bl { left:-14px; bottom:-14px; }
.h-br { right:-14px; bottom:-14px; }
.h-ml { left:-14px; top:50%; transform:translateY(-50%); }
.h-mr { right:-14px; top:50%; transform:translateY(-50%); }
.h-tm { top:-14px; left:50%; transform:translateX(-50%); }
.h-bm { bottom:-14px; left:50%; transform:translateX(-50%); }
.play-overlay {
position: absolute; width: 140px; height: 140px; border-radius: 50%;
background: rgba(0,0,0,0.35); display:flex; align-items:center; justify-content:center;
}
.play-overlay svg { width: 70px; height: 70px; }
/* Timeline overlay inside video */
.timeline {
position: absolute; left: 28px; right: 28px; bottom: 24px; color: #fff;
display: flex; align-items: center; gap: 22px;
}
.timeline .time { font-size: 32px; text-shadow: 0 1px 2px rgba(0,0,0,0.35); width: 110px; }
.progress {
flex: 1; height: 8px; background: rgba(255,255,255,0.45); border-radius: 6px; position: relative;
}
.progress .bar { position: absolute; left: 0; top: 0; bottom: 0; width: 20%; background:#ffffff; border-radius: 6px; }
/* Rotate icon below video */
.rotate-btn {
position: absolute; left: 50%; transform: translateX(-50%);
bottom: 110px; width: 72px; height: 72px; border-radius: 50%;
background:#ffffff; border: 2px solid #DADADA; display:flex; align-items:center; justify-content:center;
box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.rotate-btn svg { width: 42px; height: 42px; }
/* Bottom sheet */
.sheet {
position: absolute; left: 0; right: 0; bottom: 96px; height: 840px; background: #ffffff;
border-top-left-radius: 26px; border-top-right-radius: 26px;
box-shadow: 0 -6px 16px rgba(0,0,0,0.08);
padding: 22px 32px 20px 32px;
}
.sheet-head {
display: flex; align-items: center; justify-content: space-between; padding: 18px 6px 8px;
}
.sheet-title { font-size: 52px; font-weight: 700; color:#111; }
.sheet-close { width: 70px; height: 70px; display:flex; align-items:center; justify-content:center; }
.sheet-close svg { width: 42px; height: 42px; }
.option-row { display: flex; align-items: center; gap: 18px; font-size: 36px; color:#2a2a2a; margin: 28px 6px; }
.checkbox {
width: 44px; height: 44px; border: 3px solid #B6B6B6; border-radius: 8px; background:#fff;
}
.chip-row {
display: flex; align-items: center; gap: 22px; margin: 36px 0 28px 0; padding: 0 4px; overflow: hidden;
}
.chip {
padding: 22px 34px; border: 2px solid #D7D7D7; border-radius: 18px; font-size: 36px; color:#232323; background:#fff;
white-space: nowrap;
}
.chip.active {
border-color: #7a5af8; color: #4b36c4; box-shadow: inset 0 0 0 1px rgba(122,90,248,0.15);
}
.sheet-footer {
position: absolute; left:0; right:0; bottom: 22px; display: flex; justify-content: space-around; align-items: center;
}
.foot-item { display:flex; flex-direction: column; align-items:center; gap: 8px; color:#5c5c5c; font-size: 30px; }
.foot-item.active { color:#6f51ff; }
.foot-icon { width: 60px; height: 60px; display:flex; align-items:center; justify-content:center; border-radius: 18px; }
.foot-item.active .foot-icon { color:#6f51ff; }
/* Android navigation bar gesture pill */
.nav-pill {
position: absolute; left: 50%; transform: translateX(-50%);
bottom: 24px; width: 260px; height: 10px; background: #1a1a1a; border-radius: 8px;
opacity: .95;
}
</style>
</head>
<body>
<div id="render-target">
<!-- Status bar -->
<div class="status-bar">
<div class="status-left">
<div style="font-weight:600;">6:07</div>
<span class="dot"></span>
<span class="dot" style="opacity:.6;"></span>
<span class="dot" style="opacity:.35;"></span>
<span class="dot" style="width:10px;height:10px;opacity:.6;"></span>
</div>
<div class="status-right">
<svg width="44" height="44" viewBox="0 0 24 24" fill="#6b6b6b" xmlns="http://www.w3.org/2000/svg">
<path d="M3 18h18l-4-6-5 7-4-5-5 4z"/>
</svg>
<svg width="44" height="44" viewBox="0 0 24 24" fill="#6b6b6b" xmlns="http://www.w3.org/2000/svg">
<path d="M20 8V6a2 2 0 0 0-2-2H6C4.9 4 4 4.9 4 6v2h16zM4 10v8c0 1.1.9 2 2 2h12a2 2 0 0 0 2-2v-8H4z"/>
</svg>
<svg width="44" height="44" viewBox="0 0 24 24" fill="#6b6b6b" xmlns="http://www.w3.org/2000/svg">
<path d="M16 4h-1V2h-2v2H9c-1.7 0-3 1.3-3 3v11c0 1.6 1.3 3 3 3h7c1.6 0 3-1.4 3-3V7c0-1.7-1.4-3-3-3z"/>
</svg>
</div>
</div>
<!-- Toolbar -->
<div class="toolbar">
<div class="left-actions">
<div class="icon-btn" title="Back">
<svg viewBox="0 0 24 24" fill="none" stroke="#222" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M15 18l-6-6 6-6"/>
</svg>
</div>
<div class="icon-btn" title="Preview">
<svg viewBox="0 0 24 24" fill="none" stroke="#222" stroke-width="1.8">
<circle cx="12" cy="12" r="9" stroke-dasharray="2 3"/>
<path d="M10 8l6 4-6 4" fill="#222" stroke="none"/>
</svg>
</div>
<div class="icon-btn" title="Layers">
<svg viewBox="0 0 24 24" fill="none" stroke="#222" stroke-width="2" stroke-linejoin="round">
<path d="M12 3l8 4-8 4-8-4 8-4z"/>
<path d="M4 12l8 4 8-4"/>
<path d="M4 16l8 4 8-4"/>
</svg>
</div>
</div>
<div class="right-actions">
<div class="icon-btn" title="Undo">
<svg viewBox="0 0 24 24" fill="none" stroke="#222" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M9 14H5v-4"/>
<path d="M20 20a8 8 0 0 0-11-11L5 10"/>
</svg>
</div>
<div class="icon-btn" title="More">
<svg viewBox="0 0 24 24" fill="#222">
<circle cx="12" cy="5" r="2"/>
<circle cx="12" cy="12" r="2"/>
<circle cx="12" cy="19" r="2"/>
</svg>
</div>
<div class="icon-btn" title="Download">
<svg viewBox="0 0 24 24" fill="none" stroke="#222" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M12 3v12"/>
<path d="M7 10l5 5 5-5"/>
<path d="M4 20h16"/>
</svg>
</div>
<div class="icon-btn" title="Share">
<svg viewBox="0 0 24 24" fill="none" stroke="#222" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="18" cy="5" r="3"/>
<circle cx="6" cy="12" r="3"/>
<circle cx="18" cy="19" r="3"/>
<path d="M8.7 13.3l6.6 3.4M15.3 7.3L8.7 10.7"/>
</svg>
</div>
</div>
</div>
<!-- Canvas area -->
<div class="canvas">
<div class="band-dark"></div>
<div class="band-yellow"></div>
<div class="video-wrap">
[IMG: Video Frame]
<div class="play-overlay">
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path d="M8 5l12 7-12 7z" fill="#ffffff"/>
</svg>
</div>
<!-- resize handles -->
<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>
<!-- timeline -->
<div class="timeline">
<div class="time">00:00</div>
<div class="progress"><div class="bar"></div></div>
<div class="time" style="text-align:right;">00:15</div>
</div>
</div>
<div class="collage">[IMG: Office Team Collage]</div>
<div class="rotate-btn" title="Rotate">
<svg viewBox="0 0 24 24" fill="none" stroke="#333" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M4 11a8 8 0 1 1 2 5.5"/>
<path d="M4 15v-4h4"/>
</svg>
</div>
</div>
<!-- Bottom sheet -->
<div class="sheet">
<div class="sheet-head">
<div style="display:flex; align-items:center; gap:12px;">
<svg width="34" height="34" viewBox="0 0 24 24" fill="none" stroke="#111" stroke-width="2">
<path d="M6 9l-3 3 3 3"/>
<path d="M3 12h18"/>
</svg>
<span style="color:#6f6f6f; font-size:30px;">Expand</span>
</div>
<div class="sheet-title">Element Animations</div>
<div class="sheet-close">
<svg viewBox="0 0 24 24" fill="none" stroke="#111" stroke-width="2" stroke-linecap="round">
<path d="M6 6l12 12M18 6l-12 12"/>
</svg>
</div>
</div>
<div class="option-row">
<div class="checkbox"></div>
<div>Apply same animation to all pages</div>
</div>
<div class="option-row">
<div class="checkbox"></div>
<div>Animate elements together</div>
</div>
<div class="chip-row">
<div class="chip">Rotate in from screen</div>
<div class="chip active">Zoom In</div>
<div class="chip">Zoom Out</div>
<div class="chip">Light Speed In</div>
</div>
<div class="sheet-footer">
<div class="foot-item active">
<div class="foot-icon">
<svg viewBox="0 0 24 24" fill="none" stroke="#6f51ff" stroke-width="2">
<circle cx="12" cy="12" r="8"/>
<circle cx="9" cy="10" r="1.2" fill="#6f51ff" stroke="none"/>
<circle cx="15" cy="10" r="1.2" fill="#6f51ff" stroke="none"/>
<path d="M8 15c2.5 2 5.5 2 8 0"/>
</svg>
</div>
<div>Animations</div>
</div>
<div class="foot-item">
<div class="foot-icon">
<svg viewBox="0 0 24 24" fill="none" stroke="#5c5c5c" stroke-width="2" stroke-linecap="round">
<circle cx="12" cy="12" r="8"/>
<path d="M12 7v5l3 2"/>
</svg>
</div>
<div>Duration</div>
</div>
<div class="foot-item">
<div class="foot-icon" style="border:2px solid #5c5c5c; width:60px; height:60px;">
<span style="font-size:26px; color:#5c5c5c;">9+</span>
</div>
<div>Manage pages</div>
</div>
</div>
</div>
<!-- Android navigation gesture pill -->
<div class="nav-pill"></div>
</div>
</body>
</html>