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

feat: Modified custom scrollbar . #1158

Merged
merged 2 commits into from
Jul 22, 2024
Merged
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
10 changes: 5 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@
.active {
color: red !important;
}

@media screen and (max-width:390px) {
.nav__logo {
position: relative;
Expand Down Expand Up @@ -280,7 +279,7 @@ <h1>TourGuide . . .</h1>
<canvas></canvas>
<canvas></canvas>
</div>
<div id="progressbar"></div>
<!-- <div id="progressbar"></div> -->
<div id="scrollPath"></div>
<!-- <canvas id="canvas"></canvas> -->
<!-- <nav>
Expand Down Expand Up @@ -2080,18 +2079,18 @@ <h4>Contact Us</h4>
obj.textContent = currentValue;
if (progress < 1) {
requestAnimationFrame(updateValue);

}

requestAnimationFrame(updateValue);
}
}
})
</script>


<script>
const scrollline = document.querySelector('.progress-bar');

function fillscrollline(){
function fillscrollline() {
const windowHeight = window.innerHeight;
const fullHeight = document.body.clientHeight;
const scrolled = window.scrollY;
Expand All @@ -2109,6 +2108,7 @@ <h4>Contact Us</h4>
animateValue("destinationsCount", 0, 10994, 20000);
});


</script>


Expand Down
51 changes: 29 additions & 22 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,17 @@
margin: 0;
box-sizing: border-box;
}

::-webkit-scrollbar {
width: 0;
}
::-webkit-scrollbar{
width: 15px;
}
::-webkit-scrollbar-track{
background: #d1e5ff;
}
::-webkit-scrollbar-thumb{
background: linear-gradient( 90deg,rgb(63, 120, 244),rgb(245, 89, 239) );
border-radius: 10px;
height: 100px;
}

/* new bubble start*/

Expand Down Expand Up @@ -257,7 +264,7 @@
}

/* new bubble end */
#scrollPath {
/* #scrollPath {
position: fixed;
top: 0;
right: 0;
Expand All @@ -274,7 +281,7 @@
height: 100%;
background: linear-gradient(to top, #008aff, #00ffe7);
z-index: 333333;
}
} */

.dark-theme {
--secondary-color: #0e1525;
Expand Down Expand Up @@ -1690,9 +1697,9 @@ body.dark-theme .items {
color: grey;
}

textarea::-webkit-scrollbar {
/* textarea::-webkit-scrollbar {
width: 1em;
}
} */

/* .contact-form #button{
border: none;
Expand Down Expand Up @@ -1851,22 +1858,22 @@ textarea::-webkit-scrollbar {
}

/* Custom scrollbar for WebKit browsers */
body::-webkit-scrollbar {
/* body::-webkit-scrollbar {
width: 8px;
/* Width of the scrollbar */
}
Width of the scrollbar
} */

body::-webkit-scrollbar-thumb {
/* body::-webkit-scrollbar-thumb {
background-color: var(--primary-color);
/* Color of the scrollbar thumb */
Color of the scrollbar thumb
border-radius: 6px;
/* Rounded corners of the thumb */
}
Rounded corners of the thumb
} */

body::-webkit-scrollbar-track {
/* body::-webkit-scrollbar-track {
background-color: var(--extra-light);
/* Color of the scrollbar track */
}
Color of the scrollbar track
} */

body::-webkit-scrollbar-thumb:hover {
background-color: var(--primary-color-dark);
Expand Down Expand Up @@ -1923,9 +1930,9 @@ body {
width: 100%;
left: 0;
bottom: -1px;
-webkit-transition: all 250ms ease 0s;
/* -webkit-transition: all 250ms ease 0s; */
transition: all 250ms ease 0s;
-webkit-transform: scale(0);
/* -webkit-transform: scale(0); */
transform: scale(0);
}

Expand Down Expand Up @@ -1977,9 +1984,9 @@ body {
padding: 20px;
}

.testimonial-container::-webkit-scrollbar {
/* .testimonial-container::-webkit-scrollbar {
display: none;
}
} */

.testimonial-user {
display: flex;
Expand Down
Loading