UNPKG

1.66 kBSCSSView Raw
1
2// .mytest-enter .subtrack-item {
3// background-color: black;
4
5// &.mytest-enter-active {
6// transition: background-color 2s ease;
7// }
8// }
9
10.mytest-appear {
11 * {
12 opacity: 0.01;
13 background-color: white;
14 -webkit-transition: all 3000ms ease-in;
15 transition: all 3000ms ease-in;
16
17 }
18
19 &.mytest-appear-active {
20 * {
21 opacity: 1.0;
22 background-color: tomato;
23
24 }
25 }
26}
27
28.mytest2-appear {
29 * {
30 opacity: 1.0;
31 -webkit-transition: all 3000ms ease-in;
32 transition: all 3000ms ease-in;
33
34 }
35
36 &.mytest2-appear-active {
37 * {
38 opacity: 0;
39 }
40 }
41}
42
43
44
45function renderTopMembers() {
46 if (tag) {
47 const preposition = getSearchTagPreposition(tag.domain)
48
49 if (topMembers.length) {
50 return (
51 <ListContainer
52 headerText={`Top Members ${preposition} `}
53 headerHighlightedText={tag.name}
54 >
55 <ReactCSSTransitionGroup transitionAppear transitionAppearTimeout={100} transitionName={"mytest"}>
56 <TopMemberList topMembers={topMembers} />
57 </ReactCSSTransitionGroup>
58 </ListContainer>
59 )
60
61 } else {
62 return (
63 <ListContainer
64 headerText={'Loading...'}
65 >
66 <ReactCSSTransitionGroup transitionLeaveTimeout={100} transitionName={"mytest2"}>
67 <ul>
68 {[1,2,3,4,5,6,7,8,9,10].map((e, i) => {
69 return <div className="my-loading-card" style={{ height: '100px', width: '960px', backgroundColor: 'white', border: '1px solid black'}} key={i} />
70 })}
71 </ul>
72 </ReactCSSTransitionGroup>
73 </ListContainer>
74 )
75 }
76 }
\No newline at end of file