The platform for continuously improving AI agents.
@property --fade-before {
syntax: "<length>";
inherits: false;
initial-value: 0px;
}
@property --fade-after {
syntax: "<length>";
inherits: false;
initial-value: 0px;
}
@keyframes reveal-scroll-start {
from {
--fade-before: 0px;
}
to {
--fade-before: var(--scroll-fade-size, 12px);
}
}
@keyframes reveal-scroll-end {
from {
--fade-after: var(--scroll-fade-size, 12px);
}
to {
--fade-after: 0px;
}
}
@supports (animation-timeline: scroll(self)) and (animation-range: 0px 24px) {
.scroll-fade-y,
.scroll-fade-x {
mask-image: linear-gradient(
var(--fade-direction),
transparent,
black var(--fade-before),
black calc(100% - var(--fade-after)),
transparent
);
animation:
reveal-scroll-start 1ms linear both,
reveal-scroll-end 1ms linear both;
animation-timeline: scroll(self var(--fade-axis));
animation-range:
0 24px,
calc(100% - 24px) 100%;
}
.scroll-fade-y {
--fade-axis: block;
--fade-direction: to bottom;
scroll-padding-block: var(--scroll-fade-size, 12px);
}
.scroll-fade-x {
--fade-axis: inline;
--fade-direction: to right;
scroll-padding-inline: var(--scroll-fade-size, 12px);
}
.scroll-fade-x:dir(rtl) {
--fade-direction: to left;
}
/* The sticky table header occupies the top edge of this scrollport. */
.scroll-fade-bottom {
mask-image: linear-gradient(
to bottom,
black 0,
black calc(100% - var(--fade-after)),
transparent 100%
);
animation: reveal-scroll-end 1ms linear both;
animation-timeline: scroll(self block);
animation-range: calc(100% - 24px) 100%;
scroll-padding-bottom: var(--scroll-fade-size, 12px);
}
}
@media (prefers-reduced-motion: no-preference) and (forced-colors: none) {
.status-shimmer {
color: transparent;
background-image: linear-gradient(
110deg,
var(--muted-foreground) 40%,
var(--foreground) 50%,
var(--muted-foreground) 60%
);
background-clip: text;
background-size: 250% 100%;
animation: status-shimmer 2s linear infinite;
}
}
@keyframes status-shimmer {
from {
background-position: 100% center;
}
to {
background-position: 0% center;
}
}