@property --docs-sidebar-index { syntax: ''; inherits: false; initial-value: 0; } @media (prefers-reduced-motion: no-preference) { .docs-sidebar-level[data-level-enter]:has(> a) ul:not(ul ul) > li, .docs-sidebar-level[data-level-enter] ul:not(ul ul) > li:not(:first-child) { animation: docs-sidebar-level-enter 400ms cubic-bezier(0.33, 1, 0.68, 1) backwards; animation-delay: calc(40ms * var(--docs-sidebar-index)); } } .docs-sidebar-level[data-level-enter] ul > :nth-child(2) { --docs-sidebar-index: 1; } .docs-sidebar-level[data-level-enter] ul > :nth-child(3) { --docs-sidebar-index: 2; } .docs-sidebar-level[data-level-enter] ul > :nth-child(4) { --docs-sidebar-index: 3; } .docs-sidebar-level[data-level-enter] ul > :nth-child(5) { --docs-sidebar-index: 4; } .docs-sidebar-level[data-level-enter] ul > :nth-child(n + 6) { --docs-sidebar-index: 5; } @keyframes docs-sidebar-level-enter { from { opacity: 0; filter: blur(1px); } } @property --docs-sidebar-fade { syntax: ''; inherits: false; initial-value: 0px; } @keyframes docs-sidebar-fade { to { --docs-sidebar-fade: 32px; } } /* the fade grows over the first 48px of scroll, so at the top it covers no focus ring */ @supports (animation-timeline: scroll()) { .docs-sidebar-scroll { mask-image: linear-gradient( to bottom, transparent 0, rgb(0 0 0 / 0.15) calc(var(--docs-sidebar-fade) * 0.25), rgb(0 0 0 / 0.5) calc(var(--docs-sidebar-fade) * 0.5), rgb(0 0 0 / 0.85) calc(var(--docs-sidebar-fade) * 0.75), #000 var(--docs-sidebar-fade) ); animation-name: docs-sidebar-fade; animation-timing-function: linear; animation-fill-mode: both; animation-timeline: scroll(self block); animation-range: 0 48px; } }