Back to Top Button - animated
How do I make an back to top button - animated?
What is a back to top button - animated? How do you make a back to top button - animated? This script and codes were developed by EricPorter on 09 January 2023, Monday.
Back to Top Button - animated - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Back to Top Button - animated</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.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! */ body { background: #111;
}
.backtotop { margin: 30px auto; width: 40px; height: 40px; cursor: pointer; border: 1px solid #888; background-image: linear-gradient(to top, rgba(255, 255, 255, 0.8) 50%, transparent 50%); background-position: top center; background-repeat: repeat; background-size: 100% 200%; transition: all 0.2s ease-out;
}
.backtotop svg { transition: all 0.3s ease;
}
.backtotop svg polygon { fill: #888; transition: all 0.2s ease-out;
}
.backtotop:hover { background-position: bottom center;
}
.backtotop:hover svg { transform: scale(1.6);
}
.backtotop:hover svg polygon { transition: all 1s ease-out; fill: #111;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div class="backtotop"> <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="40px" height="40px" viewBox="0 0 45 44"> <polygon fill="none" points="31.041,24.704 22.821,16.483 22.821,16.484 22.82,16.483 14.601,24.703 17.163,27.267 22.82,21.609 28.478,27.267 "></polygon> </svg>
</div>
</body>
</html>
Back to Top Button - animated - Script Codes CSS Codes
body { background: #111;
}
.backtotop { margin: 30px auto; width: 40px; height: 40px; cursor: pointer; border: 1px solid #888; background-image: linear-gradient(to top, rgba(255, 255, 255, 0.8) 50%, transparent 50%); background-position: top center; background-repeat: repeat; background-size: 100% 200%; transition: all 0.2s ease-out;
}
.backtotop svg { transition: all 0.3s ease;
}
.backtotop svg polygon { fill: #888; transition: all 0.2s ease-out;
}
.backtotop:hover { background-position: bottom center;
}
.backtotop:hover svg { transform: scale(1.6);
}
.backtotop:hover svg polygon { transition: all 1s ease-out; fill: #111;
}
Developer | EricPorter |
Username | EricPorter |
Uploaded | January 09, 2023 |
Rating | 3 |
Size | 2,680 Kb |
Views | 4,048 |
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 |
3d font animation - 1 class | 2,163 Kb |
CSS Vertical Centering Options | 3,521 Kb |
CSS Loading Spinner - 1 Div | 2,831 Kb |
Background animation - sliding divs | 2,287 Kb |
Image Slider - responsive, modular, autoplay | 6,135 Kb |
Floating Form Field Labels | 4,010 Kb |
Text Image Masking | 2,771 Kb |
Styled Contact Form - jQuery Validate | 4,663 Kb |
Flip Boxes | 2,716 Kb |
CSS Animated Bicycle | 3,460 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 |
CSS Colors | Alexpate | 2,232 Kb |
Ghost Buttons with CSS3 | Mithicher | 2,509 Kb |
Guidepopup | Wooljs | 3,747 Kb |
A Pen by Jim Savage | Madebyjam | 2,418 Kb |
TestTube CSS | EZPK | 2,710 Kb |
CSS Patterns | Alyda | 3,953 Kb |
FreeCodeCamp - Simon Game | Ivhed | 8,481 Kb |
SVG Animation | Pollardld | 3,133 Kb |
Product item | Mymahesh11 | 2,256 Kb |
Polygon Dodecahedron in CSS | Vennsoh | 7,606 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!