even nicer walking animation
This commit is contained in:
parent
cd8bcbcc47
commit
c486c12283
1 changed files with 11 additions and 3 deletions
|
@ -78,10 +78,10 @@
|
||||||
transform-origin: top center;
|
transform-origin: top center;
|
||||||
}
|
}
|
||||||
#player.walking > .legs > div.right {
|
#player.walking > .legs > div.right {
|
||||||
animation: dangle .4s ease infinite both;
|
animation: dingle .3s linear infinite alternate;
|
||||||
}
|
}
|
||||||
#player.walking > .legs > div.left {
|
#player.walking > .legs > div.left {
|
||||||
animation: dangle .4s ease infinite reverse both;
|
animation: dangle .3s linear infinite alternate;
|
||||||
}
|
}
|
||||||
#player > .arms {
|
#player > .arms {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
@ -90,6 +90,10 @@
|
||||||
top: 48px;
|
top: 48px;
|
||||||
left: 30px;
|
left: 30px;
|
||||||
background-image: url(/Characters/Alien/alien_arm.png);
|
background-image: url(/Characters/Alien/alien_arm.png);
|
||||||
|
transform-origin: top center;
|
||||||
|
}
|
||||||
|
#player.walking > .arms {
|
||||||
|
animation: dangle .3s linear infinite alternate;
|
||||||
}
|
}
|
||||||
.block {
|
.block {
|
||||||
flex: 0 0 auto;
|
flex: 0 0 auto;
|
||||||
|
@ -110,7 +114,11 @@
|
||||||
flex-flow: row wrap;
|
flex-flow: row wrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes dangle {
|
@keyframes dingle {
|
||||||
from { transform: rotate(20deg); }
|
from { transform: rotate(20deg); }
|
||||||
to { transform: rotate(-20deg); }
|
to { transform: rotate(-20deg); }
|
||||||
}
|
}
|
||||||
|
@keyframes dangle {
|
||||||
|
from { transform: rotate(-20deg); }
|
||||||
|
to { transform: rotate(20deg); }
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue