Created
July 14, 2017 06:36
-
-
Save FatihGoktas/d2ef0d7739d606555e7427650c735d72 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Title</title> | |
<style> | |
.outer { | |
width: 700px; | |
height: 1000px; | |
border: 2px dashed green; | |
margin: 20px; | |
} | |
.box { | |
widht: 100px; | |
height: 80px; | |
border: 2px solid green; | |
margin: 20px; | |
} | |
</style> | |
</head> | |
<body> | |
<input type='button' id='btn' value='click' /> | |
<div class='outer'></div> | |
</body> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> | |
<script> | |
$('#btn').click(function() { | |
$box = $("<div class='box'></div>"); | |
$('.outer').prepend($box); | |
$box.hide().slideDown(3000); | |
}); | |
</script> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment