Add components
This commit is contained in:
118
scroll/scroll.css
Normal file
118
scroll/scroll.css
Normal file
@@ -0,0 +1,118 @@
|
||||
/*
|
||||
* ConductorCalc - scroll.css
|
||||
*
|
||||
* Created by Janis Hutz 01/17/2024, Licensed under a proprietary License
|
||||
* https://janishutz.com, development@janishutz.com
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#scroll-indicator {
|
||||
position: fixed;
|
||||
right: 5%;
|
||||
z-index: 7;
|
||||
width: 90%;
|
||||
bottom: -200px;
|
||||
}
|
||||
|
||||
#scroll-indicator.show-scroll {
|
||||
animation: pop-in 0.5s;
|
||||
bottom: 5%;
|
||||
}
|
||||
|
||||
#scroll-indicator.hide-scroll {
|
||||
animation: pop-out 0.5s;
|
||||
bottom: -200px;
|
||||
}
|
||||
|
||||
@keyframes pop-in {
|
||||
0% {
|
||||
bottom: -200px;
|
||||
}
|
||||
|
||||
70% {
|
||||
bottom: 6.5%;
|
||||
}
|
||||
|
||||
80% {
|
||||
bottom: 6%;
|
||||
}
|
||||
|
||||
100% {
|
||||
bottom: 5%;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes pop-out {
|
||||
0% {
|
||||
bottom: 5%;
|
||||
}
|
||||
|
||||
25% {
|
||||
bottom: 6.5%
|
||||
}
|
||||
|
||||
35% {
|
||||
bottom: 6%;
|
||||
}
|
||||
|
||||
100% {
|
||||
bottom: -200px;
|
||||
}
|
||||
}
|
||||
|
||||
.content {
|
||||
scroll-snap-type: y mandatory;
|
||||
}
|
||||
|
||||
.snap {
|
||||
scroll-snap-align: top;
|
||||
}
|
||||
|
||||
|
||||
.scroll-wrapper {
|
||||
color: rgb(221, 221, 221);
|
||||
font-size: 80%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.scroll-container {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
cursor: pointer;
|
||||
padding: 15px;
|
||||
background-color: rgba( 0, 0, 0, 0.2 );
|
||||
border-radius: 30px;
|
||||
}
|
||||
|
||||
.scroll-symbol {
|
||||
font-size: 180%;
|
||||
animation: scroll-animation infinite 4s ease-in-out;
|
||||
}
|
||||
|
||||
@keyframes scroll-animation {
|
||||
0% {
|
||||
opacity: 0;
|
||||
transform: translateY(0);
|
||||
}
|
||||
10% {
|
||||
opacity: 1;
|
||||
}
|
||||
65% {
|
||||
opacity: 0.8;
|
||||
}
|
||||
75% {
|
||||
opacity: 0;
|
||||
transform: translateY(25px);
|
||||
}
|
||||
100% {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user