Add new features in CSS to animate movement

This commit is contained in:
Paweł Kawczyński 2017-12-12 15:13:52 +01:00
parent c5938541c0
commit 958383a33a
11 changed files with 15 additions and 1 deletions

BIN
.DS_Store vendored Executable file → Normal file

Binary file not shown.

0
._.DS_Store Executable file → Normal file
View File

0
LICENSE Executable file → Normal file
View File

0
README.md Executable file → Normal file
View File

10
css/style.css Executable file → Normal file
View File

@ -8,6 +8,7 @@
/*-----------------------Icon CSS high-resolution-------------------------------------*/
/*-----------------------Character CSS high-resolution--------------------------------*/
h1 {
font-family: headersFont;
font-size: 100px;
@ -234,6 +235,15 @@ html {
height: 2rem;
border-radius: 0.4rem 0.4rem;
background-color: #e31e5e;
transform: rotate(0deg);
}
@keyframes animation-move-left{
0%{
transform: rotate(30deg);
}
100%{
transform: rotate(0deg);
}
}
#char-pants-right {

0
fonts/ARCADE.TTF Executable file → Normal file
View File

0
icons/.DS_Store vendored Executable file → Normal file
View File

0
icons/._.DS_Store Executable file → Normal file
View File

0
index.html Executable file → Normal file
View File

6
js/script.js Executable file → Normal file
View File

@ -5,7 +5,9 @@ $(document).ready(function() {
$("#char-container").css({
'left': '-=2rem',
})
}
$("#char-pants-left").animate({
//zmienic klase na
})
if(e.which == 38){
$("#char-container").css({
'top': '-=2rem',
@ -15,6 +17,8 @@ $(document).ready(function() {
$("#char-container").css({
'left': '+=2rem',
})
$("#char-pants-right").css({
})
}
if(e.which == 40){
$("#char-container").css({

0
test.txt Executable file → Normal file
View File