Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Scroll to the Top Button to ABOUT Section #250

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions about.html
Original file line number Diff line number Diff line change
Expand Up @@ -376,10 +376,38 @@
transform: translateY(0);
}
}
:root { scroll-behavior: smooth; }
.stt {
position: fixed;
right: 0.2rem;
bottom: 1rem;
width: 2.5rem;
height: 2.5rem;
border-radius: 50%;
background: rgb(184, 35, 35)
url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath fill='currentColor' d='M352 352c-8.188 0-16.38-3.125-22.62-9.375L192 205.3l-137.4 137.4c-12.5 12.5-32.75 12.5-45.25 0s-12.5-32.75 0-45.25l160-160c12.5-12.5 32.75-12.5 45.25 0l160 160c12.5 12.5 12.5 32.75 0 45.25C368.4 348.9 360.2 352 352 352z'%3E%3C/path%3E%3C/svg%3E")
center no-repeat;
opacity: 0.7;
}
.stt:hover {
opacity: 0.8;
cursor: pointer;
background: rgb(201, 22, 22)
url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath fill='currentColor' d='M352 352c-8.188 0-16.38-3.125-22.62-9.375L192 205.3l-137.4 137.4c-12.5 12.5-32.75 12.5-45.25 0s-12.5-32.75 0-45.25l160-160c12.5-12.5 32.75-12.5 45.25 0l160 160c12.5 12.5 12.5 32.75 0 45.25C368.4 348.9 360.2 352 352 352z'%3E%3C/path%3E%3C/svg%3E")
center no-repeat;
}
.stt:focus {
opacity: 0.9;
}
.stt:active {
opacity: 1;
}

</style>
</head>

<body>
<a href="#" class="stt" title="Scroll to Top"></a>
<div class="fullCont">
<div id="homecontent">
<div class="buttons">
Expand Down