So, basically I have a div gfx-flickity inisde which there are 5 gfx-work-cell elements. When the Flickity div is initialized, its slider is not working properly, i.e. it is not transforming
the gfx-work-cell elements correctly on the X axis and is transforming too less than what its supposed to.
For example: flickity-slider should apply: transform: translateX(30%) on the first slide animation, but instead it is applying transform: translateX(20%).
This is causing the 4th and 5th element in my flickity div to disappear in the slideshow.
BUT When I resize the window, or zoom in/out, the issue gets resolved automatically.
So, basically I have a div
gfx-flickity
inisde which there are 5gfx-work-cell
elements. When the Flickity div is initialized, its slider is not working properly, i.e. it is not transforming thegfx-work-cell
elements correctly on the X axis and is transforming too less than what its supposed to.For example:
flickity-slider
should apply:transform: translateX(30%)
on the first slide animation, but instead it is applyingtransform: translateX(20%)
.This is causing the 4th and 5th element in my flickity div to disappear in the slideshow.
BUT When I resize the window, or zoom in/out, the issue gets resolved automatically.
Video demonstrating the issue: Streamable Link
Any help would be appreciated!
HTML:
CSS:
JavaScript:
Let me know if any code snippet is missing or if any extra code is needed.