使用jq更改垂直滚动条的背景色



我想更改滚动菜单栏的背景色,但由于某种原因,我发现jq代码不起作用。导航条是用bootstrap创建的。

$(".navbar-top-fixed").jqScrollAnim({
    rep: {start: 0, end: 500},
    animation: {type:'color', property:'background-color', end:[255,255,255, 1]}
});
.navbar-top-fixed{ 
  background-color: rgba(61, 61, 61, 0.5);
}

你需要一个彩色动画脚本,试试这个:https://github.com/jquery/jquery-color

最新更新