Customise Scroll Bar with css
How do I make an customise scroll bar with css?
What is a customise scroll bar with css? How do you make a customise scroll bar with css? This script and codes were developed by Tommy on 30 December 2022, Friday.
Customise Scroll Bar with css - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Customise Scroll Bar with css</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ @import url(https://fonts.googleapis.com/css?family=Roboto);
html,
body { font-family: 'Roboto', sans-serif;
}
.sidebar { width: 200px; background: #ddd; overflow: auto;
}
.sidebar li { list-style-type: none; padding: 10px 0;
}
footer { text-align: center;
}
.height { max-height: 200px;
}
::-webkit-scrollbar { width: 16px; background-color: #cccccc;
}
::-webkit-scrollbar-thumb { background-color: #B03C3F; border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background-color: #bb4043;
}
::-webkit-scrollbar-thumb:active { background-color: #9d3638;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div class="container"> <div class="sidebar"> <ul> <li>Happy!</li> <li>Happy!</li> <li>Happy!</li> <li>Happy!</li> <li>Happy!</li> <li>Happy!</li> <li>Happy!</li> <li>Happy!</li> <li>Happy!</li> <li>Happy!</li> <li>Happy!</li> <li>Happy!</li> <li>Happy!</li> <li>Happy!</li> <li>Happy!</li> <li>Happy!</li> <li>Happy!</li> <li>Happy!</li> <li>Happy!</li> <li>Happy!</li> <li>Happy!</li> <li>Happy!</li> <li>Happy!</li> <li>Happy!</li> <li>Happy!</li> <li>Happy!</li> <li>Happy!</li> <li>Happy!</li> <li>Happy!</li> <li>Happy!</li> <li>Happy!</li> <li>Happy!</li> <li>Happy!</li> <li>Happy!</li> <li>Happy!</li> <li>Happy!</li> <li>Happy!</li> <li>Happy!</li> <li>Happy!</li> <li>Happy!</li> <li>Happy!</li> <li>Happy!</li> <li>Happy!</li> <li>Happy!</li> <li>Happy!</li> <li>Happy!</li> <li>Happy!</li> <li>Happy!</li> </ul> </div>
</div>
<footer>FOOTER</footer> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Customise Scroll Bar with css - Script Codes CSS Codes
@import url(https://fonts.googleapis.com/css?family=Roboto);
html,
body { font-family: 'Roboto', sans-serif;
}
.sidebar { width: 200px; background: #ddd; overflow: auto;
}
.sidebar li { list-style-type: none; padding: 10px 0;
}
footer { text-align: center;
}
.height { max-height: 200px;
}
::-webkit-scrollbar { width: 16px; background-color: #cccccc;
}
::-webkit-scrollbar-thumb { background-color: #B03C3F; border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background-color: #bb4043;
}
::-webkit-scrollbar-thumb:active { background-color: #9d3638;
}
Customise Scroll Bar with css - Script Codes JS Codes
$(function(){ var screenHeight = $(window).height(); $(".sidebar").css("height",screenHeight);
});
$("a").click(function(){ $(".sidebar").toggleClass("height");
});
$(window).scroll(function(){ var scroll = $(window).scrollTop(); console.log(scroll);
});
Developer | Tommy |
Username | hoehoe |
Uploaded | December 30, 2022 |
Rating | 3 |
Size | 2,853 Kb |
Views | 54,648 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Custom checbox with css | 2,825 Kb |
Flex box | 2,171 Kb |
Timeline with CSS | 2,552 Kb |
Web SQL | 1,983 Kb |
CSS Sub-orderd list | 1,965 Kb |
Parallax with only css | 3,096 Kb |
Materialize css | 3,074 Kb |
Vue with axios sample | 2,991 Kb |
CSS animation | 2,194 Kb |
Adding FontAwsome icon via CSS pseudo vs fa class | 2,614 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Heartbeat | Apetrov | 2,079 Kb |
A Pen by Malith Hettiarachchi | MalZiiirA | 5,531 Kb |
Vanilla JS - A toggleClass function | Woodwork | 2,532 Kb |
Nice textured background | Hans | 2,659 Kb |
Sidebar Thing | Jonambas | 2,779 Kb |
Konami Code Easter Egg | Teolitto | 3,051 Kb |
Cloud upload | Jaflo | 2,774 Kb |
Coburg Banks SVG Logo | Mjtweaver | 3,875 Kb |
CSS Letter animations | Sladix | 2,116 Kb |
Mega Menu by Joni | Asakasinsky | 3,171 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!