renny
renny

Reputation: 203

Is it possible to add an extra height to equalizer height?

I need to add an extra 35px to whatever the height calculated by Foundation Equalizer. Is this possible?

For example, if Equalizer height calculation is 350px, I would like 35px to be added on. So style created will be height: 385px; instead of height: 350px;.

Thank you.

Upvotes: 2

Views: 69

Answers (1)

Knut Holm
Knut Holm

Reputation: 4162

Init Foundation with this code:

$(document).foundation({
  equalizer: {
    after_height_change: function(){
      $('div[data-equalizer-watch]').height(function (index, height) {
          return (height + 35);
      });
    }
  }
});

CodePen example

Upvotes: 2

Related Questions