@teamthunderfoot/translate-on-scroll
Version:
Translate on scroll package
92 lines (74 loc) • 1.18 kB
CSS
body{
height:100%;
}
p {
font-size: 2rem;
}
h2 {
margin-bottom: 2rem;
font-size: 2rem;
font-weight: 600;
}
h3 {
font-size: 1.5rem;
}
code {
display: block;
width: 100%;
margin: 2rem 5rem;
}
.img-wrapper {
position: relative;
overflow: hidden;
min-height: 70vh;
background-color: aqua;
}
.img-wrapper .img-translated {
display: block;
position: absolute;
object-fit: cover;
width: 100%;
height: 100%;
}
.svg-wrapper {
position: relative;
display: flex;
justify-content: space-around;
}
#example-3 .img-translated {
bottom: 0;
}
.front-items {
color: white;
position: absolute;
padding: 5% 10%;
}
.section-wrapper {
position: relative;
}
.section-a {
background-color: aliceblue;
width: 100%;
padding: 5% 10%;
}
.title {
text-align: center;
margin: 3rem 5rem;
font-size: 3rem;
font-weight: 600;
}
.separator {
height: 10vh;
}
.g--video-01 {
width: 100%;
height: 100%;
overflow: hidden;
position: absolute;
}
.g--video-01__media {
width: 100vw;
height: 100vh;
object-fit: cover;
display: block;
}