JavaScript slick js inside bootstrab nav-tab slick inside bootstrap tab,slick slider inside bootstrap tab,slick

let me description the problem first. i have nav-tab and 3 tab-panes. first portfolio, second recommendation and third statistic. in tab-panes recommendation i want to put a slick.js but when i run, and switch tab from portfolio to recommendation. my slider didnt show any image, only button slick-prev and slick-next. as soon as i check from inspect-element, the image show up.

html

<div id="tabs">
                <!-- Nav tabs -->
                <ul class="nav nav-tabs responsive-tabs capital bold text-center m-b-25">
                  <li class="active "><a target='_blank' href="#portfolio" role="tab" data-toggle="tab">portfolio</a></li>
                  <li class=""><a target='_blank' href="#recomendation" role="tab" data-toggle="tab">recomendation</a></li>
                  <li class=""><a target='_blank' href="#statistic" role="tab" data-toggle="tab">statistic</a></li>
                </ul>
<div class="tab-content">
                  <div class="tab-pane fade in active" id="portfolio">
<p> bla bla bla</p>
</div>

<div class="tab-pane fade in" id="recomendation">
                    <h4 class="bold capital">reviews <span style="font-weight: normal;color: #c2c2c2;">(5)</span></h4>
                    <p class="capital bold">Review from older company</p>
                    <div class="col-lg-12">
                      <div class="review-company">
                        <div><img src="img/profile.png" alt=""></div>
                        <div><img src="img/profile.png" alt=""></div>
                        <div><img src="img/profile.png" alt=""></div>
                        <div><img src="img/profile.png" alt=""></div>
                        <div><img src="img/profile.png" alt=""></div>
                      </div><!-- Review-company -->
                    </div>
</div>
<div class="tab-pane fade in" id="statistic">
                    <h4>cla cal</h4>
</div>
</div>
</div>  

$('.review-company').slick({
      centerMode: true,
      centerPadding: '60px',
      slidesToShow: 3,
      responsive: [
        {
          breakpoint: 768,
          settings: {
            arrows: false,
            centerMode: true,
            centerPadding: '40px',
            slidesToShow: 3
          }
        },
        {
          breakpoint: 480,
          settings: {
            arrows: false,
            centerMode: true,
            centerPadding: '40px',
            slidesToShow: 1
          }
        }
      ]
    });

why i have to inspect first, so the image will show up? am i missing something.

Answer:1

I was reading this example on Promise. I realized that Error constructor is not called with new operator. Why does it work, then?

I was reading this example on Promise. I realized that Error constructor is not called with new operator. Why does it work, then?

I am trying to find out if the last td of an tr was clicked. This is my HTML example: <table> <tr> <td>Foo</td> <td>Bar</td> <td&...

I am trying to find out if the last td of an tr was clicked. This is my HTML example: <table> <tr> <td>Foo</td> <td>Bar</td> <td&...

  1. check last element in list python
  2. check last element in array javascript
  3. check last element in foreach php
  4. check last element in array php
  5. check last element in foreach c#
  6. check last element in foreach java
  7. check last element of vector c++
  8. check last element in list java
  9. check last element in list c#
  10. check last element of string python
  11. check last element of array
  12. check last element in array java
  13. check last element of array swift
  14. check last element of string
  15. check last element of array js
  16. check last element in for loop java
  17. check last element in jquery
  18. check last element python
  19. check if last element in array javascript
  20. check if last element in list python

I'm trying to config slick.js to show arrows in any circumstance. $('.slider-for').slick({ slidesToShow: 1, slidesToScroll: 1, arrows: false, fade: true, asNavFor: '.slider-nav' }); $('....

I'm trying to config slick.js to show arrows in any circumstance. $('.slider-for').slick({ slidesToShow: 1, slidesToScroll: 1, arrows: false, fade: true, asNavFor: '.slider-nav' }); $('....

  1. slick carousel always show arrows

I recently saw a listener defined inside method of object bound to nothing. Nice example is this var obj={ shout:function(){ onclick = function(){ alert("hi"); } }...

I recently saw a listener defined inside method of object bound to nothing. Nice example is this var obj={ shout:function(){ onclick = function(){ alert("hi"); } }...