Notice
Recent Posts
Recent Comments
Link
«   2024/11   »
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
Archives
Today
Total
관리 메뉴

(❀╹◡╹)

[jQuery] Slick Slider - 로드 시 display:none 일때 refresh 대체 본문

Programing/WEB

[jQuery] Slick Slider - 로드 시 display:none 일때 refresh 대체

진 주 2020. 9. 16. 17:19
$('a').on("click", function() {
    $('#addressesList').css('display', 'block'); 
    $('#addressesList').get(0).slick.setPosition()
});

jsfiddle.net/5eceg5yd/8/

 

Edit fiddle - JSFiddle - Code Playground

 

jsfiddle.net

stackoverflow.com/questions/26677649/slick-slider-loaded-with-displaynone-creates-bad-initiation

 

Slick Slider loaded with display:none creates bad initiation

I've got a gallery of thumbs and a Slick slider in a layer on top (z-index), hidden through css with display:none. When clicking on of the thumbs the display setting changes to block and the slider...

stackoverflow.com