Scroll Bar indicator

Developer
Size
1,840 Kb
Views
8,096

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 Previews

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 + '%'));
});
Scroll Bar indicator - Script Codes
Scroll Bar indicator - Script Codes
Home Page Home
Developer [SHM]
Username leon9208
Uploaded January 17, 2023
Rating 3
Size 1,840 Kb
Views 8,096
Do you need developer help for Scroll Bar indicator?

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!

[SHM] (leon9208) Script Codes
Create amazing video scripts with AI!

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!