瀏覽代碼

Center the news text and make it appear more randomly

tags/v0.0.4
Fen Dweller 5 年之前
父節點
當前提交
64efe12e12
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: E80B35A6F11C3656
共有 2 個檔案被更改,包括 6 行新增6 行删除
  1. +4
    -4
      gorge.css
  2. +2
    -2
      gorge.js

+ 4
- 4
gorge.css 查看文件

@@ -511,19 +511,19 @@ div::-webkit-scrollbar-corner {

@keyframes news-text-frames {
0% {
transform: translate(0px, 0px);
transform: translate(-50%, 0px);
opacity: 0;
}
20% {
transform: translate(0px, -200px);
transform: translate(-50%, -100px);
opacity: 1;
}
80% {
transform: translate(0px, -200px);
transform: translate(-50%, -100px);
opacity: 1;
}
100% {
transform: translate(0px, 0px);
transform: translate(-50%, 0px);
opacity: 0;
}
}

+ 2
- 2
gorge.js 查看文件

@@ -642,7 +642,7 @@ function clickPopup(text, type, location) {
body.appendChild(div);

setTimeout(() => {
body.removeChild(div);
body.removeChild(div);choice
}, 2000);
}

@@ -659,7 +659,7 @@ function doNews() {

setTimeout(() => {
doNews();
}, 30000);
}, 15000 + Math.random() * 2500);
}

function showNews(text) {


Loading…
取消
儲存