---
title: "So many ranges, so little time: A cheatsheet of animation-ranges for your next scroll-driven animation"
description: "CSS `animation-range` controls exactly when a `view()`-timeline scroll-driven animation starts and stops relative to an element's position in the viewport."
url: "https://swe.quest/articles/so-many-ranges-so-little-time-a-cheatsheet-of-animation-ranges-for-your-next-18f675af06ca744a"
canonical: "https://webkit.org/blog/17184/so-many-ranges-so-little-time-a-cheatsheet-of-animation-ranges-for-your-next-scroll-driven-animation/"
source: "WebKit"
published: "2025-07-09"
difficulty: "medium"
kind: "How-to"
reading_minutes: 8
tags: ["css","frontend","browsers"]
---

# So many ranges, so little time: A cheatsheet of animation-ranges for your next scroll-driven animation

A post on [WebKit](https://swe.quest/sources/webkit.md), published 2025-07-09, 8 min read, How-to. Original: [https://webkit.org/blog/17184/so-many-ranges-so-little-time-a-cheatsheet-of-animation-ranges-for-your-next-scroll-driven-animation/](https://webkit.org/blog/17184/so-many-ranges-so-little-time-a-cheatsheet-of-animation-ranges-for-your-next-scroll-driven-animation/)

## Summary

CSS \`animation-range\` controls exactly when a \`view()\`-timeline scroll-driven animation starts and stops relative to an element's position in the viewport. The six timeline-range-name values are cover, contain, entry, entry-crossing, exit and exit-crossing, each illustrated with a sliding-image example. The crossing variants differ from entry and exit mainly when the element is taller than the viewport. Range names can be combined as start/end pairs (e.g. \`contain exit\`) and offset with length-percentage values; when omitted, the defaults are entry 0% to exit 100%.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [CSS](https://swe.quest/tags/css.md) (Web & mobile)
- [Frontend](https://swe.quest/tags/frontend.md) (Web & mobile)
- [Browsers](https://swe.quest/tags/browsers.md) (Web & mobile)

## Prerequisites

- CSS animations and keyframes ([easy posts on CSS](https://swe.quest/tags/css.md?difficulty=easy))
- scroll-driven animation basics

## Keywords

animation-range, scroll-driven animations, view() timeline, WebKit

## Related posts

- [A guide to Scroll-driven Animations with just CSS](https://swe.quest/articles/a-guide-to-scroll-driven-animations-with-just-css-4e60392ccf274304.md): WebKit · 2025-06-20 · Medium · 9 min read · CSS, Frontend, Browsers, Accessibility
  CSS scroll-driven animations, now supported in Safari 26 beta, tie keyframe animations to scroll position instead of time using the animation-timeline property, with no JavaScript required.
- [Two lines of Cross-Document View Transitions code you can use on every website today](https://swe.quest/articles/two-lines-of-cross-document-view-transitions-code-you-can-use-on-every-website-87eda278df990c07.md): WebKit · 2025-05-21 · Medium · 4 min read · CSS, Browsers, Frontend, Accessibility
  Adding \`@view-transition { navigation: auto; }\` to a site's CSS enables cross-document View Transitions, so elements shared between pages stay fixed and everything else crossfades instead of flashing blank between navigations.
- [Release Notes for Safari Technology Preview 234](https://swe.quest/articles/release-notes-for-safari-technology-preview-234-c61c7e32fab07eaa.md): WebKit · 2025-12-19 · Easy · 5 min read · Browsers, CSS, Frontend
  Safari Technology Preview 234 adds Threaded Scroll-driven Animations, which update opacity, transform, filter and Motion Path animations off the main thread as scrolling happens, for smoother results on ProMotion displays.
- [Building Custom Animations in the Workflow Builder](https://swe.quest/articles/building-custom-animations-in-the-workflow-builder-94f541be651a6e1e.md): Slack Engineering · 2023-12-05 · Medium · 7 min read · React, Frontend, Product engineering
  Slack's Workflow Builder added drag-and-drop from a new steps sidebar into workflows by moving react-beautiful-dnd's DragDropContext to wrap the whole builder page, with two draggable/droppable lists.
- [Making Your React Native Gestures Feel Natural](https://swe.quest/articles/making-your-react-native-gestures-feel-natural-2f601419df32539e.md): Shopify Engineering · 2023-01-20 · Medium · 5 min read · React, Mobile, Frontend
  Draggable UI in React Native feels more natural when gesture end-handling accounts for release velocity, not just finger position.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
