Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
<!DOCTYPE html>
<title>My App</title>
<script src="jquery.min.js"></script>
div {
position: absolute;
width: 50px;
height: 50px;
top: 100px;
left: 100px;
background: gray;
-webkit-transition: top 1s ease, left 1s ease, background 1s ease 1s;
div.state_1 {
top: 400px;
left: 600px;
background: black;
$(function() {
$('#box').click(function() {
<div id="box"></div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment