const fadeOutDuration = 2000;
const intervalPeriod = 6000;
jQuery(function(){
	var feedbacksContainerJ = jQuery('.feedbacks');
	setInterval(function(){
		var firstFeedbackJ = jQuery('.feedback-block:first');
		firstFeedbackJ.animate(
			{
				opacity : 0,
				height : 'toggle'
			},
			fadeOutDuration,
 			function(){
				feedbacksContainerJ.append(firstFeedbackJ);
				firstFeedbackJ.show();
				firstFeedbackJ.css('opacity',1);
			}
		);
	}, intervalPeriod);
})

