diff options
| author | Jacob Thornton <[email protected]> | 2012-01-02 22:30:57 -0800 |
|---|---|---|
| committer | Jacob Thornton <[email protected]> | 2012-01-02 22:30:57 -0800 |
| commit | 3fb6f6ee8670acff0c681c621b87a06a087f94be (patch) | |
| tree | f08cbf5632a01abf122cce71863f01bec7d10b40 /lib | |
| parent | 8b58a1c3d9fea740c89f48c1771a6c7dd44e1f41 (diff) | |
| download | bootstrap-3fb6f6ee8670acff0c681c621b87a06a087f94be.tar.xz bootstrap-3fb6f6ee8670acff0c681c621b87a06a087f94be.zip | |
basic carousel implementation
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/thumbnails.less | 32 |
1 files changed, 29 insertions, 3 deletions
diff --git a/lib/thumbnails.less b/lib/thumbnails.less index 181cca681..114d0f0c8 100644 --- a/lib/thumbnails.less +++ b/lib/thumbnails.less @@ -33,14 +33,40 @@ a.thumbnail:hover { padding: 9px; } -// carousel .carousel { + position: relative; - .item { display: none; } - .active { display: block; } + .carousel-inner { + overflow: hidden; + width: 100%; + position: relative; + } + + .item { + display: none; + position: relative; + .transition(.25s linear left); + } + + .active, .next, .prev { display: block; } + + .next, .prev { + position: absolute; + top: 0; + width: 100%; + } + + .next { left: 100%; } + .prev { left: -100%; } + .next.left, .prev.right { left: 0% } + + .active.left { left: -100% } + .active.right { left: 100% } .nav { + width: auto; + .border-radius(0); height: 50px; position: absolute; top: 50%; |
