Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

smoothHeight and minItems / maxItems don't play nice. #854

nerdland opened this Issue Sep 21, 2013 · 0 comments


None yet
2 participants

Example of the problem:

I'm trying to build a slider in which two quotes are shown on the screen at once. To do this, I've set the minItems and maxItems parameters each to two.

I'm also using smoothHeight to animate height changes between slides. The plugin, however, is determining the height per item, not per "slide." My first slide's height (which displays items 1 and 2) is determined by item number 1. My second slide's height (which displays items 3 and 4) is determined by item number 2.

Anyone have a fix for this? Or can support for this be built into the plugin?

(Side note: It IS necessary for me to code it this way, rather than just hard-coding two quotes into a single slide, because I'm building this responsively, and at smaller sizes, it will only show one quote at once. I didn't show this in my Codepen example for simplicity's sake.)

@jeffikus jeffikus closed this Apr 1, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment