Commit c79fd530 by 李伟康

commit 修改动画

1 parent 32e2c9a6
...@@ -134,7 +134,7 @@ export default { ...@@ -134,7 +134,7 @@ export default {
0% { 0% {
opacity: 0; opacity: 0;
} }
50%{ 50% {
opacity: 1; opacity: 1;
} }
100% { 100% {
...@@ -276,6 +276,7 @@ export default { ...@@ -276,6 +276,7 @@ export default {
height: calc(100% + 2px); height: calc(100% + 2px);
overflow: hidden; overflow: hidden;
border-radius: 12px; border-radius: 12px;
&::before { &::before {
content: ''; content: '';
position: absolute; position: absolute;
...@@ -304,6 +305,14 @@ export default { ...@@ -304,6 +305,14 @@ export default {
border-radius: 12px; border-radius: 12px;
} }
} }
&:nth-child(4),
&:nth-child(5) {
.border {
&::before {
animation: rotate 8s .5s linear infinite;
}
}
}
.img { .img {
position: relative; position: relative;
z-index: 2; z-index: 2;
......
...@@ -49,19 +49,20 @@ export default { ...@@ -49,19 +49,20 @@ export default {
&-bg { &-bg {
position: fixed; position: fixed;
left: 50%; left: 50%;
transform: translateX(-50%);
width: 1761px; width: 1761px;
height: 93.94vh; height: 93.94vh;
background: url('../../assets/images/factor/factor-bg.png'); background: url('../../assets/images/factor/factor-bg.png');
background-size: contain; background-size: contain;
background-repeat: no-repeat;
bottom: 0;
animation: show-bg 1s forwards; animation: show-bg 1s forwards;
} }
@keyframes show-bg { @keyframes show-bg {
0%{ 0% {
bottom: -100%; transform: translate(-50%, 1000%);
} }
100%{ 100% {
bottom: 0; transform: translate(-50%, 0);
} }
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!