+
移動滑鼠,或用手指在畫面上滑動
時鐘會跟著你。電腦在游標右下方,手機在手指上方。
這裡的時鐘只在框內預覽;放到你的網站上會跟著整個頁面移動。
@@ -488,6 +493,17 @@
});
});
+ // ---- 時鐘移動中,說明再淡一點 ----
+ var moveTimer = null;
+ function moving() {
+ $('play').classList.add('is-moving');
+ clearTimeout(moveTimer);
+ moveTimer = setTimeout(function () { $('play').classList.remove('is-moving'); }, 1200);
+ }
+ $('play').addEventListener('pointermove', moving, { passive: true });
+ $('play').addEventListener('pointerdown', moving, { passive: true });
+ $('play').addEventListener('touchmove', moving, { passive: true });
+
// ---- 面板收合提示 ----
$('panel').addEventListener('toggle', function () { $('panelHint').textContent = $('panel').open ? '點這裡收合' : '點這裡展開'; });