I'm currently working on a demo application that will randomly choose a venue when a user clicks a button. My goal is to have the selected venues scroll through with a slot machine spinning animation created using CSS3 and jQuery.
Initially, I considered utilizing -webkit-keyframes
and adjusting the background position for the animation, but I found it didn't quite meet my vision for the effect.
@-webkit-keyframes spin{
0% {
background-position: 0, 0 0;
-webkit-transform: rotateX(0deg);
}
100% {
background-position: 0, 0 -640px;
-webkit-transform: rotateX(360deg);
}
}
.rotating{
-webkit-animation: spin .5s infinite linear;
-webkit-transition: background-position .7s;
}
Does anyone have any suggestions or insights on achieving this desired animation effect? You can view my progress so far here. Any help would be greatly appreciated.
Thank you!