The overflow-anchor property controls an element's participation in scroll anchoring — a mechanism that prevents scroll "jumps" when content above the viewport changes (e.g. lazy-loaded images). Automatic in all modern browsers..animated-banner {
overflow-anchor: none;
}.comments-list {
overflow-anchor: auto;
}
.carousel {
overflow-anchor: none;
}autoElement may serve as an anchor (default).noneElement and descendants are excluded from anchor selection — useful for frequently-resizing elements (carousels, animations).CSS Scroll Anchoring Module Level 1Editor's DraftW3CMDN