parallax ornements + modifs d'après kanboard
This commit is contained in:
@@ -6,12 +6,14 @@
|
||||
right: -55vw;
|
||||
top: -5vh;
|
||||
z-index: 0;
|
||||
transition: left 0.05s ease, top 0.05s ease;
|
||||
> div {
|
||||
position: absolute;
|
||||
background-repeat: no-repeat;
|
||||
background-size: contain;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
transition: left 0.05s ease, top 0.05s ease;
|
||||
}
|
||||
> div:first-of-type {
|
||||
background-image: url(../assets/formes/forme_4.png);
|
||||
@@ -29,7 +31,7 @@
|
||||
}
|
||||
@media (min-width: $breakpoint_tablet) {
|
||||
left: -40vw;
|
||||
top: -10vw;
|
||||
top: -16vw;
|
||||
> div {
|
||||
transform: scaleX(-1);
|
||||
left: -55vw;
|
||||
@@ -50,12 +52,14 @@
|
||||
}
|
||||
|
||||
.ornements_top_under {
|
||||
pointer-events: none;
|
||||
display: none;
|
||||
position: absolute;
|
||||
width: 100vw;
|
||||
height: 30vh;
|
||||
left: -30vw;
|
||||
top: 0vw;
|
||||
transition: left 0.05s ease, top 0.05s ease;
|
||||
> div {
|
||||
position: absolute;
|
||||
background-repeat: no-repeat;
|
||||
@@ -63,6 +67,7 @@
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
transform: scaleX(-1);
|
||||
transition: left 0.05s ease, top 0.05s ease;
|
||||
}
|
||||
> div:first-of-type {
|
||||
background-image: url(../assets/formes/forme_4.png);
|
||||
@@ -248,10 +253,10 @@
|
||||
}
|
||||
|
||||
.ornements_presentation_left {
|
||||
pointer-events: none;
|
||||
position: absolute !important;
|
||||
height: 20vh;
|
||||
width: 20vw;
|
||||
// background-color: red;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
z-index: 0;
|
||||
@@ -296,6 +301,7 @@
|
||||
}
|
||||
|
||||
.ornements_presentation_right {
|
||||
pointer-events: none;
|
||||
position: absolute !important;
|
||||
height: 20vh;
|
||||
width: 20vw;
|
||||
@@ -313,12 +319,113 @@
|
||||
> div:first-of-type {
|
||||
background-image: url(../assets/formes/forme_1.png);
|
||||
transform: rotate(-90deg);
|
||||
bottom: -3vh;
|
||||
right: -6vw;
|
||||
right: -15vw;
|
||||
bottom: -6vh;
|
||||
@media (min-width: $breakpoint_tablet) {
|
||||
bottom: -3vh;
|
||||
right: -6vw;
|
||||
}
|
||||
}
|
||||
> div:nth-of-type(2) {
|
||||
background-image: url(../assets/formes/forme_2.png);
|
||||
bottom: -12vh;
|
||||
right: -12vw;
|
||||
}
|
||||
}
|
||||
|
||||
.ornements_consultation_left {
|
||||
pointer-events: none;
|
||||
position: absolute !important;
|
||||
height: 20vh;
|
||||
width: 30vw;
|
||||
bottom: -8vh;
|
||||
left: 0;
|
||||
z-index: 0;
|
||||
overflow: hidden;
|
||||
> div {
|
||||
background-repeat: no-repeat;
|
||||
background-size: contain;
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
> div:first-of-type {
|
||||
background-image: url(../assets/formes/forme_4.png);
|
||||
transform: rotate(180deg);
|
||||
width: 200%;
|
||||
height: 120%;
|
||||
left: -30vw;
|
||||
bottom: -10vh;
|
||||
@media (min-width: $breakpoint_desktop) {
|
||||
transform: rotate(0deg);
|
||||
bottom: unset;
|
||||
top: -5vh;
|
||||
left: 0;
|
||||
width: 60%;
|
||||
}
|
||||
|
||||
}
|
||||
> div:nth-of-type(2) {
|
||||
background-image: url(../assets/formes/forme_5.png);
|
||||
transform: rotate(180deg);
|
||||
left: -12vw;
|
||||
@media (min-width: $breakpoint_desktop) {
|
||||
left: -20vw;
|
||||
top: -5vh;
|
||||
}
|
||||
}
|
||||
@media (min-width: $breakpoint_desktop) {
|
||||
top:0;
|
||||
}
|
||||
}
|
||||
|
||||
.ornements_consultation_right {
|
||||
pointer-events: none;
|
||||
position: absolute !important;
|
||||
height: 20vh;
|
||||
width: 30vw;
|
||||
bottom: -8vh;
|
||||
right: 0;
|
||||
z-index: 0;
|
||||
overflow: hidden;
|
||||
> div {
|
||||
background-repeat: no-repeat;
|
||||
background-size: contain;
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
> div:first-of-type {
|
||||
background-image: url(../assets/formes/forme_1.png);
|
||||
transform: rotate(-90deg);
|
||||
width: 80%;
|
||||
height: 80%;
|
||||
right: -8vw;
|
||||
bottom: -2vh;
|
||||
@media (min-width: $breakpoint_desktop) {
|
||||
right: -3vw;
|
||||
bottom: 6vh;
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
}
|
||||
> div:nth-of-type(2) {
|
||||
background-image: url(../assets/formes/forme_3.png);
|
||||
transform: rotate(180deg);
|
||||
right: -4vw;
|
||||
width: 100%;
|
||||
@media (min-width: $breakpoint_tablet) {
|
||||
width: 30%;
|
||||
bottom: 3vh;
|
||||
}
|
||||
@media (min-width: $breakpoint_desktop) {
|
||||
transform: none;
|
||||
right: -4vw;
|
||||
width: 60%;
|
||||
}
|
||||
}
|
||||
@media (min-width: $breakpoint_desktop) {
|
||||
bottom: unset;
|
||||
top: 0;
|
||||
right: 0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user