2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-08 17:22:31 +03:00

basic carousel implementation

This commit is contained in:
Jacob Thornton
2012-01-02 22:30:57 -08:00
parent 8b58a1c3d9
commit 3fb6f6ee86
5 changed files with 161 additions and 56 deletions
+29 -3
View File
@@ -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%;