Web: wiazania doklejone do krawedzi kart - usuniete plywanie kafelki (drift)

This commit is contained in:
tisachi
2026-10-20 02:00:50 +02:00
parent 4f308603cb
commit 8b91cacfe2
2 changed files with 9 additions and 69 deletions

View File

@@ -58,7 +58,7 @@ const HUB_RADIUS = 78;
/**
* Diagram rdzenia (lg+): kafelki uczestników z naturalną wysokością (nic się nie
* ucina), przerywane wiązania mierzone w DOM (ResizeObserver) i delikatny dryf.
* ucina) i przerywane wiązania mierzone w DOM (ResizeObserver).
*/
function HubDiagram() {
const containerRef = useRef<HTMLDivElement>(null);
@@ -154,23 +154,23 @@ function HubDiagram() {
</div>
</div>
<div ref={trenerRef} className="col-start-1 row-start-1 flex h-full items-center justify-start">
<div className="drift-1 h-full w-[65%]">
<div className="col-start-1 row-start-1 flex h-full items-center justify-start">
<div ref={trenerRef} className="h-full w-[65%]">
<ParticipantCard participant={PARTICIPANTS[1]} className="h-full" />
</div>
</div>
<div ref={silowniaRef} className="col-start-1 row-start-2 flex h-full items-center justify-start">
<div className="drift-2 h-full w-[65%]">
<div className="col-start-1 row-start-2 flex h-full items-center justify-start">
<div ref={silowniaRef} className="h-full w-[65%]">
<ParticipantCard participant={PARTICIPANTS[2]} className="h-full" />
</div>
</div>
<div ref={cwiczacyRef} className="col-start-2 row-start-1 flex h-full items-center justify-end">
<div className="drift-3 h-full w-[65%]">
<div className="col-start-2 row-start-1 flex h-full items-center justify-end">
<div ref={cwiczacyRef} className="h-full w-[65%]">
<ParticipantCard participant={PARTICIPANTS[0]} className="h-full" />
</div>
</div>
<div ref={adminRef} className="col-start-2 row-start-2 flex h-full items-center justify-end">
<div className="drift-4 h-full w-[65%]">
<div className="col-start-2 row-start-2 flex h-full items-center justify-end">
<div ref={adminRef} className="h-full w-[65%]">
<ParticipantCard participant={PARTICIPANTS[3]} className="h-full" />
</div>
</div>

View File

@@ -165,59 +165,6 @@
animation: dash-flow 1.4s linear infinite;
}
/* Delikatne pływanie kafelków uczestników wokół rdzenia */
@keyframes drift-1 {
from {
transform: translate3d(0, 0, 0) rotate(0deg);
}
to {
transform: translate3d(0, -9px, 0) rotate(-0.5deg);
}
}
@keyframes drift-2 {
from {
transform: translate3d(0, 0, 0) rotate(0deg);
}
to {
transform: translate3d(7px, 6px, 0) rotate(0.5deg);
}
}
@keyframes drift-3 {
from {
transform: translate3d(0, 0, 0) rotate(0deg);
}
to {
transform: translate3d(-7px, 8px, 0) rotate(-0.4deg);
}
}
@keyframes drift-4 {
from {
transform: translate3d(0, 0, 0) rotate(0deg);
}
to {
transform: translate3d(6px, -8px, 0) rotate(0.4deg);
}
}
.drift-1 {
animation: drift-1 9s ease-in-out infinite alternate;
}
.drift-2 {
animation: drift-2 11s ease-in-out infinite alternate;
}
.drift-3 {
animation: drift-3 13s ease-in-out infinite alternate;
}
.drift-4 {
animation: drift-4 10s ease-in-out infinite alternate;
}
/* Wejścia sekcji na scroll (IntersectionObserver dodaje .revealed) */
.reveal {
opacity: 0;
@@ -331,13 +278,6 @@
animation: none;
}
.drift-1,
.drift-2,
.drift-3,
.drift-4 {
animation: none;
}
.reveal {
opacity: 1;
transform: none;