Do it yourself: CSS für Profil und Blog
22.07.2012 um 20:33@du_selbst
Nimm direkt das hier::)
PS: Habs nochmal korrigiert.
a:hover {
animation-name:myfirst;
animation-duration:2s;
animation-timing-function:linear;
animation-delay:2s;
animation-iteration-count:infinite;
animation-direction:alternate;
animation-play-state:running;
-moz-animation-name:myfirst;
-moz-animation-duration:2s;
-moz-animation-timing-function:linear;
-moz-animation-delay:2s;
-moz-animation-iteration-count:infinite;
-moz-animation-direction:alternate;
-moz-animation-play-state:running;
-webkit-animation-name:myfirst;
-webkit-animation-duration:2s;
-webkit-animation-timing-function:linear;
-webkit-animation-delay:2s;
-webkit-animation-iteration-count:infinite;
-webkit-animation-direction:alternate;
-webkit-animation-play-state:running;
-o-animation-name:myfirst;
-o-animation-duration:2s;
-o-animation-timing-function:linear;
-o-animation-delay:2s;
-o-animation-iteration-count:infinite;
-o-animation-direction:alternate;
-o-animation-play-state:running;
-ms-animation-name:myfirst;
-ms-animation-duration:2s;
-ms-animation-timing-function:linear;
-ms-animation-delay:2s;
-ms-animation-iteration-count:infinite;
-ms-animation-direction:alternate;
-ms-animation-play-state:running;
}
@-moz-keyframes myfirst
{
0% {-moz-transform: scale(1, 1)}
25% {-moz-transform: scale(1, 0.5)}
50% {-moz-transform: scale(1, 0)}
75% {-moz-transform: scale(1, -0.5)}
100% {-moz-transform: scale(1, -1)}
}
@-webkit-keyframes myfirst
{
0% {-webkit-transform: scale(1, 1)}
25% {-webkit-transform: scale(1, 0.5)}
50% {-webkit-transform: scale(1, 0)}
75% {-webkit-transform: scale(1, -0.5)}
100% {-webkit-transform: scale(1, -1)}
}
@-o-keyframes myfirst
{
0% {-o-transform: scale(1, 1)}
25% {-o-transform: scale(1, 0.5)}
50% {-o-transform: scale(1, 0)}
75% {-o-transform: scale(1, -0.5)}
100% {-o-transform: scale(1, -1)}
}
@-ms-keyframes myfirst
{
0% {-ms-transform: scale(1, 1)}
25% {-ms-transform: scale(1, 0.5)}
50% {-ms-transform: scale(1, 0)}
75% {-ms-transform: scale(1, -0.5)}
100% {-ms-transform: scale(1, -1)}
}
@keyframes myfirst
{
0% {transform: scale(1, 1)}
25% {transform: scale(1, 0.5)}
50% {transform: scale(1, 0)}
75% {transform: scale(1, -0.5)}
100% {transform: scale(1, -1)}
}
Nimm direkt das hier::)
PS: Habs nochmal korrigiert.
a:hover {
animation-name:myfirst;
animation-duration:2s;
animation-timing-function:linear;
animation-delay:2s;
animation-iteration-count:infinite;
animation-direction:alternate;
animation-play-state:running;
-moz-animation-name:myfirst;
-moz-animation-duration:2s;
-moz-animation-timing-function:linear;
-moz-animation-delay:2s;
-moz-animation-iteration-count:infinite;
-moz-animation-direction:alternate;
-moz-animation-play-state:running;
-webkit-animation-name:myfirst;
-webkit-animation-duration:2s;
-webkit-animation-timing-function:linear;
-webkit-animation-delay:2s;
-webkit-animation-iteration-count:infinite;
-webkit-animation-direction:alternate;
-webkit-animation-play-state:running;
-o-animation-name:myfirst;
-o-animation-duration:2s;
-o-animation-timing-function:linear;
-o-animation-delay:2s;
-o-animation-iteration-count:infinite;
-o-animation-direction:alternate;
-o-animation-play-state:running;
-ms-animation-name:myfirst;
-ms-animation-duration:2s;
-ms-animation-timing-function:linear;
-ms-animation-delay:2s;
-ms-animation-iteration-count:infinite;
-ms-animation-direction:alternate;
-ms-animation-play-state:running;
}
@-moz-keyframes myfirst
{
0% {-moz-transform: scale(1, 1)}
25% {-moz-transform: scale(1, 0.5)}
50% {-moz-transform: scale(1, 0)}
75% {-moz-transform: scale(1, -0.5)}
100% {-moz-transform: scale(1, -1)}
}
@-webkit-keyframes myfirst
{
0% {-webkit-transform: scale(1, 1)}
25% {-webkit-transform: scale(1, 0.5)}
50% {-webkit-transform: scale(1, 0)}
75% {-webkit-transform: scale(1, -0.5)}
100% {-webkit-transform: scale(1, -1)}
}
@-o-keyframes myfirst
{
0% {-o-transform: scale(1, 1)}
25% {-o-transform: scale(1, 0.5)}
50% {-o-transform: scale(1, 0)}
75% {-o-transform: scale(1, -0.5)}
100% {-o-transform: scale(1, -1)}
}
@-ms-keyframes myfirst
{
0% {-ms-transform: scale(1, 1)}
25% {-ms-transform: scale(1, 0.5)}
50% {-ms-transform: scale(1, 0)}
75% {-ms-transform: scale(1, -0.5)}
100% {-ms-transform: scale(1, -1)}
}
@keyframes myfirst
{
0% {transform: scale(1, 1)}
25% {transform: scale(1, 0.5)}
50% {transform: scale(1, 0)}
75% {transform: scale(1, -0.5)}
100% {transform: scale(1, -1)}
}