Forum Discussion
Change scroll panel scroller color
Hello Heroes,
Is there a way to change the scroll bar color? Not the background color of the box that you put objects in, but the actual scroll bar itself?
Jesse
57 Replies
Hi Jessie,
You can check out all of the options you have to format your scrolling panel in our documentation here.
- maxmaizelsCommunity Member
yes
i now see these options,
but they do not seem to address the need to make the scroll bar more salient
perhaps to make it wider or with a stroke or a different color- JessieBernal-f8Community Member
Has anyone figured out how to change/edit the actual scroll bar yet?
- JessicaBernal-4Community Member
Hi Leslie -
Thank you for writing back. I think what I'm asking for and probably the community is to change the scrollbar itself, the part the user must click on to drag the text up or down. When we use the formatting suggestions you've sent, it does not change that area. It created a border outline of the entire scroll box (see attached). I've circled the section which I'm referring to.
The orange shape style is not useful, I want the grey scroll bar to be larger and also a different color. Can you send direction for that?
You are correct Max.
I apologize for any confusion, I was sharing the documentation with Jessie.
You must still be subscribed to the conversation here Max :)
Thanks for confirming Jessie.
We have an open feature request specific to updating the scrollbar color in the HTML5 output.
I'm adding this conversation to the report so that we can track the user requests and update you here if we can.
I wanted to share some information about how we manage these feature requests as that may be helpful.
- DaleneGoosenCommunity Member
Hi,
I agree with Max. The current scrollbar is not user-friendly and you can hardly notice it. I do not want to have to point it out to my learners - they should be able to see it. We need to be able to either control the way it looks or have more options to choose from when formatting it.
- MikeJames-01a94Community Member
I don's use the scrollbar to control the panel.Javascript can do anything.
Hi Mike,
Neat example and thanks for sharing! Are you able to include the .story file here for folks to take a look under the hood? That'll help if they need to recreate the same thing.
- maxmaizelsCommunity Member
wow. i am eager to learn how to do this
thanks
max
- SnorrskiCommunity Member
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:
- maxmaizelsCommunity 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- SnorrskiCommunity Member
Sure thing. I simply put the script to trigger on timeline start, on the page where scroll panel is.
- eloiselerisson-Community Member
Hello,
I'd also say that if you want to completely remove the scroll bar, just set the width to 0px. :)
- maxmaizelsCommunity Member
wow!
works, thanks for sharing
m
- AlexandraAngeloCommunity Member
That's a great workaround Snorre! Is it possible to apply it to the main menu scrollbar as well?
We switched from SL360 to SL3 mid-project and the default style makes me want to cry: looks so 90's and not in a good way. :/
- SnorrskiCommunity Member
Actually I have no idea. I haven't used the main menu at all for a long time. Do you have a course that is available vor viewing, in html5? I'd be happy to take a quick look.
Related Content
- 6 months ago
- 3 months ago
- 10 months ago