if ($.exists('.word-effect')) { Splitting(); var $splittingTxt = $(".word-effect"); $($splittingTxt).each(function () { splittingTextDelay($(this),$(this).data("speed"),$(this).data("speed-delay")); }); $(".word-effect.splitting .char").wrap(""); }