darsain / sly

JavaScript library for one-directional scrolling with item based navigation support.
http://darsa.in/sly
2.87k stars 497 forks source link

variable width items in Sly #253

Open Asyst opened 8 years ago

Asyst commented 8 years ago

Hello ! How i can use variable width items in your plugin ? Where items width: auto

Best regards ! Alexandr

kadario commented 8 years ago

There is no "width" option in Sly, you just need to set it up in your css code :( Btw, you can add width: auto to your css, but im afraid that you will see some broken items in browser.

Asyst commented 8 years ago

Ok, understandly. Thanks for support and nice plugin ! : )

sergey-dev commented 8 years ago

@Asyst , what you have to do - is to make the proper coding-slicing with HTML and CSS first, so it's looking exactly as you expect.

And only then to bind the Sly's logic to your code. Sly itself doesn't apply any calculations to the columns, it just makes the steps/items calculations for the position of SLIDEE from your layout.