mirror of
https://github.com/System-End/site.git
synced 2026-04-20 00:25:19 +00:00
[arcade] Shopkeepers have activation and idle states
This commit is contained in:
parent
4037e8ea96
commit
96363be109
1 changed files with 20 additions and 2 deletions
|
|
@ -276,11 +276,29 @@ a:hover {
|
|||
|
||||
@keyframes talking {
|
||||
from {
|
||||
transform: scale(1.1, 0.9) translateY(20%);
|
||||
transform: scale(1.01, 0.99) translateY(2%);
|
||||
} to {
|
||||
transform: scale(0.9, 1.1) translateY(0%);
|
||||
transform: scale(0.99, 1.01) translateY(0%);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes idle {
|
||||
from {
|
||||
transform: translateY(0%);
|
||||
} to {
|
||||
transform: translateY(2%);
|
||||
}
|
||||
}
|
||||
|
||||
.shopkeeper {
|
||||
animation: idle 2s infinite alternate;
|
||||
filter: contrast(20%);
|
||||
}
|
||||
|
||||
.shopkeeper.talking {
|
||||
filter: drop-shadow(0px 0px 10px #FC867D);
|
||||
}
|
||||
|
||||
#shopkeeper-left.talking {
|
||||
animation: talking 0.2s infinite alternate;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue