GithubHelp home page GithubHelp logo

stevenwanderski / bxslider-4 Goto Github PK

View Code? Open in Web Editor NEW
4.2K 4.2K 1.9K 5.07 MB

Responsive jQuery content slider

License: Other

JavaScript 49.22% CSS 3.77% HTML 47.02%
bxslider content-slider image-slider jquery-slider slider

bxslider-4's People

Contributors

abhishek-ak avatar anderssonola avatar axe-me avatar b-abdelmajid avatar bsthomsen avatar cliffordp avatar digitv avatar dodozhang21 avatar durr04 avatar gavinblair avatar geertclerx avatar hirayama-evolni avatar jasonfarrell avatar jtrancozo avatar manfe avatar nikolawannabe avatar olegacy avatar pads avatar pavelvlasov avatar pborreli avatar postcasio avatar ppowalowski avatar pwalsh avatar rozzilla avatar sekmenhuseyin avatar stevenwanderski avatar tamalsaha avatar tbaltrushaitis avatar turboezh avatar waissbluth avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bxslider-4's Issues

slideWidth

I can't seem to get the slide width to make any difference to the width of the slider, I am using the condition

slideWidth:630 to match the width of the image, is this the correct way to set the width?

Thanks

stopping the slideshow when not in viewport

Another thing, I just implemented this pretty neat piece of code that stops the slideshow when the slider is not visible / scrolled away. It comes handy when using adaptable height feature. Implement it if you find it helpful.

function isFullyVisible(elem)
{
    var docViewTop = $(window).scrollTop();
    var docViewBottom = docViewTop + $(window).height();

    var elemTop = $(elem).offset().top;
    var elemBottom = elemTop + $(elem).height();

    return ((elemBottom >= docViewTop) && (elemTop <= docViewBottom)
        && (elemBottom <= docViewBottom) &&  (elemTop >= docViewTop) );
}

var slider = $('.bxslider').bxSlider();
$(window).scroll(function(){
    if(isFullyVisible('.bxslider')){
        slider.startAuto();
    }else{
        slider.stopAuto();
    }
});

autoStart doesn't change anything at true or false

Hi,

just tried autoStart but it doesn't seem to change anything in the slider behavior.

$('.bxslider').bxSlider({
mode: 'horizontal',
autoStart: true,
startSelector: 'start',
autoControls: true,
hideControlOnEnd: true
});

If I try it with the code above the slider doesn't start to transist. It only starts with "auto:true" while autoStart seems to do nothing. Looks like it takes no effect.

What am I doing wrong?
Thanx alot in advance.

Kind regards
Wulle

Can not use individual images for buttons anymore?

Hi there,

in one of the last updates the selectors for start and stop buttons are gone aswell as I am not able to use individual images for the start and stop buttons since then.

Why is that?
How can I tell the bxSlider to use certain images for start and stop, prev and next?

Please tell me I did some complex implementation into my CMS and now all these settings are useless.

Thanks you very much in advance
Regards
Wulle

slideWidth is stated to be required for horizontal sliders but is ignored

slideWidth is stated to be required for horizontal sliders but is overruled with bxslider's own calculations even if provided.

I would generalise and say bx-slider tends to be a little greedy in expanding it's viewport width and since version 4 a little prone to error in calculating it's height, at least in my experiences with it. Might be nice to have a toggle to prevent it from applying styles except those necessary to transition the slides so that you can easily override with your own stylesheets, but the need for the overriding styles is heavily driven by the issue above.

How can I mark the active pager thumbnail?

Hi,

former there was a config param called pagerActiveStyle (or something like that) where I could say bxSlider how to format the active pager thumbnail. How can I do that now? There is no such parameter in your options anymore.

Thanx in advance
Regards
wulle

captionsSelector gone?

Hi,

there are often the need of placing the captions outside the slider. The parameter captionsSelector seems to be gone. How can I individually place the captions now pls?

Thx
Regards
Wulle

bxslider working on my PC won't work when uploaded.

Hi. I'm not very tech guy and I'm totally lost here. I'd appreciate any help/suggestion.

I've got bxslider working on my Twitter Bootstrap based html. It works beautifully on IE, Chrome, FF, Safari.
But somehow once I uploaded it up on my web server, it stopped working with an error like this:

 TypeError: $(...).bxSlider is not a function .

