diff --git a/src/components/MainLayout.js b/src/components/MainLayout.js index bb4addd..a0d5c70 100644 --- a/src/components/MainLayout.js +++ b/src/components/MainLayout.js @@ -13,6 +13,7 @@ import { useSummaryData } from "../models/LiveDataSubscription" import moment from "moment" import { DeveloperPanel, useLocalStorageFlag } from "../models/DeveloperOptions" import Placeholder from "./Placeholder" +import { keyframes } from "@emotion/core" /** * @param {object} props @@ -218,6 +219,7 @@ function CountdownCurtain({ location }) { alignItems: "center", justifyContent: "center", textAlign: "center", + animation: `3s ${curtainAnimation} linear`, }} >
@@ -226,8 +228,6 @@ function CountdownCurtain({ location }) { } รอลุ้นผลการเลือกตั้งแบบเรียลไทม์ไปพร้อมกัน
- พรุ่งนี้นะๆ ^_^ -
{(location.hostname === "localhost" || location.hostname === "127.0.0.1") && ( @@ -247,6 +247,11 @@ function CountdownCurtain({ location }) { return null } +const curtainAnimation = keyframes({ + "0%": { transform: "translateY(-120%)" }, + "100%": { transform: "translateY(0%)" }, +}) + function Logo() { return (