From 4bb9ce7ec90c806ba772f12cdbc288fb6c88cca9 Mon Sep 17 00:00:00 2001 From: xzg <4727863@qq.com> Date: Wed, 11 Sep 2024 18:35:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/css/loadinge.css | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/public/css/loadinge.css b/public/css/loadinge.css index 741ba8f7..ee893e92 100644 --- a/public/css/loadinge.css +++ b/public/css/loadinge.css @@ -340,6 +340,22 @@ body { transform: rotate(-1deg); } } +@keyframes truckMove { + 0% { + transform: translateX(-250px); /* 卡车从屏幕左侧外部开始 */ + } + 50% { + transform: translateX(calc(10px)); /* 卡车移出到屏幕右侧外部 */ + } + 100% { + transform: translateX(150px); /* 卡车从左侧再次进入 */ + } +} + +.truck { + animation: truckMove 1s linear infinite; +} + .truck > .smoke { position: absolute;