From 35c6d60a3548586bbec1cd1c2734cb4defff7977 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=95=E5=B1=82=E7=94=A8=E6=88=B7?= Date: Thu, 20 Jan 2022 21:56:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E9=A1=B5=E9=9D=A2=E8=BF=9B?= =?UTF-8?q?=E5=85=A5=E5=8A=A8=E7=94=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/style.css | 3 ++- js/main.js | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/css/style.css b/css/style.css index de97908..ff38baa 100644 --- a/css/style.css +++ b/css/style.css @@ -52,8 +52,9 @@ section { height: 100%; min-height: 600px; transform: scale(1.10); - transition: 1.5s; + transition: ease 1.25s; opacity: 0; + filter: blur(10px); } main { diff --git a/js/main.js b/js/main.js index 159188c..412465c 100644 --- a/js/main.js +++ b/js/main.js @@ -1,7 +1,7 @@ //加载动画 window.addEventListener('load', function () { $('#loading-box').attr('class', 'loaded'); - $('#section').css("cssText", "transform: scale(1) !important;opacity: 1 !important"); + $('#section').css("cssText", "transform: scale(1) !important;opacity: 1 !important;filter: blur(0px) !important"); }, false) //弹窗样式 @@ -65,7 +65,8 @@ function time() { if (s < 10) { s = "0" + s; } - document.getElementById("time").innerHTML = y + " 年 " + mm + " 月 " + d + " 日 " + "" + weekday[day] + "
" + "" + h + ":" + m + ":" + s + ""; + //document.getElementById("time").innerHTML = y + " 年 " + mm + " 月 " + d + " 日 " + "" + weekday[day] + "
" + "" + h + ":" + m + ":" + s + ""; + $("#time").html(y + " 年 " + mm + " 月 " + d + " 日 " + "" + weekday[day] + "
" + "" + h + ":" + m + ":" + s + ""); t = setTimeout(time, 1000); }