for some reason, this isn’t adding and removing a new class on elements with the class of post, every 4 seconds. jquery loads correctly, as does this. chrome shows no errors with the code.
$(document).ready(function(){
$('.post').addClass('display').delay(4000).removeClass('display');
});
Since you listed you want this to happen every 4 seconds you can simply use
setInterval()Note, the selector is cached in
$postto minimize the number of times the DOM needs queried on each interval.Example on jsfiddle