Scroll down button

Developer
Size
2,081 Kb
Views
54,648

How do I make an scroll down button?

What is a scroll down button? How do you make a scroll down button? This script and codes were developed by Andy Lorimer on 22 July 2022, Friday.

Scroll down button Previews

Scroll down button - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Scroll down button</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="wrapper"> <div class="col"> <button class="scroll"> <span class="instruct"></span> </button> </div>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='http://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Scroll down button - Script Codes CSS Codes

body { margin: 0; padding: 0;
}
button:focus { outline: none;
}
.wrapper { position: absolute; width: 100%; text-align: center; top: 50%; -webkit-transform: translateY(-50%); -moz-transform: translateY(-50%); -o-transform: translateY(-50%); -ms-transform: translateY(-50%); transform: translateY(-50%);
}
.col { display: inline-block; margin: 0 20px;
}
/* Mouse scroll */
.scroll { position: relative; display: inline-block; width: 20px; height: 30px; border: solid 2px black; background: none; border-radius: 8px; cursor: pointer;
}
.instruct { position: absolute; width: 3px; height: 8px; background: black; border-radius: 10px; top: 20%; left: 50%; -webkit-transform: translateX(-50%); -moz-transform: translateX(-50%); -o-transform: translateX(-50%); -ms-transform: translateX(-50%); transform: translateX(-50%);
}

Scroll down button - Script Codes JS Codes

// mouse
function scrollAni() { var $scroll = $('.instruct'); $scroll.fadeIn({queue: false, duration: 300}) $scroll.animate({ top: '50%' }, 300); $scroll.fadeOut({queue: true, duration: 300}); setTimeout( function() { $scroll.css({'top':'20%'}); }, 1000);
}
$(function() {
scrollAni();
setInterval(scrollAni, 2000);
});
Scroll down button - Script Codes
Scroll down button - Script Codes
Home Page Home
Developer Andy Lorimer
Username andylorimer
Uploaded July 22, 2022
Rating 3
Size 2,081 Kb
Views 54,648
Do you need developer help for Scroll down button?

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!

Andy Lorimer (andylorimer) Script Codes
Create amazing sales emails 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!