Whatever JS I put gets shown as the error. Currently it is like this:

slideargin: 5

Oh, my site is here;
http://tokyo-flaneur.com/dl/donner/index.html

Any ideas?

Thanks.

Slider with videos broken in Firefox

I'm using the latest Firefox 17.0.1. If I have a slider that contains embedded youtube videos, I'm not able to play the video and everytime I click to play, it goes to the next slide. When this happens the thumbnail pagers and functions under onSlideBefore also are not functioning properly.

See the example http://bxslider.com/examples/video in Firefox 17.0.1. Tested in 2 computers and behavior is the same. Thank you.

1:1 touch swipe

Hi,
I use bxslider in a phonegap application for swiping slides with html content.
It worked fine until I downloaded your last version. It seems that since you changed the way you capture swipe events (your change on Nov. 21), there is some problem on Android phones.

In one of my slides I have an input field and a button. The click event on both the input field and the button works fine on Chrome, on iOS. But it does not work on Android. Looks like the click event is not passed to my elements... Rather strange since the only difference is the new way you handle swipe events now. I tried to figure it out but couldn't find were the error was. Any ideas ?

reloadShow() v4 equivalent?

Is there an equivalent public method in v4 for v3's reloadShow()? If not, how would one achieve creating new slideshows using AJAX?

Next Prev dotted outline on focus

Hi,
Firefox 17 - when click on next, prev button there is outline from left page to a button.

This fix it:
.bx-wrapper .bx-next:focus { border: 0 none; outline: 0 none; }

Declaring the last slide as the starting slide messes up the slide progression

I have built a slider that will sometimes have the last slide as the starting slide. When this happens, that slide renders at the far right, instead of the far left. Also, when you progress the carousel it skips more than the indicated amount of slides.

Here is a jsFiddle..

http://jsfiddle.net/aapljack/hUYr5/2/

You can see the top slider exhibits the incorrect behavior with the last slide as starting slide and the bottom slider shows the correct behavior with the second to last slide as starting slide.

Is this a bug? Is there a workaround? Am I doing something wrong?

Thanks in advance.

Brian

Jquery UI 1.8.6 and up > viewport height issue

Jquery UI 1.8.6 and up makes bx-slider bx-viewport on a fixed 50px height...
in my case : I installed it incl. autocomplete.

downgrading jquery UI fixed my problem but I thought you need to know this

thanks

YUI Compressor - FLOAT is a reserved word.

We run all of our JS through the YUI compressor. On line 180, you are declaring the float of the element which breaks on the YUI compressor. I wrapped it in quotes to make it a string temporarily. Thought you might want to know, but not sure how many others will have an issue with this.

horizintal ticker "stutter"

Hi,
first of all great work, I love this slider script, and I bought you a beer!

any idea why therer's a slight pause every now and then on a horizontal ticker:
http://www.erikbijma.nl/

I thought it might be the black and white script, but I disabled it locally and it still happens

appreciate the help thanks

Large Slideshows Bug

Hi,

I have updated to the latest version of 4 and am having problems with a large slideshow (82 slides).

Using 'startSlide' navigating to the later slides (20+) the browser crashes when using Chrome, IE 7&8 and Safari. No problem when using Firefox.

I rolled back to Commit 23b767d and there is no problem.

Small slideshows (10 slides) don't seem to cause a crash.

Can't work out what is causing it or why firefox is fine...

Thanks

page-right Direction control on horizontal carousel displays with only one item

The following fixes the issue

/**
* Updates the direction controls (checks if either should be hidden)
*/
// RK: fixed bug with showing nav arrows when only one item in list
var updateDirectionControls = function(){
// if infiniteLoop is false and hideControlOnEnd is true
if(!slider.settings.infiniteLoop && slider.settings.hideControlOnEnd){
slider.controls.prev.removeClass('disabled');
slider.controls.next.removeClass('disabled');
// if first slide
if (slider.active.index == 0){
slider.controls.prev.addClass('disabled');
}

            if (slider.active.index == getPagerQty() - 1) {
                slider.controls.next.addClass('disabled');
            }
        }
    }

setters and getters

Also the common way of getting the properties out of the object would be awesome - like getting the property as var isAuto = $('bxslider').bxSlider('auto'); and setting it like $('bxslider').bxSlider('auto',false);

