forked from bennadel/JavaScript-Demos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo.css
93 lines (77 loc) · 1.42 KB
/
demo.css
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
a[ ng-click ] {
color: red ;
cursor: pointer ;
text-decoration: underline ;
user-select: none ;
-moz-user-select: none ;
-webkit-user-select: none ;
}
div.container {
height: 100px ;
margin: 20px 0px 20px 0px ;
position: relative ;
}
div.friend {
border: 1px solid #CCCCCC ;
border-radius: 4px 4px 4px 4px ;
background-color: #FAFAFA ;
height: 98px ;
left: 0px ;
position: absolute ;
text-align: center ;
top: 0px ;
width: 350px ;
}
div.friend div.name {
border-bottom: 1px solid #CCCCCC ;
font-size: 26px ;
margin: 20px 10px 12px 10px ;
padding-bottom: 10px ;
}
div.friend div.meta {
color: #999999 ;
}
p.controls {
text-align: center ;
width: 350px ;
}
/* Moving to the NEXT item. */
div.next div.friend.ng-enter {
left: 100px ;
opacity: 0 ;
transition: all 250ms ease ;
z-index: 2 ;
}
div.next div.friend.ng-enter-active {
left: 0px ;
opacity: 1.0 ;
}
div.next div.friend.ng-leave {
left: 0px ;
opacity: 1.0 ;
transition: all 250ms ease ;
}
div.next div.friend.ng-leave-active {
left: -100px ;
opacity: 0 ;
}
/* Moving to the PREVIOUS item. */
div.previous div.friend.ng-enter {
left: -100px ;
opacity: 0 ;
transition: all 250ms ease ;
z-index: 2 ;
}
div.previous div.friend.ng-enter-active {
left: 0px ;
opacity: 1.0 ;
}
div.previous div.friend.ng-leave {
left: 0px ;
opacity: 1.0 ;
transition: all 250ms ease ;
}
div.previous div.friend.ng-leave-active {
left: 100px ;
opacity: 0 ;
}