티스토리 뷰
- slideDown
$(selector).slideDown(speed,callback);
- slideUp
- slideToggle
예제)
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("#flip").click(function(){
$("#panel").slideToggle("slow");
});
});
</script>
<style>
#panel, #flip {
padding: 5px;
text-align: center;
background-color: #e5eecc;
border: solid 1px #c3c3c3;
}
#panel {
padding: 50px;
display: none;
}
</style>
</head>
<body>
<div id="flip">Click to slide the panel down or up</div>
<div id="panel">Hello world!</div>
</body>
</html>
'jQuery > Effects' 카테고리의 다른 글
jQuery: animate, stop, chaining (0) | 2020.07.30 |
---|---|
jQuery: Fading (0) | 2020.07.30 |
jQuery: hide, show, toggle, callback functions (0) | 2020.07.30 |
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- jsp
- links lists tables display
- HTML #media #video #YouTube
- Mavenproject
- JSP환경구축
- DynamicWebProject
- 2020Camp
- text_shadow
- UserBean
- HTML #Tables
- HTML #class
- annotation
- 인용문 #주석
- meta #link #script #base #HTML
- css
- head #title #style
- STS4
- HTML_Forms
- HTML #Headings #Paragraph #Styles
- HTML_Formatting
- HTML #CSS
- box_model
- javascript #datatype
- Block_element #inline_element
- HTML #id #iframe
- DB4free
- JSP_CRUD
- HTML #Canvas #SVG
- fontstyle
- 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 | 29 | 30 | 31 |
글 보관함