Event Management

Back

var nt_example2 = $('#nt-example2 ').newsTicker({ row_height: 60, max_rows: 1, speed: 400, duration: 7000, prevButton: $('#nt-example2-prev'), nextButton: $('#nt-example2-next'), hasMoved: function() { $('#nt-example2-infos-container').fadeOut(200, function(){ $('#nt-example2-infos .infos-hour').text($('#nt-example2 li:first span').text()); $('#nt-example2-infos .infos-text').text($('#nt-example2 li:first').data('infos')); $(this).fadeIn(400); }); }, pause: function() { $('#nt-example2 li i').removeClass('fa-play').addClass('fa-pause'); }, unpause: function() { $('#nt-example2 li i').removeClass('fa-pause').addClass('fa-play'); } });