diff --git a/static/css/web3.css b/static/css/web3.css index 3cbc768..fd34e1b 100644 --- a/static/css/web3.css +++ b/static/css/web3.css @@ -1,3 +1,7 @@ +:root { + --anim-type: cubic-bezier(0.46, 0.03, 0.52, 0.96) infinite normal none running; /* Quadratic */ +} + html { background-image: url("../pics/bg-web3.gif"); background-repeat: revert; @@ -13,7 +17,7 @@ div#scroll-text { text-align: right; white-space: nowrap; - animation: marquee 8s linear infinite; + animation: 8s var(--anim-type) marquee; } div#scroll-banner > div#scroll-text > * { @@ -27,23 +31,23 @@ div#scroll-banner > div#scroll-text > * { } to { - transform: translateX(-140%); + transform: translateX(-150%); } } @media only screen and (max-width: 850px) { /* Mobile display */ div#scroll-text { - animation: marquee 9s linear infinite; + animation: 9s var(--anim-type) marquee_min; } - @keyframes marquee { + @keyframes marquee_min { from { transform: translateX(100%); } to { - transform: translateX(-210%); + transform: translateX(-320%); } } }