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 1 commit
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
14 changes: 6 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@
.active {
color: red !important;
}

@media screen and (max-width:390px) {
.nav__logo {
position: relative;
Expand Down Expand Up @@ -340,9 +339,9 @@
gap: 8px; /* Adjust the gap between buttons */
}

pointer-events: none;
/* pointer-events: none;
z-index: 9999;
}
} */

@media screen and (max-width: 768px){
.circle-container {
Expand Down Expand Up @@ -466,7 +465,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 @@ -2287,18 +2286,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 @@ -2314,7 +2313,6 @@ <h4>Contact Us</h4>
animateValue("guidesCount", 0, 25000, 20000);
animateValue("toursCount", 0, 20000, 20000);
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 @@ -29,10 +29,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 @@ -260,7 +267,7 @@
}

/* new bubble end */
#scrollPath {
/* #scrollPath {
position: fixed;
top: 0;
right: 0;
Expand All @@ -277,7 +284,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