JSFiddle - React, Tailwind, and code Playground
by Juan Muñoz
HTML
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<div><p class="selected">A la mujer le gusta la</p><span>Musica Folclorica</span><p class='hide'>8===D</p></div>
JavaScript
$('.hide').hide();
$( "p.selected" ).next().css( "background", "yellow" ).fadeOut( 1000, function() {
//$( "div" ).text( "'" + $( this ).text() + "' has faded!" );
$( this ).remove();
$('.hide').show().css( "background", "yellow" ).slideUp( 300 ).delay( 800 ).fadeIn( 400 );
//alert("jajaja sorri");
});
//$( "p.selected" ).next().css( "background", "yellow" ).fadeOut('400', 'slow');