JSFiddle - React, Tailwind, and code Playground

by quanghoan

HTML

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<h2>This is dqhoan</h2>
<p class="myClass">This is the 1st sentence</p>
<p id="myId">This is the 2nd sentence</p>
<p> Scuti is growing up in Asia </p>
<button>Click me</button>
<div style="background:#98bf21;height:100px;width:100px;position:absolute;"></div>

JavaScript

$(document).ready(function(){
    $("button").click(function(){
        $("div").animate({
            left: '250px',
            opacity: '0.5',
            height: '150px',
            width: '150px'
        });
    });
});