I
I
id_baton4eg2015-12-25 19:38:40
css
id_baton4eg, 2015-12-25 19:38:40

How to use animate.css on :before elements?

Hello, I'm animating elements using animate.css and js like this:
$(document).ready(function(){
$('.header_container_fixed').addClass('animated fadeInLeft');
});
but for elements :before doesn't work, how can one use ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey delphinpro, 2015-12-25
@id_baton4eg

Doesn't work because it's not provided. Duplicate classes from animate.css for pseudo-elements yourself

.animated__before::before {
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question