J'essaie d'utiliser une animation CSS3 keyframe qui, au survol d'un objet, déclenche l'animation dans un autre objet. Pour l'instant, je n'ai qu'une simple image clé :
@keyframes fill
{
from {background: red; height: 0px; width: 0px;;}
to {background: green; height: 150px; width: 150px;}
}
@-moz-keyframes fill /* Firefox */
{
from {background: red; height: 0px; width: 0px;}
to {background: green; height: 150px; width: 150px;}
}
@-webkit-keyframes fill /* Safari and Chrome */
{
from {background: red; height:0px; width:0px;}
to {background: green; height: 150px; width: 150px;}
}
Et le html est le suivant :
<div class="box1">
<div class="box2"></div>
</div>
Si ma feuille de style applique la propriété d'animation à .box1, peut-elle animer .box2 ?