logo
down
shadow

How to show 5 images in a 2 row slider with bxslider


How to show 5 images in a 2 row slider with bxslider

By : user3100457
Date : January 12 2021, 07:00 PM
hop of those help? You need to use the slideWidth and mode:'horizontal' along with the minSlides and maxSlides to show 5 slides in a single row, although you cant display 2 rows on a single slide, the plugin does not support it.
For a single row with 5 images to be displayed at a time see below
code :
$(document).ready(function() {
  var a = $('.slider').bxSlider({
    minSlides: 1,
    maxSlides: 5,
    mode: 'horizontal',
    adaptiveHeight: true,
    slideWidth: 100,
    moveSlides: 5,
  });
});
<link rel="stylesheet" href="https://cdn.jsdelivr.net/bxslider/4.2.12/jquery.bxslider.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/bxslider/4.2.12/jquery.bxslider.min.js"></script>



<div class="slider">
  <div><img src="https://static-s.aa-cdn.net/img/ios/982172572/5070580cca87408d911344542276639c?v=1"></div>
  <div><img src="https://static-s.aa-cdn.net/img/ios/982172572/5070580cca87408d911344542276639c?v=1"></div>
  <div><img src="https://static-s.aa-cdn.net/img/ios/982172572/5070580cca87408d911344542276639c?v=1"></div>
  <div><img src="https://static-s.aa-cdn.net/img/ios/982172572/5070580cca87408d911344542276639c?v=1"></div>
  <div><img src="https://static-s.aa-cdn.net/img/ios/982172572/5070580cca87408d911344542276639c?v=1"></div>
  <div><img src="https://static-s.aa-cdn.net/img/ios/982172572/5070580cca87408d911344542276639c?v=1"></div>
  <div><img src="https://is1-ssl.mzstatic.com/image/thumb/Purple60/v4/0b/b7/73/0bb7737a-db83-87bf-f10e-20d0bed3a496/source/256x256bb.jpg"></div>
</div>


Share : facebook icon twitter icon
bxslider does not show images when chrome updated

bxslider does not show images when chrome updated


By : user2625088
Date : March 29 2020, 07:55 AM
it fixes the issue Since when I posted that question the chrome updated with some bugs . All the websites that I coded have error on Chrome . So I got it will relate to new update release of Chrome But for now Chrome released another update recently and fixed all bugs about loading CSS3 . So all website are working as well now .
About Bxslider that had problem it was about this issue and because it coded by CSS3 that time can not load completely
Filter slider item with Show/Hide using bxSlider

Filter slider item with Show/Hide using bxSlider


By : user3116806
Date : March 29 2020, 07:55 AM
around this issue After searching for a long times, bxsilder doesn't allow you to filter items. I used slick slider instead.
If you really want to keep using the bxsilder, what you must do is quite complicated
I want to show images in my slider

I want to show images in my slider


By : mpax
Date : March 29 2020, 07:55 AM
hope this fix your issue I want to show images in my slider.i selected the path from database but in slider only first image is displayed but another 2 images path is not coming from database.i used mysqli_fetch_array to fetch the path of the images. plz help me. , Try something like this
code :
<?php 
   $sql="SELECT  `path` FROM  `slider` ";
   $rows = array();
   while($row=mysqli_fetch_array($res,MYSQLI_BOTH)){
    $rows[] = $row;
   }
   $final = array_map('current', $rows);

   echo $final[0];
   echo $final[1];

?>
Bxslider - images don't show after first loading of website

Bxslider - images don't show after first loading of website


By : user3498605
Date : March 29 2020, 07:55 AM
wish of those help Looking at your website code right now when you first load the page the .bx-viewport are using some inline styles. One of these inline styles is setting the height of the container to 0. If you change the height to the size you want it to (in this case I am guessing 460px) then it should show correctly the first time.
code :
.bx-wrapper, .bx-viewport {
    height: 460px !important;
}
On bxslider how to set slider width 100% and next slider should be hanging on right side

