JSFiddle - React, Tailwind, and code Playground

by Sean Wessell

HTML

<button id="object1">
click
</button>
<div id="object2">
test
</div>

JavaScript

var object1 = $("#object1");
var object2 = $("#object2");

var toggle = function ( speed, easing, callback ) {
		return speed == null || typeof speed === "boolean" ?
			cssFn.apply( this, arguments ) :
      console.log(this)
			this.animate( genFx( name, true ), speed, easing, callback );
	}
  


console.log(object2.toggle)

object1.click(toggle);