“CSS de barra de desplazamiento” Código de respuesta

barra de desplazamiento personalizado

body::-webkit-scrollbar {
  width: 12px;               /* width of the entire scrollbar */
}
body::-webkit-scrollbar-track {
  background: orange;        /* color of the tracking area */
}
body::-webkit-scrollbar-thumb {
  background-color: blue;    /* color of the scroll thumb */
  border-radius: 20px;       /* roundness of the scroll thumb */
  border: 3px solid orange;  /* creates padding around scroll thumb */
}
Elated Eagle

Cambiar el color de la barra de desplazamiento

.scrollable-element {
  scrollbar-color: red yellow; /* red is for the thumb and yellow is for the track */
}
Super Sloth

Coustomize Srollbar

::-webkit-scrollbar {
    width: 12px;
}
 
::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3); 
    border-radius: 10px;
}
 
::-webkit-scrollbar-thumb {
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5); 
}
Inexpensive Ibis

CSS Editar barra de desplazamiento

::-webkit-scrollbar{width:6px;border-left:1px solid #E6ECF8;}
::-webkit-scrollbar-thumb{background-color:#d6872c;}
Doubtful Dog

barra de desplazamiento CSS VW

body {
  width: calc(100vw - (100vw - 100%));
}
Lazurite

CSS de barra de desplazamiento

<- modern css scrollbar css ->
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
  }
    ::-webkit-scrollbar-track {
    background: transparent; 
  }
    ::-webkit-scrollbar-thumb {
    background: #888; 
      border-radius:10px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #555; 
  } 
Aryamitra Chaudhuri

Respuestas similares a “CSS de barra de desplazamiento”

Preguntas similares a “CSS de barra de desplazamiento”

Más respuestas relacionadas con “CSS de barra de desplazamiento” en CSS

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código