티스토리 뷰
http://bxslider.com/examples/carousel-demystified
JS:
$(document).ready(function(){
$('.slider8').bxSlider({
mode: 'vertical',
slideWidth: 300,
minSlides: 2,
slideMargin: 10
});
});
HTML:
<div class="slider8">
<div class="slide"><img src="http://placehold.it/300x100&text=FooBar1"></div>
<div class="slide"><img src="http://placehold.it/300x100&text=FooBar2"></div>
<div class="slide"><img src="http://placehold.it/300x100&text=FooBar3"></div>
<div class="slide"><img src="http://placehold.it/300x100&text=FooBar4"></div>
<div class="slide"><img src="http://placehold.it/300x100&text=FooBar5"></div>
<div class="slide"><img src="http://placehold.it/300x100&text=FooBar6"></div>
<div class="slide"><img src="http://placehold.it/300x100&text=FooBar7"></div>
<div class="slide"><img src="http://placehold.it/300x100&text=FooBar8"></div>
<div class="slide"><img src="http://placehold.it/300x100&text=FooBar9"></div>
<div class="slide"><img src="http://placehold.it/300x100&text=FooBar10"></div>
</div>
Vertical carousels follow most of the same rules as horizontal carousels. However, the maxSlides setting is not used as vertical carousels will always have only one slide across. Therefore, we do not have to accomodate different screen widths with this setting.
'program' 카테고리의 다른 글
ojdbc7 spring 적용 (0) | 2018.07.16 |
---|---|
JAVASCRIPT 접속 IP 확인하는 방법 (0) | 2017.06.13 |
php 날짜 관련 처리 (0) | 2017.05.13 |
MySQL 데이터베이스에서 mysqldump 명령어를 이용한 procedure, function, trigger 포함 백업 및 복구 방법 (0) | 2017.05.08 |
[리눅스] /dev/null은 휴지통 (0) | 2017.04.27 |