Je ne peux pas créer une belle finition pour mon animation css3. Comme aller boîte-ombre à l'opacité 0. Si je viens d'ajouter la classe avec une animation de pause, ce ne sera pas agréable, comme blik stop.Comment ajouter une classe avec css3 Animation?
Javascript
$(this).addClass('paused').delay(200).addClass('a-finish');
CSS
.paused {
-webkit-animation-play-state:paused;
-moz-animation-play-state:paused;
animation-play-state:paused;
}
.a-finish {
-webkit-animation: 5s linear 0s normal none 1 wrap-done;
}
@-webkit-keyframes wrap-done {
0% { box-shadow: 0 9px 4px rgba(255, 255, 255, 1) inset;}
100% { box-shadow: 0 9px 4px rgba(255, 255, 255, 0) inset;}
}
donc j'ai juste besoin un peu comme fondu facilité l'animation par une autre animation CSS3.
Comment je peux le faire avec css3 et JQ?
Si tout ce que vous voulez est une animation de fondu, avez-vous essayé '.fadeOut()'? –
Ofc je n'ai pas seulement besoin de fadeOut =) – fdrv