var svgId = new Vivus('obturateur1', {start: 'autostart', duration: 250,animTimingFunction: Vivus.EASE_OUT}); if($('#obturateur1').parents('.design').hasClass('active')) svgId.play(1);