MAGAZINE STYLE

Pages

Saturday, 8 November 2014

A SIMPLE AND CLASSIC SCROLLBAR FOR MY WORDPRESS SITE AND BLOGSPOT

Scrollbar is a wonderful element in HTML. Scrollbar look is also as important as your themes look. Scrollbar is an element which can give a wonderful experience to the person who visit on your site.


Step 1 :- Just copy the code given below


::-webkit-scrollbar {
height: 20px;
width: 20px;

overflow: visible;
}
::-webkit-scrollbar-corner {
display: none;
background: #f5f5f5;
}

::-webkit-scrollbar-button:vertical:increment {
border-radius: 100px;height: 20px;width: 20px;
background-color: rgba(0,0,0,.2);background-image: url('2.png');background-size: 20px 20px;
}
::-webkit-scrollbar-button:vertical:decrement {
border-radius: 100px;height: 10px;height: 20px;width: 20px;
background-color: rgba(0,0,0,.2);background-image: url('1.png');background-size: 20px 20px;
}

::-webkit-scrollbar-track {
-moz-background-clip: border;
-webkit-background-clip: border;
background-clip: padding-box;
background-color: transparent;
}

::-webkit-scrollbar-track:vertical, ::-webkit-scrollbar-track:horizontal {
border-left-width: 0;
border-right-width: 0;
}

::-webkit-scrollbar-track:vertical,::-webkit-scrollbar-track:horizontal,::-webkit-scrollbar-thumb:vertical,::-webkit-scrollbar-thumb:horizontal,::-webkit-scrollbar-track:vertical,::-webkit-scrollbar-track:horizontal,::-webkit-scrollbar-thumb:vertical,::-webkit-scrollbar-thumb:horizontal {
border-style: solid;
border-color: transparent;
}

::-webkit-scrollbar-thumb {
-webkit-box-shadow: inset 1px 1px 0 rgba(0,0,0,.1),inset 0 -1px 0 rgba(0,0,0,.07);
background-clip: padding-box;
background-color: rgba(0,0,0,.2);
min-height: 200px;
padding-top: 100px;
border:7px solid #f5f5f5;
}

::-webkit-scrollbar-thumb:hover {
-webkit-box-shadow: inset 1px 1px 1px rgba(0,0,0,.25);
background-color: rgba(0,0,0,.4);
}

::-webkit-scrollbar-thumb:active {
-webkit-box-shadow: inset 1px 1px 3px rgba(0,0,0,.35);
background-color: rgba(0,0,0,.5);
}
::-webkit-scrollbar-button:hover {
-webkit-box-shadow: inset 1px 1px 1px rgba(0,0,0,.25);
background-color: rgba(0,0,0,.4);
}

::-webkit-scrollbar-button:active {
-webkit-box-shadow: inset 1px 1px 3px rgba(0,0,0,.35);
background-color: rgba(0,0,0,.5);
}
::-webkit-scrollbar-thumb:vertical, ::-webkit-scrollbar-thumb:horizontal {
border: 7px solid transparent;
}



LIVE DEMO

just copy the code inside box
Step 2 :- Then open editors.

editor in wordpress and blogger
editors in blogger and wordpress

Now, you get the a cool scrollbar for your site.

Thank you

No comments:

Post a Comment