Commit 3dc93d86 by liimin

动画添加opacity

1 parent 157cc8f3
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: lizhijie429 * @Author: lizhijie429
* @Date: 2021-08-19 11:16:08 * @Date: 2021-08-19 11:16:08
* @LastEditors: limin * @LastEditors: limin
* @LastEditTime: 2023-11-17 15:47:40 * @LastEditTime: 2023-11-17 17:39:01
* @Description: * @Description:
--> -->
<template> <template>
...@@ -75,11 +75,11 @@ export default { ...@@ -75,11 +75,11 @@ export default {
top: 50%; top: 50%;
left: 50%; left: 50%;
&:nth-child(1) { &:nth-child(1) {
// opacity: 1; opacity: 1;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
} }
&:nth-child(2) { &:nth-child(2) {
// opacity: 0; opacity: 0;
transform: translate(112px, -50%); transform: translate(112px, -50%);
} }
transition: transform 0.18s ease, opacity 0.2s ease; transition: transform 0.18s ease, opacity 0.2s ease;
...@@ -90,11 +90,11 @@ export default { ...@@ -90,11 +90,11 @@ export default {
} }
.el-image { .el-image {
&:nth-child(1) { &:nth-child(1) {
// opacity: 0; opacity: 0;
transform: translate(-208px, -50%); transform: translate(-208px, -50%);
} }
&:nth-child(2) { &:nth-child(2) {
// opacity: 1; opacity: 1;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!