Reuben
Reuben

Reputation: 2751

CSS3 Animations

I've started playing around with CSS animations. Fun!

I've set up this fiddle to practice the idea of wheels on a bus.

http://jsfiddle.net/Dr56H/2/

What's weird is sometimes there is a white space between the two divs as they move down the animation.. Any idea why?

(I only have code for chrome right now)

Upvotes: 2

Views: 217

Answers (2)

Bevanz
Bevanz

Reputation: 39

I did this and it worked.

.one {
width:100px;
height:100px;
background:red;
position:absolute;
/* Safari and Chrome: */
-webkit-animation:myfirst .4s linear 0s infinite normal;

Upvotes: 2

mkk
mkk

Reputation: 7693

if you remove animation from .one as in jsfiddle it's not there anymore

Upvotes: 1

Related Questions