-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscrollbar-custom.html
59 lines (43 loc) · 1.32 KB
/
scrollbar-custom.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<!-- Segue abaixo três formas de inserir o código de personalização da scrollbar:
1. Painel do Elementor: configurações => avançado => custom css
2. Painel WP => Aparência => Personalizar => CSS adicional
3. Colocando um widget HTML no final da página. Neste caso o código
deve estar dentro da tag <style>. Esta opção é melhor caso pretenda
transformar a página em template para exportar. -->
<style>
html, body {
max-width: 100%;
overflow-x: hidden;
}
::-webkit-scrollbar {
width: 8px; /* Largura scrollbar */
}
::-webkit-scrollbar-track {
background: #000000; /* Cor de fundo scrollbar */
}
::-webkit-scrollbar-thumb {
-webkit-border-radius: 3px; /* Arrendondamento borda */
border-radius: 3px; /* Arrendondamento borda */
background: linear-gradient(180deg, #e9ebc3, #e4cd5b);
border: 2px solid #F7FBFF
}
::-webkit-scrollbar-thumb:hover {
-webkit-border-radius: 3px;
border-radius: 3px;
background: linear-gradient(0deg, #e9ebc3, #e4cd5b);
border: 2px solid #F7FBFF
}
</style>
<!-- Segue abaixo uma opção do mesmo código
somente com o CSS de maneira simplificada -->
::-webkit-scrollbar {
width: 12px;
}
::-webkit-scrollbar-track {
background: #530068;
border-radius: 30px;
}
::-webkit-scrollbar-thumb{
background: #939393;
border-radius: 30px;
}