webkit-scrollbar 是否与 webkit-transition 一起使用? [英] Does webkit-scrollbar work with webkit-transition?

查看:34
本文介绍了webkit-scrollbar 是否与 webkit-transition 一起使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要一个自定义的 webkit-scrollbar 来为悬停状态设置不同的背景颜色.下面的代码更改悬停时的颜色,但不设置任何动画.它适用于 div,所以我怀疑 webkit-scrollbar 与过渡效果不佳.

I want a custom webkit-scrollbar to animate a different background color for the hover state. The code below changes the color on hover but doesn't animate anything. It works on a div so I suspect webkit-scrollbar doesn't play nice with transitions.

::-webkit-scrollbar-thumb {
    background-color: #a8a8a8;
    -webkit-transition: background-color 1s linear;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #f6f6f6;
}

推荐答案

不,它没有实现.我们应该在 http://bugs.webkit.org/

No, it is not implemented. We should file a bug on http://bugs.webkit.org/

这篇关于webkit-scrollbar 是否与 webkit-transition 一起使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