On bxslider how to set slider width 100% and next slider should be hanging on right side


By : Al.
Date : March 29 2020, 07:55 AM
I hope this helps . To solve this you can play with margin and padding:
https://fiddle.jshell.net/mj4mvvd5/5/
code :
.box {
    padding:30px;
    text-align:center;
    background:gray;

    margin-left: 40px;
    border: 1px solid red;
}

li {
    margin-left: -40px;
}



var slider1 = $('.list').bxSlider({   
  speed: 800, 
  minSlides: 1,
  maxSlides: 1,
  moveSlides: 1,
  slideMargin: 15
}); 
Related Posts Related Posts :
  • redux how to use state
  • All data in the db is lost when closing a express based node js server
  • How to convert javascript code for Angular
  • XPath select on child nodes
  • Idle event on mouse move - how to stop script permanently on mouse move
  • Why do I get logic is not defined in this code
  • When I enter a number in the input, the first function starts
  • ES6 imports and node_modules hell
  • How to get css selector of clicked-on element?
  • How to auto input MySQL data (input column 1 data to auto input column 2 data with same column) in php?
  • Appending to Datalist Via Javascript
  • Customizing Material-UI Components with Styled-Components
  • Populate elements with class name using Javascript
  • How to execute promises in batches (first resolving 10, then next 10 and so on)
  • Maximo JS automation script: "importPackage" is not defined
  • How to surround selected text inside textarea with <em> on key combination CTRL+i?
  • Your configured registry does not support audit requests ~ On npm audit
  • What's the Angular equivalent of Vue <slot/>?
  • Iconify icon not updating when "data-icon" set with setAttribute()
  • Javascript newbie stuck with XMLHttpRequest return data
  • How to add obj to to state in my example Redux React
  • Loading "grunt-karma.js" tasks...ERROR >> SyntaxError: Unexpected identifier
  • Why do I get log is not defined
  • get the multiple index of the same string
  • How can I iterate over an Array object by using For IN or FOR OF
  • Launch local executable from web browser
  • How to prepare array of json objects to d3 hierarchical tree structure
  • VueJS - event emitted - show HTML before other calculations
  • Export SASS/SCSS variables to Javascript without exporting them to CSS
  • How to attach an event handler only once continuously
  • How to make button open a link in new tab in JavaScript?
  • Find range from the javascript object
  • How can I use my jQuery code as JavaScript?
  • How to convert stream into variables in typescript
  • Three.js custom shader error on Chrome GL_INVALID_OPERATION: Active draw buffers with missing fragment shader outputs
  • My JavaScript doesn't work. How can I solve this problem?
  • Why is this async function is running synchronously?
  • Get updated variable from within react hook before return
  • I want to show all image preview but whenever I upload a new one the old one is gone
  • Would I be able to give access to specific electron APIs safely?
  • Why several clicks fire for each instance of a Class?
  • cant grab value from div using attr()
  • Instantiate subclass without constructing
  • Outputing a created object in javascript to a server side JSON file
  • Transition the numeric labels in a bar chart
  • createBottomTabNavigator: hide just one tab from the tabBar
  • iife vs simple statement behavior with document.title
  • showDialogPopup Refresh Page after Click
  • Child component does not set the initial value passed from the parent: ReactJS
  • Nodejs javascript added to button not responding
  • Trying to define a promise.all
  • Python GEE to extract featurecollection timeseries from Landsat imageries
  • How to write negative binary number?
  • Unable to set property of individual object
  • Why Named Function Expression itself cannot assign Name to another Value?
  • How to reset scroll position on single page pagination
  • How to scroll to bottom of page, when a new message is sent - Socket.io
  • How to reconstruct audio blob from a base64 encoded String?
  • How to calculate numbers within an array of objects
  • Using JavaScript to change CSS properties of SVG circles for all circles that was not clicked
  • shadow
    Privacy Policy - Terms - Contact Us © festivalmusicasacra.org