#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere
TypeScript dockerhacktoberfestjavapdfpdf-converterpdf-editorpdf-manipulationpdf-mergerpdf-ocrpdf-toolspdf-web-appspdfmergerself-hosted
.item {
/* Collapses in place when leaving, so the rail closes the gap rather than snapping. */
transition:
height var(--motion-spring),
opacity var(--motion-base),
transform var(--motion-spring);
overflow: hidden;
}
.leaving {
height: 0;
opacity: 0;
transform: scale(0.6);
}
/* The rail sizes every svg to the glyph size; the ring is the whole control. */
.item svg.ring {
position: absolute;
inset: 0;
margin: auto;
width: 2rem;
height: 2rem;
/* Start at 12 o'clock and fill clockwise. */
transform: rotate(-90deg);
}
.track {
fill: none;
stroke: var(--c-border-strong);
opacity: 0.6;
}
.fill {
fill: none;
stroke: var(--c-primary);
stroke-linecap: round;
transition:
stroke-dashoffset 0.45s cubic-bezier(0.32, 0.72, 0, 1),
stroke var(--motion-base);
}
.item[data-state="done"] .fill {
stroke: var(--c-success);
}
.centre {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
color: var(--c-text);
font-variant-numeric: tabular-nums;
font-weight: var(--font-weight-semibold);
line-height: 1;
pointer-events: none;
}
.percent {
font-size: 0.5625rem; /* 9px */
letter-spacing: -0.02em;
}
.item svg.tick {
width: 0.875rem;
height: 0.875rem;
color: var(--c-success);
animation: tick-pop var(--motion-spring) both;
}
@keyframes tick-pop {
from {
transform: scale(0.4);
opacity: 0;
}
to {
transform: scale(1);
opacity: 1;
}
}
.tip {
display: flex;
flex-direction: column;
gap: 2px;
white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
.item,
.fill,
.tick {
transition: none;
animation: none;
}
}