I have the following code:
<input type="text" name="name" required>
<div class="form-error-cont">
<p class="form-err">
<i class="icon-remove"></i>
<span class="text">Your name is required.</span>
</p>
</div>
Now, when the form is empty, I'm adding a animate class to the form-err class with jQuery.
When the animate class is there, I want to individually animate both the i and the span elements inside - with CSS.
How is that possible? Any special css selector is needed here?
.form-err.animate .icon-remove { opacity: 0; }? I'm hesitant to post it as an answer because I'm not sure if this is what you mean.