bxSlider 예제15. Responsive video
2016. 7. 22. 23:34ㆍbxSlider/예제
반응형
15. Responsive video
JS:
$('.bxslider').bxSlider({
video: true,
useCSS: false
});
HTML:
<!-- <script src="/js/plugins/jquery.fitvids.js"></script> must be included in the <head>
after the jQuery library, and before the jquery.bxslider.js file. See the source code
of this page for an example. -->
<ul class="bxslider">
<li>
<iframe src="http://player.vimeo.com/video/17914974" width="500" height="281" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
</li>
<li><img src="/images/730_200/houses.jpg" /></li>
</ul>
The file jquery.fitvids.js (found in the plugins folder) must be called AFTER the jQuery library, and BEFORE the jquery.bxslider.js file. An example <head>
could look like the following:
<head>
<!-- other stuff here -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script src="/js/plugins/jquery.fitvids.js"></script>
<script src="/js/jquery.bxslider.js"></script>
</head>
반응형
'bxSlider > 예제' 카테고리의 다른 글
bxSlider 예제17. Custom easing (0) | 2016.07.22 |
---|---|
bxSlider 예제16. 계속 슬라이드 (Ticker mode) (0) | 2016.07.22 |
bxSlider 예제14. Public methods (0) | 2016.07.22 |
bxSlider 예제13. Callback API (0) | 2016.07.22 |
bxSlider 예제12. 복수(멀티) 슬라이드 (0) | 2016.07.22 |