<header>
<link rel="Stylesheet" type="text/css" href="css/style.css" /> </header>
</html
.test
{
width: 100px;
height: 100px;
background: 86c31c;
z-index: 2;
float: left;
margin:auto;
margin-top: 100px;
animation-name: test;
animation-duration: 3s;
animation-delay:300ms;
animation-iteration-count:1;
animation-timing-function:ease-in-out;
animation-fill-mode:forwards;
-webkit-animation-name: test,testowy,testt;
-webkit-animation-duration: 0.5s,3s,1s;
-webkit-animation-delay:300ms,2s,10s;
-webkit-animation-iteration-count:1,1,1;
-webkit-animation-timing-function:ease-in-out;
-webkit-animation-fill-mode:forwards;
}
@keyframes test
{
0% { transform:translate(0,0); }
100% { transform:translate(-150%,-150%); }
}
@-webkit-keyframes test
{
0% { -webkit-transform:translate(0,0); }
100% { -webkit-transform:translate(-200%,-200%); }
}
@keyframes testowy
{
0% { background: yellow}
100% {background: black; }
}
@-webkit-keyframes testowy
{
0% { background: yellow}
100% {background: black; }
}
@keyframes testt
{
0% { transform:translate(-150%,-150%); }
100% { transform:translate(340%,-150%); }
}
@-webkit-keyframes testt
{
0% { -webkit-transform:translate(-150%,-150%); }
100% { -webkit-transform:translate(340%,-200%); }
}
teraz niby wszystkie animacje sa wykonywane, ale "testowy" i "testt" wykonywane sa jednoczesnie, mimo ze powinno być opoznienie. Dodatkowo animacja testt zaczyna sie w innym punkcie niz skonczyla sie animacja "test"