JSFiddle - React, Tailwind, and code Playground

by caoshengxiang

HTML

<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<div class="test">
  这是一个测试jsfiddle
</div>

CSS

.test {
  color: green;
  width: 0px;
  height: 50px;
  border: 1px solid #ccc;
  background-color: #ccc;
  overflow: hidden;
}

JavaScript

document.querySelector('.test').onclick=function(){
	alert('test')
  console.log($)
}

$('.test').animate({
	width: '300px'
}, 2000)