File tree 5 files changed +55
-18
lines changed
5 files changed +55
-18
lines changed Original file line number Diff line number Diff line change
1
+ * {margin : 0 ;padding : 0 ;}
2
+
3
+ .top {
4
+
5
+ }
6
+
7
+ .bottom {
8
+ width : 100px ;
9
+ height : 80px ;
10
+ border : 2px solid # 000 ;
11
+ -webkit-transform : rotatez (180deg );
12
+ transform : rotatez (180deg );
13
+ }
14
+
15
+
16
+ @keyframes threeTransform {
17
+
18
+ }
Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html >
3
+ < head >
4
+ < meta charset ="UTF-8 ">
5
+ < title > </ title >
6
+ < link rel ="stylesheet " href ="./css/index.css ">
7
+ </ head >
8
+ < body >
9
+ < div class ="top "> </ div >
10
+ < div class ="bottom "> </ div >
11
+ </ body >
12
+ </ html >
Original file line number Diff line number Diff line change 15
15
}
16
16
17
17
.change-btn {
18
- font-size : 0 ;
18
+ font-size : 0 ;
19
19
}
20
20
.net-btn ,
21
21
.list-btn {
22
22
width : 100px ;
23
- height : 100px ;
24
- line-height : 100px ;
25
- text-align : center;
26
- font-size : 20px ;
27
- display : inline-block;
23
+ height : 100px ;
24
+ line-height : 100px ;
25
+ text-align : center;
26
+ font-size : 20px ;
27
+ display : inline-block;
28
28
background-color : # c12bf9 ;
29
29
}
30
30
@@ -57,18 +57,21 @@ ul >li:nth-child(4),ul >li:nth-child(8) {
57
57
58
58
59
59
.trans-odd {
60
- width : 50% ;
61
- transition : width ease-in .4s ;
60
+ width : 50% ;
61
+ transition : width ease-in .4s ;
62
62
}
63
63
64
64
.trans-even {
65
- transform : translate3d (100% , 0 , 0 );
65
+ -webkit-transform : translate3d (100% , 0 , 0 );
66
+ transform : translate3d (100% , 0 , 0 );
66
67
width : 50% ;
68
+ transition : -webkit-transform ease-in .5s ;
67
69
transition : transform ease-in .5s ;
70
+ transition : transform ease-in .5s , -webkit-transform ease-in .5s ;
68
71
}
69
72
70
73
71
74
.top-move {
72
- margin-top : -100px ;
73
- transition : margin-top ease-in .5s ;
75
+ margin-top : -100px ;
76
+ transition : margin-top ease-in .5s ;
74
77
}
Original file line number Diff line number Diff line change 2
2
( function ( $ ) {
3
3
var BlockTransform = function ( temp ) {
4
4
5
+
5
6
var _this = this ;
6
7
var oddArray = [ ] ,
7
8
evenArray = [ ] ,
20
21
this . evenArray = $ ( evenArray ) ;
21
22
22
23
//Bind Event Function
23
- $ ( '.change-btn' ) . on ( 'click' , '.net-btn' , function ( ) {
24
- $ ( '.list-btn' ) . attr ( 'hit' , true ) ;
25
- _this . netCallBack . call ( _this ) ;
24
+ $ ( '.change-btn' ) . on ( 'click' , '.net-btn' , function ( ) {
25
+ $ ( '.list-btn' ) . attr ( 'hit' , true ) ;
26
+ _this . netCallBack . call ( _this ) ;
26
27
} ) ;
27
28
$ ( '.change-btn' ) . on ( 'click' , '.list-btn' , function ( ) {
28
29
var clickBtn = $ ( this ) ,
29
30
isNotClick = clickBtn . attr ( 'hit' ) ;
30
- if ( true . toString ( ) === isNotClick ) {
31
- _this . listCallBack . call ( _this ) ;
32
- clickBtn . attr ( 'hit' , false ) ;
31
+ if ( true . toString ( ) === isNotClick ) {
32
+ _this . listCallBack . call ( _this ) ;
33
+ clickBtn . attr ( 'hit' , false ) ;
33
34
}
34
35
} ) ;
35
36
}
64
65
$ ( '.item-list' ) . removeClass ( 'trans-odd' ) . removeClass ( 'trans-even' ) . removeClass ( 'top-move' ) . removeAttr ( 'style' ) ;
65
66
66
67
} , 1100 ) ;
68
+ } ,
69
+ destoryFunc : function ( ) {
70
+ $ ( '.change-btn' ) . off ( ) ;
67
71
}
68
72
}
69
73
Original file line number Diff line number Diff line change 72
72
73
73
** [ 点击查看说明文档] ( https://github.com/zhiqiang21/WebComponent/tree/master/JsNameSpaceManage/README.md ) **
74
74
75
- #### ** NetOrListShow(仿app store 商品网状列表动态切换插件)**
75
+ #### ** 7. NetOrListShow(仿app store 商品网状列表动态切换插件)**
76
76
77
77
** Gif 截图导致动画有些丢帧,请下载源码运行查看**
78
78
You can’t perform that action at this time.
0 commit comments