2

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)

3
  • I double checked that, and played with them to confirm. They're definitely right. The issue is it works sometimes and then after refreshing, it sometimes doesn't.. Commented Aug 4, 2012 at 21:16
  • overflow:hidden on .bus will make it ~1px tall, I can't really explain why its happening though Commented Aug 4, 2012 at 21:25
  • It's actually still random after that :/ Commented Aug 4, 2012 at 21:26

2 Answers 2

2

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; 
Sign up to request clarification or add additional context in comments.

Comments

1

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

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.