https://github.com/thyripian/thyripian.github.io
For web widgets
https://github.com/thyripian/thyripian.github.io
Last synced: 4 months ago
JSON representation
For web widgets
- Host: GitHub
- URL: https://github.com/thyripian/thyripian.github.io
- Owner: thyripian
- License: mit
- Created: 2024-09-15T23:11:44.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-16T02:06:12.000Z (almost 2 years ago)
- Last Synced: 2025-03-03T20:00:07.010Z (over 1 year ago)
- Language: HTML
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Return to Top Widget
#returnTopButton {
position: fixed;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
z-index: 1000;
padding: 10px 24px;
background-color: #1A73E8; /* Google's search button blue */
color: white;
border: none;
border-radius: 24px; /* Rounded corners */
cursor: pointer;
font-size: 14px;
font-weight: 500;
font-family: 'Roboto', sans-serif; /* Google's Roboto font */
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
text-transform: none;
}
#returnTopButton:hover {
background-color: #1765c1; /* Slightly darker blue for hover */
}
#returnTopButton:focus {
outline: none;
}
Return to Top
function scrollToTop() {
window.scrollTo({ top: 0, behavior: 'smooth' });
}