feat(web): add light client memory block and scroll animations
This commit is contained in:
parent
769e25a705
commit
e865df33a4
8 changed files with 311 additions and 6 deletions
207
src/styles.css
207
src/styles.css
|
|
@ -1879,3 +1879,210 @@ p {
|
|||
.waveform i:nth-child(11n + 11) {
|
||||
height: 24px;
|
||||
}
|
||||
|
||||
/* Lightweight client block */
|
||||
.light-section {
|
||||
padding-block: 85px 100px;
|
||||
border-top: 1px solid var(--line);
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1.2fr;
|
||||
gap: 110px;
|
||||
align-items: start;
|
||||
}
|
||||
.light-intro > p {
|
||||
margin-top: 25px;
|
||||
max-width: 40ch;
|
||||
}
|
||||
.light-meters {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 30px;
|
||||
}
|
||||
.meter-head {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: baseline;
|
||||
gap: 16px;
|
||||
margin-bottom: 10px;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
.meter-head strong {
|
||||
font-size: 1.15rem;
|
||||
font-variant-numeric: tabular-nums;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.meter.vnox .meter-head strong {
|
||||
color: var(--sand);
|
||||
}
|
||||
.meter-track {
|
||||
height: 14px;
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 4px;
|
||||
overflow: hidden;
|
||||
}
|
||||
.meter-track i {
|
||||
display: block;
|
||||
height: 100%;
|
||||
width: var(--w);
|
||||
transform-origin: left;
|
||||
border-radius: 3px;
|
||||
}
|
||||
.meter.vnox .meter-track i {
|
||||
background: var(--sand);
|
||||
}
|
||||
.meter.electron .meter-track i {
|
||||
background: #5a5752;
|
||||
}
|
||||
.meter-note {
|
||||
font-size: 0.82rem;
|
||||
margin-top: 12px;
|
||||
max-width: 52ch;
|
||||
}
|
||||
.light-caption {
|
||||
color: var(--muted);
|
||||
margin: -10px 0 0;
|
||||
}
|
||||
@media (max-width: 1100px) {
|
||||
.light-section {
|
||||
gap: 60px;
|
||||
}
|
||||
}
|
||||
@media (max-width: 800px) {
|
||||
.light-section {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 40px;
|
||||
padding-block: 60px 70px;
|
||||
}
|
||||
}
|
||||
@media (max-width: 480px) {
|
||||
.meter-head {
|
||||
flex-wrap: wrap;
|
||||
gap: 2px 16px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Motion: everything below is off when the visitor prefers reduced motion. */
|
||||
@media (prefers-reduced-motion: no-preference) {
|
||||
.motion .reveal {
|
||||
opacity: 0;
|
||||
transform: translateY(22px);
|
||||
transition:
|
||||
opacity 0.7s ease,
|
||||
transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
|
||||
}
|
||||
.motion .reveal.in {
|
||||
opacity: 1;
|
||||
transform: none;
|
||||
}
|
||||
.motion .meter-track i {
|
||||
transform: scaleX(0);
|
||||
}
|
||||
.motion .light-section.in .meter-track i {
|
||||
transform: scaleX(1);
|
||||
transition: transform 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s;
|
||||
}
|
||||
.motion .light-section.in .meter.electron .meter-track i {
|
||||
transition-duration: 2.2s;
|
||||
}
|
||||
.enter .hero-copy > * {
|
||||
animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
|
||||
}
|
||||
.enter .hero-copy > :nth-child(2) {
|
||||
animation-delay: 0.08s;
|
||||
}
|
||||
.enter .hero-copy > :nth-child(3) {
|
||||
animation-delay: 0.16s;
|
||||
}
|
||||
.enter .hero-copy > :nth-child(4) {
|
||||
animation-delay: 0.24s;
|
||||
}
|
||||
.enter .hero-copy > :nth-child(5) {
|
||||
animation-delay: 0.32s;
|
||||
}
|
||||
.enter .diagram-wrap {
|
||||
animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s backwards;
|
||||
}
|
||||
#diagram-content > * {
|
||||
animation: fade 0.35s ease;
|
||||
}
|
||||
.diagram-call .connection-dot,
|
||||
.person-dot {
|
||||
animation: pulse 2.4s ease-in-out infinite;
|
||||
}
|
||||
.person-dot.second {
|
||||
animation-delay: 0.8s;
|
||||
}
|
||||
.waveform i {
|
||||
animation: wave 1.2s ease-in-out infinite;
|
||||
transform-origin: center;
|
||||
}
|
||||
.waveform i:nth-child(odd) {
|
||||
animation-duration: 0.9s;
|
||||
}
|
||||
.waveform i:nth-child(3n) {
|
||||
animation-delay: -0.4s;
|
||||
}
|
||||
.waveform i:nth-child(4n) {
|
||||
animation-delay: -0.7s;
|
||||
}
|
||||
.button,
|
||||
.point-icon,
|
||||
.theme-option,
|
||||
.client-image,
|
||||
.faq summary span {
|
||||
transition:
|
||||
transform 0.2s ease,
|
||||
background-color 0.2s ease,
|
||||
border-color 0.2s ease;
|
||||
}
|
||||
.button:hover {
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
.button:active {
|
||||
transform: none;
|
||||
}
|
||||
.project-points article:hover .point-icon {
|
||||
transform: translateY(-3px);
|
||||
background: #2e2d2b;
|
||||
}
|
||||
.theme-option:hover {
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
.client-image:hover {
|
||||
border-color: #6b6559;
|
||||
}
|
||||
.roadmap-columns article {
|
||||
transition: border-color 0.25s ease;
|
||||
}
|
||||
.roadmap-columns article:hover {
|
||||
border-top-color: var(--sand);
|
||||
}
|
||||
}
|
||||
@keyframes rise {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(18px);
|
||||
}
|
||||
}
|
||||
@keyframes fade {
|
||||
from {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
@keyframes pulse {
|
||||
50% {
|
||||
opacity: 0.35;
|
||||
}
|
||||
}
|
||||
@keyframes wave {
|
||||
50% {
|
||||
transform: scaleY(0.45);
|
||||
}
|
||||
}
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
* {
|
||||
animation: none !important;
|
||||
transition: none !important;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue