+ 5


hy, guys I want to create an animation whereby when you scroll, a box by the side sticks to the top of the screen. I want to use HTML and CSS for it .

24th Sep 2018, 7:57 AM
C.code - avatar
3 Answers
+ 2
yes you can do this by makeing that box sticky ,visit https://w3schools.com for it's demo
24th Sep 2018, 8:15 AM
Adarsh.n. Bidari
Adarsh.n. Bidari - avatar
24th Sep 2018, 8:25 AM
KrOW - avatar
+ 1
Yo obviously need js because you need to attach a particular tag or element to a scroll event for it to stick at the top of the screen.
24th Sep 2018, 8:14 AM
JustCodeMore - avatar