Closed 23d1 closed 6 years ago
Is there a way to initialize elements with [data-flickity] that are found on new content after an ajax load?
I get JSON.parse(element.getAttribute('data-flickity')) to work, but sometimes the additional .resize on each carousel item doesn't work...
Sorted it out. Had some stray local scope variables...
Is there a way to initialize elements with [data-flickity] that are found on new content after an ajax load?
I get JSON.parse(element.getAttribute('data-flickity')) to work, but sometimes the additional .resize on each carousel item doesn't work...