thanks for your work, I appreciate it.

suggestion: for ajax updated slide items

Hi,
currently, if I using jquery ajax method to update the slide items. firstly, I have to destroy the show instance. and then need re-initiate slider again.
I think this is somehow effect the performance.
so is there any public method that can allow us to have update method.
eg.
var $slider = $('.theSlider').bxSlider({...})

after ajax update the slider...
$.ajax(...).done(

$slider.updateChild();
//or
$slider.reset()
)

Thanks

Mike

hideControlsOnEnd not working

So, I'm using a bxSlider setup which shows multiple images at once (between 2 and 4) and is not using a infinite loop. However, the hideControlsOnEnd is not honored and shows on both the first page and last one. Any idea why? Using the latest bxSlider (4.0) and the latest jQuery (1.8.3). I'm also using isotope.js if that would matter.

Here's my js

$('#single ul').bxSlider({
          minSlides: 2,
          maxSlides: 4,
          slideWidth: 380,
          adaptiveHeight: true,
          slideMargin: 10,
          pager: false,
          infiniteLoop: false,
          hideControlsOnEnd: true,
        }); 

and here's my html, if that helps (obviously wrapped in a div with the ID set as single)

  <ul>
    <li><img src="img/test_big.png"/></li>
    <li><img src="img/test_big.png"/></li>
    <li><img src="img/test_big.png"/></li>
    <li><img src="img/test_big.png"/></li>
    <li><img src="img/test_big.png"/></li>
    <li><img src="img/test_big.png"/></li>
    <li><img src="img/test_big.png"/></li>
    <li><img src="img/test_big.png"/></li>
    <li><img src="img/test_big.png"/></li>
  </ul>

Thank you.
/Niclas

plugin crashes with certain css

On my page I give custom css to the bx-viewport element:

width: 460px;
margin: 0 auto;

I HAVE to set my slideWidth to 400px (or smaller), or my browser crashes... :/

It's probably an edge case, but it's weird that certain css is able to crash the plugin.

Carousel infinite loop

Hello,
Is there any chance that Carousel will no swing to beginning on clicking prev and next buttons?
When You use only one img everything is OK - clicking next button will lead You through all images without backwards animation but when You have few images shown at once the backwards animation occurs. In preview version there was no such problems. Images animated in same direction infinitely.
I'm using such options:

$('#home-slider').bxSlider({
auto: true,
pause: 3000,
slideMargin: 20,
easing: 'swing',
minSlides: 3,
maxSlides: 3,
pager: false,
moveSlides: 1,
slideWidth: 187,
infiniteLoop: true
});

Continuous Vertical Slider/Ticker

Im trying to get a continuous vertical slider to go and i've tried all sorts of stuff, but it doesnt seem to work.

I've got my options like this:
$(".scrollable").bxSlider({ticker: true, mode:'vertical', autoHover: true, auto: true });

The container div (scrollable) seems to always just have a height of a single image, so im not able to get the ticker type feel of it auto scrolling and repeating. Any help would be great!

Its like the bx-viewport is always fixed to a single image. I've tried adding minSlides (or maxSlides) and when that property is set, the slideshow doenst do anything.

Thanks,

Jake

Responsive size to javascript actions

Hi, I really love bxSlider and have been using it for over a year on multiple projects. I would like to know if you could create a public method to launch the resizing operation ourselves. For example, i want to click a zoom button which resizes the slider to nearly twice the size.

Just write me back and i'll send you the fix i created, ready for you to integrate if it works everywhere.

Thanks.

Auto stops working after interaction

If you have a slider like:

$('#home-slider').bxSlider({ pager: false, auto: true, autoHover: true, pause: 5000 });

When you interact with the slider via next/prev then move away the slider does not resume the auto process.

Can't seem to get my tooltips working with thumbnail pager

I would like to have tooltips appear on hover over the pager thumbnails. Is the wrapper possibly capturing the hover events and disabling this functionality? I would really like to use my favorite jquery tooltips with your great slider.

Custom controls selectors populates twice

I have yet to look into this issue myself, it may be to do with my configuration. but when choosing a custom selector for my controls to be placed into, the controls appear twice and break their function (That is; their are 2 "bx-next" elements).

