Jan 1, 2014

Customize Navigation Scroll-Bar With CSS3

on


Have you been searching for any thing which can change the design of navigation scroll-bar of your site. You might be wondering that how is it done? You should smile then, because finally you've arrived at the right place.

Changing the look and design of navigation scroll bar is not a hard task now. It's not hard because it can be customized very easily using CSS3 codes and another reason is I've already prepared a small stylesheet that will customize the look of navigation scroll bar whenever you site is opened.



So Here's the code

CSS

::-webkit-scrollbar-thumb:horizontal{height:10px;background-color:#eab92e;}

::-webkit-scrollbar-thumb:vertical{
width:10px;
background-color:#eab92e;/*box-shadow*/
-webkit-box-shadow:1px 1px 4px rgba(0,0,0,0.16);  
-moz-box-shadow:1px 1px 4px rgba(0,0,0,0.16);       
box-shadow:1px 1px 4px rgba(0,0,0,0.16);
}
::-webkit-scrollbar{
width:15px;
height:15px;
background:#EBEBEB;/*box-shadow*/
-webkit-box-shadow:inset 1px 1px 4px rgba(0,0,0,0.13);  
-moz-box-shadow:inset 1px 1px 4px rgba(0,0,0,0.13);       
box-shadow:inset 1px 1px 4px rgba(0,0,0,0.13);
}


Customize the Color

Replace the codes in yellow color with the any other color codes you want to be displayed in scroll-bar.


Playground For Advanced Learners

Yeah! got it right this is the playground for you by, where you can learn some more advanced things. So what are you waiting for start playing and start learning.







Final Words

Do not forget to show your gratitude by leaving your comments below. And yep this is very small post but I am confident that it has very great content including a mini-playground also for our beginner developers. So play with the codes and start learning the Css thing with me :-)

14 comments:

  1. Great work suryakant..
    Thanks for given such a great design

    ReplyDelete
    Replies
    1. Thanks For your appreciation Gaurav :)

      Delete
  2. This is an awesome Blogger Blog, Keep writing Suryakant sao

    ReplyDelete
  3. Awesome posts , I am loving it !

    ReplyDelete
    Replies
    1. Thanks for stopping by Alex :)
      Wish to see your comments again on my next post which I'm going to publish soon..

      Delete
  4. i neeed seven number scrool bar but i dont know how to find it please help me

    ReplyDelete
    Replies
    1. Hello Buddy! Add this code for seventh number scroll bar

      /* seventh Style Scroll Bar */
      ::-webkit-scrollbar
      {
      width: 10px;
      background-color: #F5F5F5;
      }

      ::-webkit-scrollbar-thumb
      {
      background-color: #F90;
      background-image: -webkit-linear-gradient(45deg,
      rgba(255, 255, 255, .2) 25%,
      transparent 25%,
      transparent 50%,
      rgba(255, 255, 255, .2) 50%,
      rgba(255, 255, 255, .2) 75%,
      transparent 75%,
      transparent)
      }

      Delete
  5. Hi Suryakant sao. I Am Daniyal..I Also Need 6 Number Style Would You Please Like To Give Me. It Is Difficult For Me To Put Accurate Code From There. Thank You

    ReplyDelete
    Replies
    1. Hey! Daniyal that's not a big deal. Here's the code

      ::-webkit-scrollbar-track
      {
      -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
      background-color: #F5F5F5;
      }

      ::-webkit-scrollbar
      {
      width: 10px;
      background-color: #F5F5F5;
      }

      ::-webkit-scrollbar-thumb
      {
      background-color: #0ae;

      background-image: -webkit-gradient(linear, 0 0, 0 100%,
      color-stop(.5, rgba(255, 255, 255, .2)),
      color-stop(.5, transparent), to(transparent));
      }

      Delete
  6. The post is amazing...till you dont try to read it with Firefox. Good job though.

    ReplyDelete
    Replies
    1. Nothings seems wrong with Firefox, I guess you might be using old age firefox

      Delete
  7. Hey guys great information for customize navigation scrollbar with CSS3
    Webdesign Services

    ReplyDelete
  8. great post! thanks

    ReplyDelete