In my css I changed the scrollbar style and it looks like
body::-webkit-scrollbar { width: 0.7em; } body::-webkit-scrollbar-track { -webkit-box-shadow: inset 0 0 6px rgba(154,165,159,0.5); } body::-webkit-scrollbar-thumb { background-color: #D0CACD; outline: 1px solid LightGrey; box-shadow: 7px 7px 50px grey; }
It works. And if I add hover:
body::-webkit-scrollbar-thumb:hover { background-color: #b8c0bc; }
Then it also works when I add webkit animation to it, why it doesn't work. After adding the webkit animation, it looks like this:
body::-webkit-scrollbar-thumb:hover { background-color: #b8c0bc; -webkit-animation: scrollbig 1s; animation: scrollbig 2s; }
Animation does not play. What for? I use google chrome. And you can also see @keyframe animation @keyframe :
@-webkit-keyframes scrollbig { from {width: 0.6em;} to {width: 0.9em;} }
Tell us how to make an animation. Special thanks to.
user4861400
source share