Skip to content

Commit

Permalink
New sample animation
Browse files Browse the repository at this point in the history
  • Loading branch information
TOLDOTECHNIK committed Nov 21, 2018
1 parent a8c124f commit bc60324
Show file tree
Hide file tree
Showing 2 changed files with 282 additions and 124 deletions.
270 changes: 270 additions & 0 deletions board/toldotechnik_rpi/rootfs-overlay/var/www/css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,270 @@
body {
background-color: rgb(211, 84, 0);
}

.title {
padding-bottom: 50px;
color: white;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
font-size: 30px;
}

.center {
width: 100%;
text-align: center;
}

audio {
visibility: hidden;
}

.bottom {
position: absolute;
bottom: 0;
left: 0;
right: 0;
margin: 20px;
}

.container {
position: absolute;
width: 200px;
height: 200px;
top: 0;
bottom: 0;
left: 0;
right: 0;
margin: auto;
}

.item {
width: 100px;
height: 100px;
position: absolute;
}

.item-1 {
background-color: #FA5667;
top: 0;
left: 0;
z-index: 1;
-webkit-animation: item-1_move 1.8s cubic-bezier(.6, .01, .4, 1) infinite;
animation: item-1_move 1.8s cubic-bezier(.6, .01, .4, 1) infinite;
}

.item-2 {
background-color: #7A45E5;
top: 0;
right: 0;
-webkit-animation: item-2_move 1.8s cubic-bezier(.6, .01, .4, 1) infinite;
animation: item-2_move 1.8s cubic-bezier(.6, .01, .4, 1) infinite;
}

.item-3 {
background-color: #1B91F7;
bottom: 0;
right: 0;
z-index: 1;
-webkit-animation: item-3_move 1.8s cubic-bezier(.6, .01, .4, 1) infinite;
animation: item-3_move 1.8s cubic-bezier(.6, .01, .4, 1) infinite;
}

.item-4 {
background-color: #FAC24C;
bottom: 0;
left: 0;
-webkit-animation: item-4_move 1.8s cubic-bezier(.6, .01, .4, 1) infinite;
animation: item-4_move 1.8s cubic-bezier(.6, .01, .4, 1) infinite;
}

@-webkit-keyframes item-1_move {

0%,
100% {
-webkit-transform: translate(0, 0);
transform: translate(0, 0)
}

25% {
-webkit-transform: translate(0, 100px);
transform: translate(0, 100px)
}

50% {
-webkit-transform: translate(100px, 100px);
transform: translate(100px, 100px)
}

75% {
-webkit-transform: translate(100px, 0);
transform: translate(100px, 0)
}
}

@keyframes item-1_move {

0%,
100% {
-webkit-transform: translate(0, 0);
transform: translate(0, 0)
}

25% {
-webkit-transform: translate(0, 100px);
transform: translate(0, 100px)
}

50% {
-webkit-transform: translate(100px, 100px);
transform: translate(100px, 100px)
}

75% {
-webkit-transform: translate(100px, 0);
transform: translate(100px, 0)
}
}

@-webkit-keyframes item-2_move {

0%,
100% {
-webkit-transform: translate(0, 0);
transform: translate(0, 0)
}

25% {
-webkit-transform: translate(-100px, 0);
transform: translate(-100px, 0)
}

50% {
-webkit-transform: translate(-100px, 100px);
transform: translate(-100px, 100px)
}

75% {
-webkit-transform: translate(0, 100px);
transform: translate(0, 100px)
}
}

@keyframes item-2_move {

0%,
100% {
-webkit-transform: translate(0, 0);
transform: translate(0, 0)
}

25% {
-webkit-transform: translate(-100px, 0);
transform: translate(-100px, 0)
}

50% {
-webkit-transform: translate(-100px, 100px);
transform: translate(-100px, 100px)
}

75% {
-webkit-transform: translate(0, 100px);
transform: translate(0, 100px)
}
}

@-webkit-keyframes item-3_move {

0%,
100% {
-webkit-transform: translate(0, 0);
transform: translate(0, 0)
}

25% {
-webkit-transform: translate(0, -100px);
transform: translate(0, -100px)
}

50% {
-webkit-transform: translate(-100px, -100px);
transform: translate(-100px, -100px)
}

75% {
-webkit-transform: translate(-100px, 0);
transform: translate(-100px, 0)
}
}

@keyframes item-3_move {

0%,
100% {
-webkit-transform: translate(0, 0);
transform: translate(0, 0)
}

25% {
-webkit-transform: translate(0, -100px);
transform: translate(0, -100px)
}

50% {
-webkit-transform: translate(-100px, -100px);
transform: translate(-100px, -100px)
}

75% {
-webkit-transform: translate(-100px, 0);
transform: translate(-100px, 0)
}
}

@-webkit-keyframes item-4_move {

0%,
100% {
-webkit-transform: translate(0, 0);
transform: translate(0, 0)
}

25% {
-webkit-transform: translate(100px, 0);
transform: translate(100px, 0)
}

50% {
-webkit-transform: translate(100px, -100px);
transform: translate(100px, -100px)
}

75% {
-webkit-transform: translate(0, -100px);
transform: translate(0, -100px)
}
}

@keyframes item-4_move {

0%,
100% {
-webkit-transform: translate(0, 0);
transform: translate(0, 0)
}

25% {
-webkit-transform: translate(100px, 0);
transform: translate(100px, 0)
}

50% {
-webkit-transform: translate(100px, -100px);
transform: translate(100px, -100px)
}

75% {
-webkit-transform: translate(0, -100px);
transform: translate(0, -100px)
}
}
Loading

0 comments on commit bc60324

Please sign in to comment.