From c755b7c6e1d9dda26ac6c41a1c49896ebedd077d Mon Sep 17 00:00:00 2001 From: ZhangXianQiang <1135831638@qq.com> Date: 星期五, 29 三月 2024 15:11:14 +0800 Subject: [PATCH] feat:基础场景搭建 --- src/views/screen/components/screen-wrapper/index.vue | 72 +++++++++++++++++++++++++++++++---- 1 files changed, 63 insertions(+), 9 deletions(-) diff --git a/src/views/screen/components/screen-wrapper/index.vue b/src/views/screen/components/screen-wrapper/index.vue index 0f67a02..fdfd4cf 100644 --- a/src/views/screen/components/screen-wrapper/index.vue +++ b/src/views/screen/components/screen-wrapper/index.vue @@ -6,18 +6,19 @@ </div> <div class="wrapper-content"> <div class="left-container wrapper"> - <screen-face></screen-face> - <screen-car></screen-car> - <screen-video></screen-video> + <screen-face class="animate-enter-x enter-left"></screen-face> + <screen-car class="animate-enter-x enter-left animate-delay-1"></screen-car> + <screen-video class="animate-enter-x enter-left animate-delay-2"></screen-video> </div> <div class="center-container center-wrapper"> - <screen-map></screen-map> - <screen-table></screen-table> + <!-- <screen-map></screen-map> --> + <screen-map-cover></screen-map-cover> + <screen-table class="animate-enter-y enter-top"></screen-table> <!-- <screen-detection></screen-detection> --> </div> <div class="right-container wrapper"> - <screen-examine></screen-examine> + <screen-examine class="animate-enter-x enter-right"></screen-examine> </div> </div> </div> @@ -30,6 +31,7 @@ import ScreenVideo from '../screen-video/index'; import ScreenCar from '../screen-car/index'; import ScreenMap from '../screen-map/index'; +import ScreenMapCover from '../screen-map-cover/index'; import ScreenTable from '../screen-table/index'; export default { name: 'ScreenWrapper', @@ -40,7 +42,8 @@ ScreenVideo, ScreenCar, ScreenMap, - ScreenTable + ScreenTable, + ScreenMapCover }, methods: { returnPath() { @@ -56,6 +59,7 @@ right: 20px; top: 40px; } + .wrapper-container { width: 100%; height: 100%; @@ -78,7 +82,7 @@ } .wrapper { - width: 27%; + width: 20%; height: 100%; box-sizing: border-box; padding: 0 10px; @@ -94,8 +98,9 @@ padding-right: 0; } } + .center-wrapper { - width: 46%; + width: 60%; height: 100%; box-sizing: border-box; padding: 0 10px; @@ -103,4 +108,53 @@ flex-direction: column; justify-content: space-between; } + +.animate-enter-x { + animation: enter-x 0.4s ease forwards; +} + +.animate-enter-y { + animation: enter-y 0.4s ease forwards; +} + +.enter-left { + transform: translateX(-100px); + opacity: 0; +} + +.enter-right { + transform: translateX(100px); + opacity: 0; +} + +.enter-top { + transform: translateY(100px); + opacity: 0; +} + +.animate-delay-1 { + animation-delay: 0.1s; +} + +.animate-delay-2 { + animation-delay: 0.3s; +} + +.animate-delay-3 { + animation-delay: 0.5s; +} + +@keyframes enter-x { + 100% { + opacity: 1; + transform: translateX(0); + } +} + +@keyframes enter-y { + 100% { + opacity: 1; + transform: translateY(0); + } +} </style> \ No newline at end of file -- Gitblit v1.8.0