Here is the structure of my markup:
<div class="authentication">
<div class="form-inputs"></div>
</div>
My goal is to have the color of the authentication section slide down from top to bottom when the page loads. Initially, the color is white and I want blue to fill in from the top (similar to how the header color fills the body).
I attempted this using the following code:
<script>
jQuery(document).ready(function($) {
$('.authentication').animate({backgroundColor: '#4BC5DA'}, 3000);
});
</script>
However, it ends up having a fade in effect.
After the color changes, I would like the "form-inputs" to fade in as well. I understand that I need to chain these actions together but I'm having trouble figuring out the exact implementation.