BlueGit

timfa filemanager

Merge feature/preview-animation into master

timfa Tim Falken · pushed by timfa

Authored 2026-05-03 · 6 months ago

Hash
47bffce264f5e41b25a6b712cee52f88005ec085
2 files changed +174 −45
public/app.js +174 −34
@@ -46,6 +46,8 @@ const STATE = {
46 46
47 47 // Preview overlay state
48 48 previewObjectUrl: null,
49 previewSourceEl: null, // SVG element that triggered the preview
50 previewClosing: false, // guard to prevent double-close during animation
49 51 };
50 52
51 53 const SESSION_KEY = 'filemanager.session.v1';
@@ -809,7 +811,7 @@ function itemsSignature (items)
809 811 async function incrementalRefreshCurrentDir ()
810 812 {
811 813 if (!STATE.currentDir || STATE.uploadInProgress) return;
812 closeSidebar();
814 closeSidebar();
813 815 if (!data) return;
814 816
815 817 const oldSig = itemsSignature(STATE.items);
@@ -1232,11 +1234,14 @@ function fileAccentColor (name)
1232 1234
1233 1235 function animatePreviewOpen (sourceSvgEl, sheetEl)
1234 1236 {
1235 if (!sourceSvgEl || !sheetEl || !sourceSvgEl.isConnected) return Promise.resolve();
1237 if (!sourceSvgEl || !sheetEl || !sourceSvgEl.isConnected) return Promise.resolve({ startScale: 0.12 });
1236 1238
1237 1239 const start = sourceSvgEl.getBoundingClientRect();
1238 1240 const end = sheetEl.getBoundingClientRect();
1239 if (!start.width || !start.height || !end.width || !end.height) return Promise.resolve();
1241 if (!start.width || !start.height || !end.width || !end.height) return Promise.resolve({ startScale: 0.12 });
1242
1243 // Hide source icon for the duration of the preview
1244 sourceSvgEl.style.visibility = 'hidden';
1240 1245
1241 1246 const ghost = document.createElement('div');
1242 1247 ghost.className = 'preview-ghost';
@@ -1252,52 +1257,177 @@ function animatePreviewOpen (sourceSvgEl, sheetEl)
1252 1257 ghost.appendChild(clone);
1253 1258 document.body.appendChild(ghost);
1254 1259
1260 // Bézier path: random control points in viewport space
1261 const vw = window.innerWidth;
1262 const vh = window.innerHeight;
1263 const startCx = start.left + start.width / 2;
1264 const startCy = start.top + start.height / 2;
1265 const endCx = end.left + end.width / 2;
1266 const endCy = end.top + end.height / 2;
1267 const cp1x = startCx + (Math.random() - 0.5) * vw * 0.8;
1268 const cp1y = startCy + (Math.random() - 0.5) * vh * 0.8;
1269 const cp2x = endCx + (Math.random() - 0.5) * vw * 0.6;
1270 const cp2y = endCy + (Math.random() - 0.5) * vh * 0.6;
1271
1272 // Random full rotations: -3 to +3
1273 const totalDeg = (Math.random() * 6 - 3) * 360;
1274 const duration = 640;
1275 const startTime = performance.now();
1276 const startScale = start.width / end.width;
1277
1278 function easeInOut (t) { return t < 0.5 ? 4 * t * t * t : 1 - Math.pow(-2 * t + 2, 3) / 2; }
1279 function bezier1D (p0, p1, p2, p3, t) {
1280 const u = 1 - t;
1281 return u * u * u * p0 + 3 * u * u * t * p1 + 3 * u * t * t * p2 + t * t * t * p3;
1282 }
1283
1255 1284 return new Promise((resolve) =>
1256 1285 {
1257 const anim = ghost.animate([
1286 function frame (now)
1287 {
1288 const raw = Math.min((now - startTime) / duration, 1);
1289 const t = easeInOut(raw);
1290
1291 const cx = bezier1D(startCx, cp1x, cp2x, endCx, t);
1292 const cy = bezier1D(startCy, cp1y, cp2y, endCy, t);
1293 const w = start.width + (end.width - start.width) * t;
1294 const h = start.height + (end.height - start.height) * t;
1295 const angle = t * totalDeg;
1296 const opacity = raw > 0.82 ? 1 - (raw - 0.82) / 0.18 : 1;
1297
1298 ghost.style.left = `${cx - w / 2}px`;
1299 ghost.style.top = `${cy - h / 2}px`;
1300 ghost.style.width = `${w}px`;
1301 ghost.style.height = `${h}px`;
1302 ghost.style.transform = `rotate(${angle}deg)`;
1303 ghost.style.opacity = opacity;
1304
1305 if (raw < 1)
1258 1306 {
1259 left: `${start.left}px`,
1260 top: `${start.top}px`,
1261 width: `${start.width}px`,
1262 height: `${start.height}px`,
1263 opacity: 1,
1264 borderRadius: '8px',
1265 },
1307 requestAnimationFrame(frame);
1308 } else
1266 1309 {
1267 left: `${end.left}px`,
1268 top: `${end.top}px`,
1269 width: `${end.width}px`,
1270 height: `${end.height}px`,
1271 opacity: 0.18,
1272 borderRadius: '12px',
1273 },
1274 ], {
1275 duration: 260,
1276 easing: 'cubic-bezier(0.2, 0.9, 0.2, 1)',
1277 fill: 'forwards',
1278 });
1310 ghost.remove();
1311 resolve({ startScale });
1312 }
1313 }
1314 requestAnimationFrame(frame);
1315 });
1316 }
1317 }
1279 1318
1280 anim.onfinish = () =>
1281 {
1282 ghost.remove();
1283 resolve();
1284 };
1285 anim.oncancel = () =>
1319 function animatePreviewClose (sourceSvgEl, sheetEl)
1320 {
1321 if (!sourceSvgEl || !sheetEl || !sourceSvgEl.isConnected) return Promise.resolve();
1322
1323 const sheetRect = sheetEl.getBoundingClientRect();
1324 const iconRect = sourceSvgEl.getBoundingClientRect();
1325 if (!sheetRect.width || !iconRect.width) return Promise.resolve();
1326
1327 // Ghost starts at sheet center, icon-sized, then flies back to icon
1328 const ghost = document.createElement('div');
1329 ghost.className = 'preview-ghost';
1330
1331 const clone = sourceSvgEl.cloneNode(true);
1332 clone.style.width = '100%';
1333 clone.style.height = '100%';
1334 clone.style.display = 'block';
1335 ghost.appendChild(clone);
1336 document.body.appendChild(ghost);
1337
1338 const vw = window.innerWidth;
1339 const vh = window.innerHeight;
1340 const startCx = sheetRect.left + sheetRect.width / 2;
1341 const startCy = sheetRect.top + sheetRect.height / 2;
1342 const endCx = iconRect.left + iconRect.width / 2;
1343 const endCy = iconRect.top + iconRect.height / 2;
1344
1345 const cp1x = startCx + (Math.random() - 0.5) * vw * 0.6;
1346 const cp1y = startCy + (Math.random() - 0.5) * vh * 0.6;
1347 const cp2x = endCx + (Math.random() - 0.5) * vw * 0.5;
1348 const cp2y = endCy + (Math.random() - 0.5) * vh * 0.5;
1349
1350 const totalDeg = (Math.random() * 6 - 3) * 360;
1351 const duration = 580;
1352 const startTime = performance.now();
1353
1354 function easeInOut (t) { return t < 0.5 ? 4 * t * t * t : 1 - Math.pow(-2 * t + 2, 3) / 2; }
1355 function bezier1D (p0, p1, p2, p3, t) {
1356 const u = 1 - t;
1357 return u * u * u * p0 + 3 * u * u * t * p1 + 3 * u * t * t * p2 + t * t * t * p3;
1358 }
1359
1360 return new Promise((resolve) =>
1361 {
1362 function frame (now)
1286 1363 {
1287 ghost.remove();
1288 resolve();
1289 };
1364 const raw = Math.min((now - startTime) / duration, 1);
1365 const t = easeInOut(raw);
1366
1367 const cx = bezier1D(startCx, cp1x, cp2x, endCx, t);
1368 const cy = bezier1D(startCy, cp1y, cp2y, endCy, t);
1369 const angle = t * totalDeg;
1370 const opacity = raw < 0.85 ? 1 : 1 - (raw - 0.85) / 0.15;
1371
1372 ghost.style.left = `${cx - iconRect.width / 2}px`;
1373 ghost.style.top = `${cy - iconRect.height / 2}px`;
1374 ghost.style.width = `${iconRect.width}px`;
1375 ghost.style.height = `${iconRect.height}px`;
1376 ghost.style.transform = `rotate(${angle}deg)`;
1377 ghost.style.opacity = opacity;
1378
1379 if (raw < 1)
1380 {
1381 requestAnimationFrame(frame);
1382 } else
1383 {
1384 ghost.remove();
1385 sourceSvgEl.style.visibility = '';
1386 resolve();
1387 }
1388 }
1389 requestAnimationFrame(frame);
1290 1390 });
1291 1391 }
1292 1392
1293 function closePreview ()
1393 async function closePreview ()
1294 1394 {
1295 1395 const overlay = document.getElementById('preview-overlay');
1296 1396 const body = document.getElementById('preview-body');
1297 1397 if (!overlay || !body) return;
1398 if (overlay.classList.contains('hidden')) return;
1399 if (STATE.previewClosing) return;
1400 STATE.previewClosing = true;
1401
1402 const sourceSvgEl = STATE.previewSourceEl;
1403 if (sourceSvgEl && sourceSvgEl.isConnected)
1404 {
1405 const sheet = document.getElementById('preview-sheet');
1406 // Shrink the sheet first, then fly ghost back
1407 await new Promise((res) =>
1408 {
1409 const a = sheet.animate(
1410 [{ transform: 'scale(1)', opacity: 1 }, { transform: 'scale(0.06)', opacity: 0 }],
1411 { duration: 180, easing: 'cubic-bezier(0.4, 0, 1, 1)', fill: 'forwards' }
1412 );
1413 a.onfinish = res;
1414 a.oncancel = res;
1415 });
1416 overlay.classList.add('preview-prep');
1417 sheet.style.transform = '';
1418 sheet.style.opacity = '';
1419 await animatePreviewClose(sourceSvgEl, sheet);
1420 } else if (sourceSvgEl)
1421 {
1422 sourceSvgEl.style.visibility = '';
1423 }
1424
1298 1425 overlay.classList.add('hidden');
1426 overlay.classList.remove('preview-prep');
1299 1427 body.innerHTML = '';
1300 1428 clearPreviewObjectUrl();
1429 STATE.previewSourceEl = null;
1430 STATE.previewClosing = false;
1301 1431 }
1302 1432
1303 1433 async function fetchFileBlob (item)
@@ -1426,10 +1556,20 @@ async function downloadOrView (item, sourceSvgEl = null)
1426 1556 dlBtn.onclick = () => triggerDownload(item.name, objectUrl);
1427 1557 await renderPreviewBody(item, blob, objectUrl);
1428 1558
1559 STATE.previewSourceEl = sourceSvgEl || null;
1429 1560 overlay.classList.add('preview-prep');
1430 1561 overlay.classList.remove('hidden');
1431 await animatePreviewOpen(sourceSvgEl, sheet);
1562 const { startScale } = await animatePreviewOpen(sourceSvgEl, sheet);
1432 1563 overlay.classList.remove('preview-prep');
1564
1565 // Scale sheet up from the icon's apparent size, driven by JS so the start
1566 // scale matches the actual icon-to-sheet ratio for this specific invocation
1567 const s = (startScale > 0 && startScale < 1) ? startScale : 0.12;
1568 const scaleAnim = sheet.animate(
1569 [{ transform: `scale(${s})`, opacity: 0 }, { transform: 'scale(1)', opacity: 1 }],
1570 { duration: 220, easing: 'cubic-bezier(0.2, 0.9, 0.2, 1.05)', fill: 'forwards' }
1571 );
1572 scaleAnim.onfinish = () => { sheet.style.transform = ''; sheet.style.opacity = ''; };
1433 1573 }
1434 1574
1435 1575 // ───────────────────────────────────────────────────────────────────────────
@@ -46,6 +46,8 @@ const STATE = {
46
46
47 // Preview overlay state
47 // Preview overlay state
48 previewObjectUrl: null,
48 previewObjectUrl: null,
49 previewSourceEl: null, // SVG element that triggered the preview
50 previewClosing: false, // guard to prevent double-close during animation
49};
51};
50
52
51const SESSION_KEY = 'filemanager.session.v1';
53const SESSION_KEY = 'filemanager.session.v1';
@@ -809,7 +811,7 @@ function itemsSignature (items)
809async function incrementalRefreshCurrentDir ()
811async function incrementalRefreshCurrentDir ()
810{
812{
811 if (!STATE.currentDir || STATE.uploadInProgress) return;
813 if (!STATE.currentDir || STATE.uploadInProgress) return;
812 closeSidebar();
814 closeSidebar();
813 if (!data) return;
815 if (!data) return;
814
816
815 const oldSig = itemsSignature(STATE.items);
817 const oldSig = itemsSignature(STATE.items);
@@ -1232,11 +1234,14 @@ function fileAccentColor (name)
1232
1234
1233function animatePreviewOpen (sourceSvgEl, sheetEl)
1235function animatePreviewOpen (sourceSvgEl, sheetEl)
1234{
1236{
1235 if (!sourceSvgEl || !sheetEl || !sourceSvgEl.isConnected) return Promise.resolve();
1237 if (!sourceSvgEl || !sheetEl || !sourceSvgEl.isConnected) return Promise.resolve({ startScale: 0.12 });
1236
1238
1237 const start = sourceSvgEl.getBoundingClientRect();
1239 const start = sourceSvgEl.getBoundingClientRect();
1238 const end = sheetEl.getBoundingClientRect();
1240 const end = sheetEl.getBoundingClientRect();
1239 if (!start.width || !start.height || !end.width || !end.height) return Promise.resolve();
1241 if (!start.width || !start.height || !end.width || !end.height) return Promise.resolve({ startScale: 0.12 });
1242
1243 // Hide source icon for the duration of the preview
1244 sourceSvgEl.style.visibility = 'hidden';
1240
1245
1241 const ghost = document.createElement('div');
1246 const ghost = document.createElement('div');
1242 ghost.className = 'preview-ghost';
1247 ghost.className = 'preview-ghost';
@@ -1252,52 +1257,177 @@ function animatePreviewOpen (sourceSvgEl, sheetEl)
1252 ghost.appendChild(clone);
1257 ghost.appendChild(clone);
1253 document.body.appendChild(ghost);
1258 document.body.appendChild(ghost);
1254
1259
1260 // Bézier path: random control points in viewport space
1261 const vw = window.innerWidth;
1262 const vh = window.innerHeight;
1263 const startCx = start.left + start.width / 2;
1264 const startCy = start.top + start.height / 2;
1265 const endCx = end.left + end.width / 2;
1266 const endCy = end.top + end.height / 2;
1267 const cp1x = startCx + (Math.random() - 0.5) * vw * 0.8;
1268 const cp1y = startCy + (Math.random() - 0.5) * vh * 0.8;
1269 const cp2x = endCx + (Math.random() - 0.5) * vw * 0.6;
1270 const cp2y = endCy + (Math.random() - 0.5) * vh * 0.6;
1271
1272 // Random full rotations: -3 to +3
1273 const totalDeg = (Math.random() * 6 - 3) * 360;
1274 const duration = 640;
1275 const startTime = performance.now();
1276 const startScale = start.width / end.width;
1277
1278 function easeInOut (t) { return t < 0.5 ? 4 * t * t * t : 1 - Math.pow(-2 * t + 2, 3) / 2; }
1279 function bezier1D (p0, p1, p2, p3, t) {
1280 const u = 1 - t;
1281 return u * u * u * p0 + 3 * u * u * t * p1 + 3 * u * t * t * p2 + t * t * t * p3;
1282 }
1283
1255 return new Promise((resolve) =>
1284 return new Promise((resolve) =>
1256 {
1285 {
1257 const anim = ghost.animate([
1286 function frame (now)
1287 {
1288 const raw = Math.min((now - startTime) / duration, 1);
1289 const t = easeInOut(raw);
1290
1291 const cx = bezier1D(startCx, cp1x, cp2x, endCx, t);
1292 const cy = bezier1D(startCy, cp1y, cp2y, endCy, t);
1293 const w = start.width + (end.width - start.width) * t;
1294 const h = start.height + (end.height - start.height) * t;
1295 const angle = t * totalDeg;
1296 const opacity = raw > 0.82 ? 1 - (raw - 0.82) / 0.18 : 1;
1297
1298 ghost.style.left = `${cx - w / 2}px`;
1299 ghost.style.top = `${cy - h / 2}px`;
1300 ghost.style.width = `${w}px`;
1301 ghost.style.height = `${h}px`;
1302 ghost.style.transform = `rotate(${angle}deg)`;
1303 ghost.style.opacity = opacity;
1304
1305 if (raw < 1)
1258 {
1306 {
1259 left: `${start.left}px`,
1307 requestAnimationFrame(frame);
1260 top: `${start.top}px`,
1308 } else
1261 width: `${start.width}px`,
1262 height: `${start.height}px`,
1263 opacity: 1,
1264 borderRadius: '8px',
1265 },
1266 {
1309 {
1267 left: `${end.left}px`,
1310 ghost.remove();
1268 top: `${end.top}px`,
1311 resolve({ startScale });
1269 width: `${end.width}px`,
1312 }
1270 height: `${end.height}px`,
1313 }
1271 opacity: 0.18,
1314 requestAnimationFrame(frame);
1272 borderRadius: '12px',
1315 });
1273 },
1316}
1274 ], {
1317}
1275 duration: 260,
1276 easing: 'cubic-bezier(0.2, 0.9, 0.2, 1)',
1277 fill: 'forwards',
1278 });
1279
1318
1280 anim.onfinish = () =>
1319function animatePreviewClose (sourceSvgEl, sheetEl)
1281 {
1320{
1282 ghost.remove();
1321 if (!sourceSvgEl || !sheetEl || !sourceSvgEl.isConnected) return Promise.resolve();
1283 resolve();
1322
1284 };
1323 const sheetRect = sheetEl.getBoundingClientRect();
1285 anim.oncancel = () =>
1324 const iconRect = sourceSvgEl.getBoundingClientRect();
1325 if (!sheetRect.width || !iconRect.width) return Promise.resolve();
1326
1327 // Ghost starts at sheet center, icon-sized, then flies back to icon
1328 const ghost = document.createElement('div');
1329 ghost.className = 'preview-ghost';
1330
1331 const clone = sourceSvgEl.cloneNode(true);
1332 clone.style.width = '100%';
1333 clone.style.height = '100%';
1334 clone.style.display = 'block';
1335 ghost.appendChild(clone);
1336 document.body.appendChild(ghost);
1337
1338 const vw = window.innerWidth;
1339 const vh = window.innerHeight;
1340 const startCx = sheetRect.left + sheetRect.width / 2;
1341 const startCy = sheetRect.top + sheetRect.height / 2;
1342 const endCx = iconRect.left + iconRect.width / 2;
1343 const endCy = iconRect.top + iconRect.height / 2;
1344
1345 const cp1x = startCx + (Math.random() - 0.5) * vw * 0.6;
1346 const cp1y = startCy + (Math.random() - 0.5) * vh * 0.6;
1347 const cp2x = endCx + (Math.random() - 0.5) * vw * 0.5;
1348 const cp2y = endCy + (Math.random() - 0.5) * vh * 0.5;
1349
1350 const totalDeg = (Math.random() * 6 - 3) * 360;
1351 const duration = 580;
1352 const startTime = performance.now();
1353
1354 function easeInOut (t) { return t < 0.5 ? 4 * t * t * t : 1 - Math.pow(-2 * t + 2, 3) / 2; }
1355 function bezier1D (p0, p1, p2, p3, t) {
1356 const u = 1 - t;
1357 return u * u * u * p0 + 3 * u * u * t * p1 + 3 * u * t * t * p2 + t * t * t * p3;
1358 }
1359
1360 return new Promise((resolve) =>
1361 {
1362 function frame (now)
1286 {
1363 {
1287 ghost.remove();
1364 const raw = Math.min((now - startTime) / duration, 1);
1288 resolve();
1365 const t = easeInOut(raw);
1289 };
1366
1367 const cx = bezier1D(startCx, cp1x, cp2x, endCx, t);
1368 const cy = bezier1D(startCy, cp1y, cp2y, endCy, t);
1369 const angle = t * totalDeg;
1370 const opacity = raw < 0.85 ? 1 : 1 - (raw - 0.85) / 0.15;
1371
1372 ghost.style.left = `${cx - iconRect.width / 2}px`;
1373 ghost.style.top = `${cy - iconRect.height / 2}px`;
1374 ghost.style.width = `${iconRect.width}px`;
1375 ghost.style.height = `${iconRect.height}px`;
1376 ghost.style.transform = `rotate(${angle}deg)`;
1377 ghost.style.opacity = opacity;
1378
1379 if (raw < 1)
1380 {
1381 requestAnimationFrame(frame);
1382 } else
1383 {
1384 ghost.remove();
1385 sourceSvgEl.style.visibility = '';
1386 resolve();
1387 }
1388 }
1389 requestAnimationFrame(frame);
1290 });
1390 });
1291}
1391}
1292
1392
1293function closePreview ()
1393async function closePreview ()
1294{
1394{
1295 const overlay = document.getElementById('preview-overlay');
1395 const overlay = document.getElementById('preview-overlay');
1296 const body = document.getElementById('preview-body');
1396 const body = document.getElementById('preview-body');
1297 if (!overlay || !body) return;
1397 if (!overlay || !body) return;
1398 if (overlay.classList.contains('hidden')) return;
1399 if (STATE.previewClosing) return;
1400 STATE.previewClosing = true;
1401
1402 const sourceSvgEl = STATE.previewSourceEl;
1403 if (sourceSvgEl && sourceSvgEl.isConnected)
1404 {
1405 const sheet = document.getElementById('preview-sheet');
1406 // Shrink the sheet first, then fly ghost back
1407 await new Promise((res) =>
1408 {
1409 const a = sheet.animate(
1410 [{ transform: 'scale(1)', opacity: 1 }, { transform: 'scale(0.06)', opacity: 0 }],
1411 { duration: 180, easing: 'cubic-bezier(0.4, 0, 1, 1)', fill: 'forwards' }
1412 );
1413 a.onfinish = res;
1414 a.oncancel = res;
1415 });
1416 overlay.classList.add('preview-prep');
1417 sheet.style.transform = '';
1418 sheet.style.opacity = '';
1419 await animatePreviewClose(sourceSvgEl, sheet);
1420 } else if (sourceSvgEl)
1421 {
1422 sourceSvgEl.style.visibility = '';
1423 }
1424
1298 overlay.classList.add('hidden');
1425 overlay.classList.add('hidden');
1426 overlay.classList.remove('preview-prep');
1299 body.innerHTML = '';
1427 body.innerHTML = '';
1300 clearPreviewObjectUrl();
1428 clearPreviewObjectUrl();
1429 STATE.previewSourceEl = null;
1430 STATE.previewClosing = false;
1301}
1431}
1302
1432
1303async function fetchFileBlob (item)
1433async function fetchFileBlob (item)
@@ -1426,10 +1556,20 @@ async function downloadOrView (item, sourceSvgEl = null)
1426 dlBtn.onclick = () => triggerDownload(item.name, objectUrl);
1556 dlBtn.onclick = () => triggerDownload(item.name, objectUrl);
1427 await renderPreviewBody(item, blob, objectUrl);
1557 await renderPreviewBody(item, blob, objectUrl);
1428
1558
1559 STATE.previewSourceEl = sourceSvgEl || null;
1429 overlay.classList.add('preview-prep');
1560 overlay.classList.add('preview-prep');
1430 overlay.classList.remove('hidden');
1561 overlay.classList.remove('hidden');
1431 await animatePreviewOpen(sourceSvgEl, sheet);
1562 const { startScale } = await animatePreviewOpen(sourceSvgEl, sheet);
1432 overlay.classList.remove('preview-prep');
1563 overlay.classList.remove('preview-prep');
1564
1565 // Scale sheet up from the icon's apparent size, driven by JS so the start
1566 // scale matches the actual icon-to-sheet ratio for this specific invocation
1567 const s = (startScale > 0 && startScale < 1) ? startScale : 0.12;
1568 const scaleAnim = sheet.animate(
1569 [{ transform: `scale(${s})`, opacity: 0 }, { transform: 'scale(1)', opacity: 1 }],
1570 { duration: 220, easing: 'cubic-bezier(0.2, 0.9, 0.2, 1.05)', fill: 'forwards' }
1571 );
1572 scaleAnim.onfinish = () => { sheet.style.transform = ''; sheet.style.opacity = ''; };
1433}
1573}
1434
1574
1435// ───────────────────────────────────────────────────────────────────────────
1575// ───────────────────────────────────────────────────────────────────────────
public/style.css +0 −11
@@ -635,7 +635,6 @@ button.danger:hover {
635 635 display: flex;
636 636 flex-direction: column;
637 637 overflow: hidden;
638 animation: preview-balloon 220ms cubic-bezier(0.2, 0.9, 0.2, 1.05);
639 638 }
640 639
641 640 .preview-fold {
@@ -778,17 +777,7 @@ button.danger:hover {
778 777 min-width: 8rem;
779 778 }
780 779
781 @keyframes preview-balloon {
782 from {
783 opacity: 0;
784 transform: scale(0.12);
785 }
786 780
787 to {
788 opacity: 1;
789 transform: scale(1);
790 }
791 }
792 781
793 782 /* =========================================================
794 783 TOAST
@@ -635,7 +635,6 @@ button.danger:hover {
635 display: flex;
635 display: flex;
636 flex-direction: column;
636 flex-direction: column;
637 overflow: hidden;
637 overflow: hidden;
638 animation: preview-balloon 220ms cubic-bezier(0.2, 0.9, 0.2, 1.05);
639}
638}
640
639
641.preview-fold {
640.preview-fold {
@@ -778,17 +777,7 @@ button.danger:hover {
778 min-width: 8rem;
777 min-width: 8rem;
779}
778}
780
779
781@keyframes preview-balloon {
782 from {
783 opacity: 0;
784 transform: scale(0.12);
785 }
786
780
787 to {
788 opacity: 1;
789 transform: scale(1);
790 }
791}
792
781
793/* =========================================================
782/* =========================================================
794 TOAST
783 TOAST