Scroll Bar indicator
How do I make an scroll bar indicator?
What is a scroll bar indicator? How do you make a scroll bar indicator? This script and codes were developed by [SHM] on 17 January 2023, Tuesday.
Scroll Bar indicator - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Scroll Bar indicator</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="wrapper"> <div class="scroll-line"></div>
</div> <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Scroll Bar indicator - Script Codes CSS Codes
body{ height: 2500px;
}
.wrapper{ position: fixed; height: 90%; width: 2px; top: 50%; transform: translate(0%, -50%);
}
.scroll-line{ height: 0%; width: 2px; background: linear-gradient(90deg,#960080 0,#08f);
}
Scroll Bar indicator - Script Codes JS Codes
//capture scroll any percentage
$(window).scroll(function(){
var wintop = $(window).scrollTop(), docheight = $(document).height(), winheight = $(window).height(); var scrolled = (wintop/(docheight-winheight))*100; $('.scroll-line').css('height', (scrolled + '%'));
});
Developer | [SHM] |
Username | leon9208 |
Uploaded | January 17, 2023 |
Rating | 3 |
Size | 1,840 Kb |
Views | 8,096 |
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 |
Video mute | 2,131 Kb |
Glitch text effect | 3,674 Kb |
Hero zoom on scroll | 1,960 Kb |
Image autoscroll | 2,008 Kb |
Video header | 2,039 Kb |
Cyclotron | 1,798 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 |
Break Out | AzazelN28 | 12,431 Kb |
A Pen by Miro Olma | Programiro | 2,342 Kb |
Growing Root - Scroll control - CANVAS | Cjonasw | 2,342 Kb |
Voting App - register | MatheusLima92 | 1,948 Kb |
React Vote Component | Souporserious | 5,465 Kb |
A Pen by boilzzz | Boilzzz | 2,761 Kb |
Bootstrap 4 Gridsystem Demo | Rivella50 | 1,535 Kb |
Scroll to view if element partially out of view port height | ChrisMaki | 2,104 Kb |
SVG Animation | Pollardld | 3,133 Kb |
Box Shadow Effects | Retrofuturistic | 2,143 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!