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 the BACK-TO-TOP Button #178

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
3 changes: 2 additions & 1 deletion 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
overflow: hidden;
}


.background-layer {
position: absolute;
top: 0;
Expand Down Expand Up @@ -80,4 +81,4 @@
<a href="index.html" style="text-decoration: none; color: #fff;"><button class="btn">Go Back</button></a>
</body>

</html>
</html>
6 changes: 6 additions & 0 deletions home-page.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="website icon" type="png" href="favicon.ico">
Expand Down Expand Up @@ -204,6 +205,11 @@ <h3> <!-- The href tag can be updated later with the desired links -->
<a href="#footer">PRIVACY NOTICE</a> |<a href="#footer">TERMS OF SERVICE</a> |<a href="#footer">COOKIES INFO</a> |<a href="#footer">CHROME GAMING</a>
</h2>
</footer>

<!-- BACK-TO-TOP -->
<a href="#" class="back-to-top">
<span class="material-icons">arrow_upward</span>
</a>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="https://unpkg.com/[email protected]/dist/typed.umd.js"></script>
<script>
Expand Down
34 changes: 34 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,40 @@ footer a:hover{

}

/* BACK-TO-TOP */

html {
scroll-behavior: smooth;
}

.back-to-top {
position: fixed;
bottom: 2rem;
right: 2rem;
display: inline-flex;
align-items: center;
justify-content: center;
background-color: #598bbe;
border-radius: 0.5rem;
padding: 0.5rem;
text-decoration: none;
transition: 0.4s ease-out;
}

.back-to-top span {
color: #fff;
font-size: 2.6rem;
transition: 0.4s ease-out;
}

.back-to-top:hover {
background-color: #237eda;
}

.back-to-top:hover span {
transform: translateY(-4px);
}

@media screen and (max-width: 1050px) and (min-width:768px){
.modes{
display: none;
Expand Down