Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vxsx/jquery.ilist.js

Plugin that makes lists with floating separators, like iPod.app
https://github.com/vxsx/jquery.ilist.js

Last synced: about 5 hours ago
JSON representation

Plugin that makes lists with floating separators, like iPod.app

Awesome Lists containing this project

README

        

jquery.ilist.js
===============

Plugin that makes lists with floating separators, like iPod.app, [see for
yourself](http://vxsx.github.com/jquery.ilist.js/)

Requires
--------

* jquery 1.6.2 or higher (not tested on lower versions, but should
work)

Default options
----------------

``` javascript
separatorClass : 'ilist__item_separator',
dummyClass : 'ilist__item_dummy',
pinnedClass : 'ilist__item_pinned'
```

Usage:
------

HTML:

``` html



  • A

  • A Lorem ipsum...

  • A Lorem ipsum...

  • A Lorem ipsum...

  • A Lorem ipsum...

  • B
    with a second line

  • B Lorem ipsum...

  • B Lorem ipsum...

  • B Lorem ipsum...

  • ...


```

Required portion of CSS:

``` css
.ilist-wrapper {
position: relative;
}
.ilist {
overflow-y: scroll;
}

.ilist__item_dummy {
display: none;
height: 0px;
position: relative;
}
.ilist__item_dummy .ilist__item {
position: absolute;
}
.ilist__item_pinned {
position: absolute;
top: 0;
}
```

And Javascript:

``` javascript
$('.list').ilist();
```

Compatibility
-------------

Tested in latest webkits, ff, opera - works okay.

No IE _so far_, but hey, graceful degradation, anyone?