Björn
Björn

Reputation: 13207

Unwanted delay in css3 animations triggered by adding classes

I am using the excellent css3 animations "library" provided by http://daneden.me/animate/

There is a slight but noticeable delay of about 1 second, when any of the examples are clicked. In the source it adds the animation-classes to the element and the browser will then execute the css animation statements.

I want the css3 animation to start immediately after clicking. Is there a solution?

Upvotes: 0

Views: 154

Answers (1)

Donovan Charpin
Donovan Charpin

Reputation: 3397

You have the property animation-delay, this property wait x seconds, then start the animation.

I see animation-delay: .2s; on #animateTest.

Maybe you have good eyes to see this little time.

Upvotes: 1

Related Questions