add: gab-animationの背景にスタイルを適用
This commit is contained in:
parent
fd315be228
commit
3d670063a9
39
src/scss/modules/pc/_gab-animation.scss
Normal file
39
src/scss/modules/pc/_gab-animation.scss
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
@include pc-layout {
|
||||||
|
.gab-animation {
|
||||||
|
position: absolute;
|
||||||
|
top: 0; left: 0;
|
||||||
|
width: 100%; height: 100%;
|
||||||
|
min-width: $min-width; min-height: $min-height;
|
||||||
|
background-color: $theme-light-pink;
|
||||||
|
z-index: 1001;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*** bg ***/
|
||||||
|
.gab-animation__bg {
|
||||||
|
position: absolute;
|
||||||
|
top: 0; left: 0;
|
||||||
|
width: 100%; height: 100%;
|
||||||
|
|
||||||
|
div {
|
||||||
|
width: 100%; height:12.5%;
|
||||||
|
background-color: $theme-bg;
|
||||||
|
transform: translateX(-100%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/*************************************************************************************************
|
||||||
|
* animation
|
||||||
|
*************************************************************************************************/
|
||||||
|
.gab-animation[data-state="start"] {
|
||||||
|
.gab-animation__bg {
|
||||||
|
div:nth-child(1) { animation: slide-right 0.4s ease 0s forwards; }
|
||||||
|
div:nth-child(2) { animation: slide-right 0.4s ease 0.1s forwards; }
|
||||||
|
div:nth-child(3) { animation: slide-right 0.4s ease 0.2s forwards; }
|
||||||
|
div:nth-child(4) { animation: slide-right 0.4s ease 0.3s forwards; }
|
||||||
|
div:nth-child(5) { animation: slide-right 0.4s ease 0.4s forwards; }
|
||||||
|
div:nth-child(6) { animation: slide-right 0.4s ease 0.5s forwards; }
|
||||||
|
div:nth-child(7) { animation: slide-right 0.4s ease 0.6s forwards; }
|
||||||
|
div:nth-child(8) { animation: slide-right 0.4s ease 0.7s forwards; }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -6,6 +6,7 @@
|
|||||||
min-width: $min-width; min-height: $min-height;
|
min-width: $min-width; min-height: $min-height;
|
||||||
background-color: $theme-pink;
|
background-color: $theme-pink;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
z-index: 1000;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user