forked from nylen/jquerytools-www
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscrollable.css
More file actions
66 lines (52 loc) · 1.16 KB
/
scrollable.css
File metadata and controls
66 lines (52 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/*
root element for the scrollable.
when scrolling occurs this element stays still.
*/
.scrollable {
/* required settings */
position:relative;
overflow:hidden;
width: 570px;
height:160px;
}
/*
root element for scrollable items. Must be absolutely positioned
and it should have a super large width to accomodate scrollable items.
it's enough that you set width and height for the root element and
not for this element.
*/
.scrollable .items {
/* this cannot be too large */
width:20000em;
position:absolute;
clear:both;
/* decoration */
margin-left:10px;
}
/* single scrollable item */
.scrollable .items div {
float:left;
/* background image */
background: #000 url(../img/scrollable/white.jpg) no-repeat 0 0;
/* text/font settings */
color:#999;
text-align:center;
width:178px;
height:86px;
padding:25px 0px;
font-size:70px;
margin-right: 10px;
}
/* mouseover state */
.scrollable .items div:hover {
background-position:-178px 0px;
}
/* clicked state */
.scrollable .items div:active {
background-position:-356px 0;
}
/* active item */
.scrollable .items .active {
background-position:-534px 0;
cursor:default;
}