Forum Discussion
Change scroll panel scroller color
I have figured out a way to adapt the built-in scroll bar, through a small piece of javascript, that places a small style tag in the head of the html document.
Here I have changed the button to a dark aquamarine, and the background to off-white:
$("<style type='text/css'> .scrollarea-scrollbar:before { background-color:#F7F5F6 !important;} .scrollarea-btn:after { background-color:#4D839D !important;} </style>").appendTo("head");
.scrollarea-scrollbar:before
controls the bar background, while .scrollarea-btn:after controls
the button. You can also control the width, border radius etc. Here is a list of the styles you can easily change:
top: 0px;
left: 20px;
width: 10px;
height: 100%;
background: #ebebeb;
border-radius: 5px;
Note that if you wish to change the width, you shout also change the "left" property, by the inverse amount, ie. if you wish to double the width, to 20, you should subtract 10 from the left-property.
Here is the result of the above example:
Before:
After:
- maxmaizels7 years agoCommunity Member
looks like you figured out something important
but, would you please explain where the modifying script goes so as to
improve the articulate scroll bar
thanks
max- Snorrski7 years agoCommunity Member
Sure thing. I simply put the script to trigger on timeline start, on the page where scroll panel is.
- maxmaizels7 years agoCommunity Member
yes!
i could change color!
but, i attempted to make wider (20px) and narrower ?page as you suggested
with no luck.
this is a great feature!
m
- eloiselerisson-3 years agoCommunity Member
Hello,
I'd also say that if you want to completely remove the scroll bar, just set the width to 0px. :)
Related Content
- 6 months ago
- 3 months ago
- 10 months ago