## Introduction Here we will talk about simplified version of the CSS Scrolling Animations, we will focus in 2 main ways of implementing this scroll animation only with css all both using the `animation-timeline` and ``animation-range``` - [here is the specification](https://drafts.csswg.org/scroll-animations/#view-notation) > This is a WIP draft, and is subject to change but in chrome is already working, as soon as it is finalized we will update this post ## The problem The problem is that we have to use a lot of javascript to make this work, and we are not using the native scroll animations, so we need to implement our own scroll animations. ## The solution We will use the `animation-timeline:view()` and `animation-timeline:scroll()` to make the scroll animations, and we will use the `animation-range` to define the duration not in time but in % of entrace and exit of the animation, or in % of the total scroll animation of parent element. ### Based on `animation-timeline:scroll()` this kind of animation is used based on the scroll position of the parent overflow container
animation-timeline:view() to the css of the div and set an animation-range to define the duration of the entrance and exit of the animation in this case we set the entrance to 10% of the screen and the end when cover the 40% of the screen after that we can add the @keyframe animation name to use this as the starting and end point of the animation getting the code here is an example: