Skip to content

Instantly share code, notes, and snippets.

@IPRIT
Created October 28, 2015 17:03
Show Gist options
  • Select an option

  • Save IPRIT/e4d58c31007c04e89adf to your computer and use it in GitHub Desktop.

Select an option

Save IPRIT/e4d58c31007c04e89adf to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Титле</title>
<script>
document.addEventListener('DOMContentLoaded', function () {
var script = document.createElement('script');
script.src = './task.js';
document.body.appendChild(script);
});
</script>
<style>
body,
html {
padding: 0;
margin: 0;
min-height: 100%;
height: 100%;
}
.block {
padding: 20px;
background: rgba(36, 205, 30, 0.77);
height: 100%;
}
.animate-ball {
width: 50px;
transition: top 3s cubic-bezier(0.13, 1.24, 0.43, -0.15),
left 3s cubic-bezier(0.02, 1.13, 0.33, 0.13);
}
.ball {
border-radius: 50%;
width: 40px;
height: 40px;
background-color: cadetblue;
top: 0;
left: 0;
position: absolute;
}
</style>
</head>
<body>
<div class="block">
<div class="ball animate-ball"></div>
<div class="ball animate-ball" style="top: 200px; transition-duration: 1s;"></div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment