.panel {
  padding: 1rem;
  background: white;
  color: black;
  border: 1px solid silver;
  pointer-timeline-name: --glow;
  pointer-timeline-axis: x;
}

.glow {
  block-size: 0.4rem;
  margin-block-end: 0.75rem;
  background: mediumseagreen;
  transform-origin: left;
  scale: 0 1;
}

@supports (animation-timeline: pointer()) {
  .glow {
    animation: fill linear both;
    animation-timeline: --glow;
  }
}

@keyframes fill {
  to {
    scale: 1 1;
  }
}