JSFiddle - React, Tailwind, and code Playground

HTML

<div class="container">
    <h1>this is cool typograp right</h1>
</div>

JavaScript

$(document).ready(function () {

var myWords = $('.container h1').html().split(' ');
   for(i=0; i<myWords.length; i++){
       //normally you add the style to it here.
       $('.container').prepend('<p>' + myWords[i] + '</p>');
   }
    $('.container h1').html('');
});