Menu icon Foundation
Call Equalizer function

Dear Community,

Is there a way to call the equalizer function, instead of right after dom ready?

I have a block element that was hidden, from start, when I toggle the element the hight is extremely small.

Please help!

W/L

Equalizerfunctionjavascript

Dear Community,

Is there a way to call the equalizer function, instead of right after dom ready?

I have a block element that was hidden, from start, when I toggle the element the hight is extremely small.

Please help!

W/L

Rafi Benkual over 5 years ago

Yes @Ben is right!

$document.foundation('equalizer', 'reflow');

Ben Baker over 5 years ago

Hi,

I had this same issue. I was using an image slider that's height was not taken into account as it took a while for the images to load.

I fixed this by adding a call to the equalizer plugin to 'reflow' once my slideshow was ready.

Foundation.libs.equalizer.reflow(); 

Works for me ;)

Rafi Benkual over 5 years ago

Hi W/L
I think there is way to do this.
Can you post the code you are working with or a link because then we can help you out.