I am looking to create a fade-in effect for the background of an entry inside a div element. The goal is to highlight the most recent entry when the page loads.
It should happen automatically on page load, without requiring any click or hover events.
Here is the code snippet I currently have:
$(document).ready(function() {
$('#box').fadeIn(5000, function() {
// Animation complete
});
});
Could this be achieved using something like pageLoad?
Any assistance would be greatly appreciated.