darsain / sly

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

item align to offset #184

Closed flexphperia closed 9 years ago

flexphperia commented 9 years ago

It would be nice to have possibility align item to specified frame offset. Whole auto align functionality from forceCentered item navigation type but with specifing offset option. Align to left/right or top/bottom border of item. For example setting offset = 200 when horizontal = true will align items to 200px from left border of frame.

darsain commented 9 years ago

Duplicate of #140

flexphperia commented 9 years ago

140 is for not aligning items after sliding anim.

I'm requesting alignining to specified point with auto align functionality like forceCentered nav

darsain commented 9 years ago

That is currently unsupported and I don't see it getting implemented. It's quite an edge case.

However, the 2.0 rewrite (if I'll ever get to it) will feature a complete API overhaul with focus on code over configuration, which will allow you to implement stuff like this if you wish.