| summaryrefslogtreecommitdiff | 
diff options
| author | nsensfel <SpamShield0@noot-noot.org> | 2018-06-20 17:47:02 +0200 | 
|---|---|---|
| committer | nsensfel <SpamShield0@noot-noot.org> | 2018-06-20 17:47:02 +0200 | 
| commit | c4bdab007fa34dd685fa7700086e4f500a954d38 (patch) | |
| tree | 0388d2c84ffaa77d1d8cf97954ff628621c87369 /src/battlemap/www/style.css | |
| parent | 734f10c3de28cd432b16a19600a01f8b091a3ab4 (diff) | |
They're not smooth, but there are some animations.
Diffstat (limited to 'src/battlemap/www/style.css')
| -rw-r--r-- | src/battlemap/www/style.css | 41 | 
1 files changed, 41 insertions, 0 deletions
| diff --git a/src/battlemap/www/style.css b/src/battlemap/www/style.css index fc93e8d..b50d65d 100644 --- a/src/battlemap/www/style.css +++ b/src/battlemap/www/style.css @@ -691,6 +691,47 @@     filter: contrast(35%);  } +.battlemap-animated-character-icon +{ +   transition: top linear 0.3s, left linear 0.3s; +} + +.battlemap-animation-move-1 +.battlemap-animation-move-R, +.battlemap-animation-move-L, +.battlemap-animation-move-U, +.battlemap-animation-move-D +{ +   animation-duration: 0.3s; +   animation-iteration-count: 1; +   animation-fill-mode: forwards; +} + +.battlemap-animation-move-R { animation-name: move-right; } +.battlemap-animation-move-L { animation-name: move-left; } +.battlemap-animation-move-U { animation-name: move-up; } +.battlemap-animation-move-D { animation-name: move-down; } + +@keyframes move-right { +    from { transform: translate(0, 0);} +    to   { transform: translate(100%, 0);} +} + +@keyframes move-left { +    from { transform: translate(0, 0);} +    to   { transform: translate(-100%, 0);} +} + +@keyframes move-up { +    from { transform: translate(0, 0);} +    to   { transform: translate(0, -100%);} +} + +@keyframes move-down { +    from { transform: translate(0, 0);} +    to   { transform: translate(0, 100%);} +} +  @keyframes red-alarm-bg {      0% {background-color: rgba(255,0,0,0.25);}      25% {background-color: rgba(255,0,0,1);} | 


