Tiny-slider: only works with div and li?

Created on 16 Aug 2018  路  4Comments  路  Source: ganlanyuan/tiny-slider

_Tiny-slider version_: 2.8.5

In a particular setup of mine, the individual slides happen to be <section> elements instead of <div> or <li>. However, tiny-slider appears to only work with <div> or <li> DOM elements as the children of the container. I didn't find anything in the documentation to influence this behaviour, so may be this is a feature request? Imho it would be good if tiny-slider does not care about the type of child element - or that it could be configured.

bug

Most helpful comment

@fritzmg Sorry, the selectors was changed to <div> and <li> in one commit unconsciously.
It's reversed back now and this issue should be fixed in next release.

All 4 comments

I'm using <a>s as my slides and it's working fine. You should probably make sure you're setting the slides to be display: inline-block

@fritzmg Sorry, the selectors was changed to <div> and <li> in one commit unconsciously.
It's reversed back now and this issue should be fixed in next release.

Oh I see :)

Published in v2.8.6

Was this page helpful?
0 / 5 - 0 ratings