Add page transition
This commit is contained in:
11 files changed
+12841
-12546
No files matched your search
@@ -56,6 +56,22 @@ button {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
main,
|
||||
.main__page {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
contain: strict;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
z-index: 1;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.main__page {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
@-webkit-keyframes btn_click {
|
||||
0% {
|
||||
transform: scale(1);
|
||||
@@ -254,3 +270,47 @@ button {
|
||||
transform: scaleX(1);
|
||||
}
|
||||
}
|
||||
|
||||
@-webkit-keyframes moveFadeOut {
|
||||
0% {
|
||||
inset: 0;
|
||||
opacity: 1;
|
||||
}
|
||||
100% {
|
||||
inset: 0 0 0 -100px;
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes moveFadeOut {
|
||||
0% {
|
||||
inset: 0;
|
||||
opacity: 1;
|
||||
}
|
||||
100% {
|
||||
inset: 0 0 0 -100px;
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@-webkit-keyframes moveFadeIn {
|
||||
0% {
|
||||
inset: 0 0 0 100px;
|
||||
opacity: 0;
|
||||
}
|
||||
100% {
|
||||
inset: 0;
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes moveFadeIn {
|
||||
0% {
|
||||
inset: 0 0 0 100px;
|
||||
opacity: 0;
|
||||
}
|
||||
100% {
|
||||
inset: 0;
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
@@ -13,19 +13,6 @@
|
||||
background: rgb(255 255 255/1);
|
||||
}
|
||||
|
||||
main,
|
||||
.main__page {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
contain: strict;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
z-index: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
#background {
|
||||
background: transparent;
|
||||
position: fixed;
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
/** @format */
|
||||
|
||||
.moveFadeOut {
|
||||
-webkit-animation: moveFadeOut var(--transition-time-slow-2) forwards;
|
||||
animation: moveFadeOut var(--transition-time-slow-2) forwards;
|
||||
}
|
||||
.moveFadeIn {
|
||||
-webkit-animation: moveFadeIn var(--transition-time-slow-2) forwards;
|
||||
animation: moveFadeIn var(--transition-time-slow-2) forwards;
|
||||
}
|
||||
.main {
|
||||
opacity: 0;
|
||||
right: -300px;
|
||||
}
|
||||
.main.active {
|
||||
opacity: 1;
|
||||
right: 0;
|
||||
}
|
||||
Reference in new issue
Block a user