84 lines
1.6 KiB
CSS
84 lines
1.6 KiB
CSS
.anim-page-container {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 100vh;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.anim-page {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
padding: 2rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
transition: transform 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
|
|
transform: translateX(100%);
|
|
}
|
|
|
|
.anim-page--first {}
|
|
.anim-page--first .anim-page__title .anim-page__content {
|
|
color: #FFF;
|
|
}
|
|
.anim-page--second {}
|
|
.anim-page--third { background-color: #ddddff; }
|
|
.anim-page--fourth { background-color: #ffffdd; }
|
|
|
|
.anim-page__title {
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.anim-page__content {
|
|
max-width: 600px;
|
|
text-align: center;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.anim-page--left {
|
|
transform: translateX(-100%);
|
|
}
|
|
|
|
.anim-page--right {
|
|
transform: translateX(100%);
|
|
}
|
|
|
|
.anim-page--active {
|
|
transform: translateX(0);
|
|
}
|
|
|
|
.anim-nav {
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
display: flex;
|
|
justify-content: center;
|
|
padding: 1.5rem;
|
|
background-color: rgba(51, 51, 51, 0.9);
|
|
z-index: 100;
|
|
}
|
|
|
|
.anim-nav__btn {
|
|
padding: 0.75rem 1.5rem;
|
|
margin: 0 0.75rem;
|
|
background-color: #555;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
transition: background-color 0.3s;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.anim-nav__btn:hover {
|
|
background-color: #777;
|
|
}
|
|
|
|
.anim-nav__btn--disabled {
|
|
background-color: #999;
|
|
cursor: not-allowed;
|
|
} |