// CONTROLS
controls: true,
nextText: ' ',
prevText: ' ',
nextSelector: '.slidecontrols .icon-chevron-right',
prevSelector: '.slidecontrols .icon-chevron-left',
autoControls: false,
startText: 'Start',
stopText: 'Stop',
autoControlsCombine: false,
autoControlsSelector: null,

auto-restart the slider after using the nav buttons

Is there an option to re-start the slider after one uses the various nav buttons?

I've got a slider that runs automatically, but once someone clicks next/prev or a pager button, it stops transitioning on its own. I'd like to be able to set a counter so it'll start up again after a set amount of time.

Show title only when mouse is on slide.

Most of times, User only want to show picture no need to show caption. If user consider one of pictures, he will move mouse onto slide, then show him the caption to give him more detail.

If user is not consider about the picture. The caption is not the thing what he is considered. So I think you give add this option.

Allowed multiasignment

Hi,

when I try to get the bxSlider object by $('bxslider').bxSlider(); and i have already assigned the slider to the element, the slider instantiates again on that element which I consider being a bug. It should only return the instance.

TypeError: position is undefined

I have a strange issue:

I create a script.js like this:

  $(document).ready(function(){

$('.bxslider').bxSlider({
    pager: false,
    mode: 'fade',
    auto: true,
    autoHover: true
});

$('.depliant').bxSlider({
    pager: false
});

$('.bxcarousel').bxSlider({
    pager: false,
    minSlides: 2,
    maxSlides: 3,
    slideWidth: 155,
    slideMargin: 20
});

$('.bx_preview_slider').bxSlider({
    pagerCustom: '#bx-pager',
});

  });

I use two slideshow, one carousel and one thumb. If I insert only thumbnail pager into my page there is an error on jquery.bxslider.js, line 380: TypeError: position is undefined. In this page I have only the thumbnail pager. If I delete slideWidth and slideMargin from .bxcarousel into script.js it is work.

Can you help me? Thank you in advance.

randomStart

Hi,

Have you any plans to add this feature to Ver 4 as it was in Ver 3? Really want to upgrade to Ver 4 but can't as we rely on the random start slide.

Many Thanks

Where is the v3's documentation ?

Updates of bxSlider are very nice :)

No backward is a choice, but I'm embarrassed about the documentation update. Indeed, many functions' name have changed and there is no trace of previous documentation :s

Thumbnail pager not working

Here's my HTML:

<ul class="bxslider">
    <li><img src="myimage.png"></li>
    <li><img src="myimage.png"></li>
    <li><img src="myimage.png"></li>
</ul>

<div id="bx-pager">
   <a data-slide-index="0" href=""><img src="myimage_thumb.png"></a>
   <a data-slide-index="1" href=""><img src="myimage_thumb.png"></a>
   <a data-slide-index="2" href=""><img src="myimage_thumb.png"></a>
</div>

I am calling bxslider via: element.bxSlider({ pagerCustom: '#bx-pager' })

Part of the thumbnail pagers is working... as you switch slides (via the normal method) the 'active' class will switch elements. But clicking on the thumbnails doesn't do anything.

Thoughts?

Show navigator when mouse is on slide.

It's the same reason. Please add this: when mouse is out of picture, hide navigator, When mouse is on picture, show navigator.

All I want is Let user can focus on picture if he just want to view pictures.

automatic hiding (non-populating) of arrow controls when there's not enough items

Currently the slider is not considering situations, when there's not enough items to fill the viewport. Or, better said - the whole slider seems to break in such situations, positioning items in ridiculous offsets and showing the move controls although they shouldn't be visible at all.

You can test this on a horizontal slider, with, ie. max and min set to 4, item width set to viewport/4, and the slider having only 1 or 2 items.

Additional animation fails on infinite loop

I may have found a bug:

I have a slider running in an infinite loop. You can see the previous and next slides peeking out on either side of the main slide being viewed. They're supposed to fade in as they become active, and fade out as they leave the viewport.

It works flawlessly, except for one thing: the animation halts on the transition from the first slide to the last, and from the last slide to the first.

You can see what I'm talking about at jsfiddle. That's just the exact code I'm using, though with different images, and with missing page assets, of course.

Also: this could just be Firebug freaking out, but when I resize the browser window, the slider responds exactly as it's supposed to, but seemingly at random, the previous and next events fail with this error in the console:

Error in protected function: !99

It doesn't really give more detail than that.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.