Ver Mensaje Individual
  #4 (permalink)  
Antiguo 20/01/2013, 19:57
jjeshuacm1
 
Fecha de Ingreso: septiembre-2012
Mensajes: 73
Antigüedad: 11 años, 8 meses
Puntos: 0
Respuesta: como crear un scrollbar personalizado

lo solucione con css. y lo adapte a lo que queria

Código CSS:
Ver original
  1. /* For the "inset" look only */
  2. html {
  3.     overflow: auto;
  4. }
  5.  
  6.  
  7. /* Let's get this party started */
  8. ::-webkit-scrollbar {
  9.     width: 5px;
  10.     height: 5px;
  11. }
  12.  
  13. /* Track seguimiento*/
  14. ::-webkit-scrollbar-track {
  15.     -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
  16.     -webkit-border-radius: 10px;
  17.     border-radius: 10px;
  18. }
  19. /* boton de scrollbar
  20.  
  21. ::-webkit-scrollbar-button:start:decrement,
  22. ::-webkit-scrollbar-button:end:increment {
  23.     background-color:#CCC;
  24. display: block;
  25. height: 20px;
  26. }*/
  27.  
  28. /* Handle  manipular scroll*/
  29. ::-webkit-scrollbar-thumb {
  30.     -webkit-border-radius: 10px;
  31.     border-radius: 10px;
  32.  
  33.     background: rgba(255,77,0,0.8);
  34.     -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5);
  35. }
  36. ::-webkit-scrollbar-thumb:window-inactive {
  37.    
  38.     background: rgba(255,77,0,0.4);
  39.    
  40.    
  41. }