Mouse scroll

Developer
Size
1,860 Kb
Views
26,312

How do I make an mouse scroll?

Mouse scroll animation element. What is a mouse scroll? How do you make a mouse scroll? This script and codes were developed by Leo on 16 October 2022, Sunday.

Mouse scroll Previews

Mouse scroll - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Mouse scroll</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div id="mouse"><span></span></div> <script src="js/index.js"></script>
</body>
</html>

Mouse scroll - Script Codes CSS Codes

body { background: #fac967;
}
div#mouse { position: absolute; margin: auto; top: 0; left: 0; bottom: 0; right: 0; width: 50px; height: 90px; border: 5px #fff solid; border-radius: 40px;
}
div#mouse > span { position: absolute; margin: auto; top: -40%; left: 0; bottom: 0; right: 0; width: 20px; height: 20px; background: #fff; border-radius: 40px; animation: mousescroll 2s cubic-bezier(0.250, 0.100, 0.250, 1.000) infinite; -o-animation: mousescroll 2s cubic-bezier(0.250, 0.100, 0.250, 1.000) infinite; -moz-animation: mousescroll 2s cubic-bezier(0.250, 0.100, 0.250, 1.000) infinite; -webkit-animation: mousescroll 2s cubic-bezier(0.250, 0.100, 0.250, 1.000) infinite;
}
@keyframes mousescroll { from { transform: translateY(0) } 40% { transform: translateY(200%) } 60% { opacity: 1 } to { transform: translateY(200%); opacity: 0; )}
}
@-o-keyframes mousescroll { from { -o-transform: translateY(0) } 40% { -o-transform: translateY(200%) } 60% { opacity: 1 } to { -o-transform: translateY(200%); opacity: 0; )}
}
@-moz-keyframes mousescroll { from { -moz-transform: translateY(0) } 40% { -moz-transform: translateY(200%) } 60% { opacity: 1 } to { -moz-transform: translateY(200%); opacity: 0; )}
}
@-webkit-keyframes mousescroll { from { -webkit-transform: translateY(0) } 40% { -webkit-transform: translateY(200%) } 60% { opacity: 1 } to { -webkit-transform: translateY(200%); opacity: 0; )}
}

Mouse scroll - Script Codes JS Codes

// not today
Mouse scroll - Script Codes
Mouse scroll - Script Codes
Home Page Home
Developer Leo
Username leonard
Uploaded October 16, 2022
Rating 3
Size 1,860 Kb
Views 26,312
Do you need developer help for Mouse scroll?

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!

Leo (leonard) Script Codes
Create amazing blog posts 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!