Closed ooozydev closed 5 years ago
When clicking and rendering elements, the grid loads successfully, but flickers and re-layout all of the elements again. How can I fix this?
Test case: http://dev.oozy.me/el/
$(function() { $(function() { var filemanager = $(".filemanager"), breadcrumbs = $(".breadcrumbs"), fileList = filemanager.find(".file-list"), folderList = filemanager.find(".folder-list"); var $grid = fileList.packery({ itemSelector: "li", gutter: 0 }); .... function render() { ... // append elems to dom ... $grid.imagesLoaded().progress(function() { $grid.packery('reloadItems').packery('layout'); }); } });
Fixed, had to add transitionDuration: 0 option.
transitionDuration: 0
When clicking and rendering elements, the grid loads successfully, but flickers and re-layout all of the elements again. How can I fix this?
Test case: http://dev.oozy.me/el/