Hello,
I’m trying to embed a piece of code in a section of my page, but not in an iframe. It’s a scroll effect that isn’t taken into account in my iframe, so I need to implement it in the Wix Studio code editor, but I can’t. Can someone help me? Here’s the code.
Effet Parallaxe /* Reset et centrage */ body { height: 100vh; margin: 0; display: grid; place-items: center; overflow: hidden; }/* Conteneurs */
.wrapper,
.content {
position: relative;
width: 100%;
z-index: 1;
}
.content {
overflow: hidden;
}
/* Section hero pleine hauteur */
.content .section {
width: 100%;
height: 100vh;
}
.hero {
background-image: url("https://codetheworld.io/wp-content/uploads/2024/05/hero.jpeg");
background-position: center center;
background-repeat: no-repeat;
background-size: cover;
}
/* Conteneur image 3D */
.image-container {
width: 100%;
height: 100vh;
position: absolute;
top: 0;
left: 0;
z-index: 2;
perspective: 500px;
overflow: hidden;
}
.image-container img {
width: 100%;
height: 100%;
object-fit: cover;
object-position: center center;
}