java_man
04-24-2011, 07:34 PM
Hi, I have a spinner on my site, and at the moment its rotating in one direction, back and forth 60 degrees.. which is good, and it looks smooth, but I want it to go --
start at -60deg - to 120deg - back to -60deg
and I'm not sure how to add in another keyframe. Here's my code.
#spinner {
position: absolute;
top: -3px;
left: 168px;
margin: 0px 0 0 0px;
height: 72px;
width: 72px;
text-indent: 250px;
white-space: nowrap;
overflow: hidden;
-webkit-mask-image: url(logo.png);
-webkit-animation-name: spinnerRotate;
-webkit-animation-duration: 8s;
-webkit-animation-iteration-count: infinite;
-webkit-animation-timing-function: linear;
}
@-webkit-keyframes spinnerRotate {
from {
-webkit-transform: rotateY(-60deg);
}
to {
-webkit-transform: rotateY(60deg);
}
}
Thanks everyone.
start at -60deg - to 120deg - back to -60deg
and I'm not sure how to add in another keyframe. Here's my code.
#spinner {
position: absolute;
top: -3px;
left: 168px;
margin: 0px 0 0 0px;
height: 72px;
width: 72px;
text-indent: 250px;
white-space: nowrap;
overflow: hidden;
-webkit-mask-image: url(logo.png);
-webkit-animation-name: spinnerRotate;
-webkit-animation-duration: 8s;
-webkit-animation-iteration-count: infinite;
-webkit-animation-timing-function: linear;
}
@-webkit-keyframes spinnerRotate {
from {
-webkit-transform: rotateY(-60deg);
}
to {
-webkit-transform: rotateY(60deg);
}
}
Thanks everyone.