MCPcopy Create free account
hub / github.com/error311/FileRise / animateZonesCollapseAndThen

Function animateZonesCollapseAndThen

public/js/dragAndDrop.js:985–1013  ·  view source on GitHub ↗
(done)

Source from the content-addressed store, hash-verified

983}
984
985function animateZonesCollapseAndThen(done) {
986 const sb = getSidebar();
987 const top = getTopZone();
988 const cards = [];
989
990 if (sb) cards.push(...sb.querySelectorAll('#uploadCard, #folderManagementCard'));
991 if (top) cards.push(...top.querySelectorAll('#uploadCard, #folderManagementCard'));
992
993 if (!cards.length) {
994 done();
995 return;
996 }
997
998 // quick "rise away" animation
999 cards.forEach(card => {
1000 card.style.transition = 'transform 0.18s ease-out, opacity 0.18s ease-out';
1001 card.style.transform = 'translateY(-10px)';
1002 card.style.opacity = '0';
1003 });
1004
1005 setTimeout(() => {
1006 cards.forEach(card => {
1007 card.style.transition = '';
1008 card.style.transform = '';
1009 card.style.opacity = '';
1010 });
1011 done();
1012 }, 190);
1013}
1014
1015function ensureZonesToggle() {
1016 const host = getHeaderHost();

Callers

nothing calls this directly

Calls 3

getSidebarFunction · 0.85
getTopZoneFunction · 0.85
doneFunction · 0.85

Tested by

no test coverage detected