Skip to content

Files

Latest commit

 

History

History
29 lines (24 loc) · 1.43 KB

css-scroll-animations.md

File metadata and controls

29 lines (24 loc) · 1.43 KB

CSS Scroll-Driven Animations (view-timeline, animation-timeline, view())

@keyframes slide-left {
    from { transform: scale(0.7); }
    to   { transform: scale(1); }
}
.scroll-animate-slide-left {
    transform-origin: top right;
    animation: slide-left ease-out both;
    animation-timeline: view(block -64px);
    animation-range: entry 0% entry 50%;
}

Examples