bxslider

bxslider calculating wrong viewport size on load

匿名 (未验证) 提交于 2019-12-03 02:50:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Anyway I recently started using bxslider and I'm having an issue with it. It seems to calculate its viewport size wrongly on page load, which means it doesn't work well on mobile devices, tablets etc. The weird thing is, when I resize the window of the browser(even just for a pixel) the viewport height gets calculated correctly and everything looks fine. But if I refreshed the page with same height and width bx-viewport wouldn't be correctly calculated. Any idea why this is happening? HTML looks something like this(and yeah I'm aware that it

bxslider remove gap between slides and thumbnail pager

匿名 (未验证) 提交于 2019-12-03 01:44:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I am using bxslider with a thumbnail pager. It all works fine, but there is a large space between the slides and the thumbnails (about an inch). I can't find where to reduce the size of this gap. Here's my code <div style = " width : 720px ; margin : 0 auto ; " > <div class = "bxslider" > <div style = " background - image : url ( 'images/slide14.png' ); width : 710px ; height : 230px " > number 1 </div> <div style = " background - image : url ( 'images/slide16.png' ); width : 710px ; height : 230px " > number 2 </div> <div style =

BxSlider displayes last slide as first slide

眉间皱痕 提交于 2019-12-02 20:55:40
I have created 4 sliders. Initially all 4 are hidden (display:none) so I have used this code to display the relevant slider on click of its respective category. The slider configuration. touchEnabled: true, hideControlOnEnd: true, preloadImages: 'all', infiniteLoop: false, mode: 'horizontal', startSlide: 0, slideWidth: 300, minSlides: 2, maxSlides: 3, slideMargin: 10, pager: false, slideSelector: ".isotope-item", nextSelector: "#forefoo2_next", prevSelector: "#forefoo2_prev", nextText: '', prevText: '', onSliderLoad: function(){ jQuery(".sliloading").hide(); }, jQuery(window).ready(function(){

Order of z-index elements on bxslider

泄露秘密 提交于 2019-12-02 07:37:00
I need to order the contents of a bxslider with a no-child element. between the image and the text over the top. e.g <div> <ul id="slider"> <li><img src="image1.jpg" /><span>text</span></li> </ul> <div class="under-text-over-image"></div> </div> Could anyone advise on the z-index? my existing css is similar to: li img{ position:relative; z-index:1; } li span{ position:relative; z-index:3; } .under-text-over-image{ position:relative; z-index:2; } Thanks I would try something along the lines of: li img{ position:relative; z-index:-99999; } li span{ position:relative; z-index:99999; } .under-text

bxslider not working properly for dynamically loaded content

為{幸葍}努か 提交于 2019-12-01 06:25:19
问题 Had to use bxslider for one of the app. I have some issues while trying to implement bxslider with dynamically loaded content over ajax. It works abruptly. Interestingly when there is a slight change in view port either by opening dev tools or window size change, it does sometime works . Would just like to understand has anyone faced this issue before and what could be the workaround. Thanks 回答1: BxSlider now contains two new methods: reloadSlider() destroySlider() After loading new content

How to get bxSlider to hide the slides until the page loads?

风流意气都作罢 提交于 2019-11-30 10:38:11
问题 I'm building an website that uses bxSlider. As the page loads, all of the slides are visible, stacked on top of each other. Once the page is fully loaded, the first slide remains visible and the rest disappear so that the slider can animate and display them one at a time. I've tried using various CSS and bxSlider callbacks to hide the slides until the page fully loads, but no luck. Does anyone know how to do this? Thanks! 回答1: bxslider has a callback when the slider is loaded (onSliderLoad).I

How to get bxSlider to hide the slides until the page loads?

只谈情不闲聊 提交于 2019-11-29 22:08:20
I'm building an website that uses bxSlider . As the page loads, all of the slides are visible, stacked on top of each other. Once the page is fully loaded, the first slide remains visible and the rest disappear so that the slider can animate and display them one at a time. I've tried using various CSS and bxSlider callbacks to hide the slides until the page fully loads, but no luck. Does anyone know how to do this? Thanks! bradrice bxslider has a callback when the slider is loaded (onSliderLoad).I set visibility to hidden on a container div and then use the callback to set the visibility to

In bxslider i want to add a class on current slide

主宰稳场 提交于 2019-11-29 18:52:42
问题 I want to add an extra class to the current visible slide, i dont have so much knowledge of jquery i'm trying it by following code. $(document).ready(function(){ $('#slider1').bxSlider({ pager: 'true' }); $(currentSlide).addClass('active-slide'); return false; }); 回答1: http://bxslider.com/options var slider=$('#slider1').bxSlider({ pager: 'true', onBeforeSlide: function(currentSlide, totalSlides, currentSlideHtmlObject){ $('.pager').removeClass('active-slide'); $(currentSlideHtmlObject)

Making BXslider full screen (filling entire browser window)

别等时光非礼了梦想. 提交于 2019-11-29 13:44:50
问题 I am currently trying to implement THIS very simple content slider. I have reached a point where it is working, however using the CSS code below I need to make the slider full screen, filling the entire browser window. However I can not see where to put the code for this can someody help me? I feel like a bit of a dummy for asking such a simple question! My current code is below. My HTML code <body> <div class="slider"> <ul class="bxslider"> <li><img src="images/slide1.png" /></li> <li><img

Bxslider custom caption outside of slider

僤鯓⒐⒋嵵緔 提交于 2019-11-29 08:57:42
I am trying to move bxslider captions outside of slider. Since there is "overflow: hidden" I can't do it with just css. What I am trying to do: <div class="captions"></div> // I need display captions here <ul> <li><img src="images/1.jpg" title="Caption 1"></li> <li><img src="images/2.jpg" title="Caption 2></li> </ul> Captions generated with this code: var appendCaptions = function(){ // cycle through each child slider.children.each(function(index){ // get the image title attribute var title = $(this).find('img:first').attr('title'); // append the caption if (title != undefined && ('' + title)