(function(win, doc) { var wow = new WOW({ boxClass: 'wow', animateClass: 'animated', offset: 0, mobile: true, live: true }); wow.init(); var infoText = $('.info-desc-text').text(); // $('.info-desc-text').text(infoText + '...'); $('.info-desc-text_more').on('click', function() { $(this).hide(); $('.info-desc-text_collect').show(); $('.info-desc-text').text(infoText + infoText); }); $('.info-desc-text_collect').on('click', function() { $(this).hide(); // $('.info-desc-text').text(infoText + '...'); $('.info-desc-text_more').show(); }); // $('.info-desc-text_more').on('click', function() { // var el = $('.info-desc-text').contents().filter(function(index, content) { // return content.nodeType !== 1 // }); // var text = el.text(); // $(this).text(text + text); // }); })(window, document);