X-Git-Url: https://git.cworth.org/git?p=lmno.games;a=blobdiff_plain;f=empathy%2Fempathy.css;h=27d5a3d989d12cc58d95a155d169241ff549dee2;hp=704b54a5ac1759a1be929c4123a3c59cd8f343d4;hb=03ec08e67b15cfb053bb8e7d48aefc331fdbda33;hpb=913aefc667fc66fed8f6fd9ca712e89339a505ac diff --git a/empathy/empathy.css b/empathy/empathy.css index 704b54a..27d5a3d 100644 --- a/empathy/empathy.css +++ b/empathy/empathy.css @@ -7,6 +7,7 @@ font-size: 200%; padding: 1em; margin-bottom: 0.25em; + position: relative; } .vote-choices { @@ -52,3 +53,60 @@ background-color: var(--accent-color-bright); color: var(--text-fg-on-accent-bright); } + +@keyframes bounce { + 0% { + transform: translateY(0); + animation-timing-function: cubic-bezier(0.333, 0.667, 0.667, 1); + } + 20% { + transform: translateY(-5px); + animation-timing-function: cubic-bezier(0.333, 0, 0,667, 0.333); + } + 40% { + transform: translateY(0); + } + 100% { + transform: translateY(0); + } +} + +.typing span { + font-size: 150%; + line-height: 0; + + display: inline-block; + animation-name: bounce; + animation-duration: 2s; + animation-iteration-count: infinite; + animation-timing-function: linear; +} + +.typing span:nth-child(2) { + animation-delay: .2s; +} + +.typing span:nth-child(3) { + animation-delay: .4s; +} + +.typing.active span { + opacity: 1.0; +} + +.typing.idle span { + opacity: 0.0; + transition-property: opacity; + transition-duration: 2s; + transition-delay: 1s; +} + +.label { + border-radius: 4px; + background-color: var(--accent-color-bright); + color: var(--text-fg-on-accent-bright); + font-size: 72%; + font-weight: bold; + padding: 0.25em; + text-transform: uppercase; +}