html
html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!doctype html>
<!-- Borrowed from http://api.jqueryui.com/slide-effect/?rdfrom=http://docs.jquery.com/mw/index.php?title=UI/Effects/Slide&redirect=no -->
<!-- For https://www.sololearn.com/Discuss/1403745/?ref=app -->
<html lang="en">
<head>
<meta charset="utf-8">
<title>slide demo</title>
<link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/smoothness/jquery-ui.css">
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
</head>
<body>
<p>Click anywhere to toggle the box.</p>
<div id="toggle"></div>
Enter to Rename, Shift+Enter to Preview
css
css
1
2
3
4
5
6
7
8
9
/* Borrowed from http://api.jqueryui.com/slide-effect/?rdfrom=http://docs.jquery.com/mw/index.php?title=UI/Effects/Slide&redirect=no */
/* For https://www.sololearn.com/Discuss/1403745/?ref=app */
#toggle {
width: 100px;
height: 100px;
background: #ccc;
}
Enter to Rename, Shift+Enter to Preview
js
js
1
2
3
4
5
6
7
/* Borrowed from http://api.jqueryui.com/slide-effect/?rdfrom=http://docs.jquery.com/mw/index.php?title=UI/Effects/Slide&redirect=no */
/* For https://www.sololearn.com/Discuss/1403745/?ref=app */
$(document).click(function() {
$("#toggle").toggle("slide");
});
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Run