Skip to content

Commit 1a9c768

Browse files
committed
rewrite using es6
1 parent cbb120c commit 1a9c768

File tree

20 files changed

+807
-692
lines changed

20 files changed

+807
-692
lines changed

.babelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"presets": [ "es2015-rollup" ]
3+
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
扫描二维码
88

9-
![demo](./dist/example/qrcode.png)
9+
![demo](https://cloud.githubusercontent.com/assets/4652816/13709283/1052c01a-e7ee-11e5-959c-1095114739db.png)
1010

1111
[http://wechatui.github.io/swiper](http://wechatui.github.io/swiper)
1212

bower.json

Lines changed: 37 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,39 @@
11
{
2-
"name": "iswiper",
3-
"description": "为移动端而生的滑动框架,无依赖,轻盈小巧,性能极致",
4-
"version": "1.4.0",
5-
"author": "wechat ui team",
6-
"keywords": [
7-
"iswiper",
8-
"swiper",
9-
"swipe",
10-
"slider",
11-
"mobile",
12-
"framework"
13-
],
14-
"repository": {
15-
"type": "git",
16-
"url": "https://github.com/wechatui/swiper.git"
17-
},
18-
"homepage": "http://wechatui.github.io/swiper",
19-
"scripts": [
20-
"dist/swiper.js"
21-
],
22-
"main": [
23-
"dist/swiper.js"
24-
],
25-
"ignore": [
26-
"/.*",
27-
"gulpfile.js",
28-
"node_modules",
29-
"package.json",
30-
"**/.*",
31-
"bower_components",
32-
"test",
33-
"tests"
34-
],
35-
"license": [
36-
"MIT"
37-
]
2+
"name": "iswiper",
3+
"description": "为移动端而生的滑动框架,无依赖,轻盈小巧,性能极致",
4+
"version": "1.4.2",
5+
"author": "wechat ui team",
6+
"keywords": [
7+
"wechat",
8+
"iswiper",
9+
"swiper",
10+
"swipe",
11+
"slider",
12+
"mobile",
13+
"framework"
14+
],
15+
"repository": {
16+
"type": "git",
17+
"url": "https://github.com/wechatui/swiper.git"
18+
},
19+
"homepage": "http://wechatui.github.io/swiper",
20+
"scripts": [
21+
"dist/swiper.js"
22+
],
23+
"main": [
24+
"dist/swiper.js"
25+
],
26+
"ignore": [
27+
"/.*",
28+
"gulpfile.js",
29+
"node_modules",
30+
"package.json",
31+
"**/.*",
32+
"bower_components",
33+
"test",
34+
"tests"
35+
],
36+
"license": [
37+
"MIT"
38+
]
3839
}

dist/example/example.css

Lines changed: 43 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,62 @@
11
* {
2-
margin: 0;
3-
padding: 0;
2+
margin: 0;
3+
padding: 0;
44
}
55
html,
66
body {
7-
height: 100%;
8-
overflow: hidden;
7+
height: 100%;
8+
overflow: hidden;
99
}
10-
.container{
11-
height: 100%;
12-
background-color: #efeff4;
10+
.container {
11+
height: 100%;
12+
background-color: #efeff4;
1313
}
14-
.item{
15-
color: #ffffff;
16-
background-color: #000000;
14+
.swiper {
15+
background-color: #000000;
1716
}
18-
.title{
19-
margin-top: 200px;
20-
text-align: center;
17+
.item {
18+
color: #ffffff;
19+
background-color: #000000;
20+
}
21+
.title {
22+
margin-top: 200px;
23+
text-align: center;
2124
}
22-
2325
/**
2426
* copy from animate.css
2527
* https://daneden.github.io/animate.css
2628
*/
27-
2829
.animated {
29-
-webkit-animation-duration: 1s;
30-
animation-duration: 1s;
31-
-webkit-animation-fill-mode: both;
32-
animation-fill-mode: both;
30+
-webkit-animation-duration: 1s;
31+
animation-duration: 1s;
32+
-webkit-animation-fill-mode: both;
33+
animation-fill-mode: both;
3334
}
3435
@-webkit-keyframes fadeInUp {
35-
from {
36-
opacity: 0;
37-
-webkit-transform: translate3d(0, 100%, 0);
38-
transform: translate3d(0, 100%, 0);
39-
}
40-
41-
100% {
42-
opacity: 1;
43-
-webkit-transform: none;
44-
transform: none;
45-
}
36+
from {
37+
opacity: 0;
38+
-webkit-transform: translate3d(0, 100%, 0);
39+
transform: translate3d(0, 100%, 0);
40+
}
41+
100% {
42+
opacity: 1;
43+
-webkit-transform: none;
44+
transform: none;
45+
}
4646
}
47-
4847
@keyframes fadeInUp {
49-
from {
50-
opacity: 0;
51-
-webkit-transform: translate3d(0, 100%, 0);
52-
transform: translate3d(0, 100%, 0);
53-
}
54-
55-
100% {
56-
opacity: 1;
57-
-webkit-transform: none;
58-
transform: none;
59-
}
48+
from {
49+
opacity: 0;
50+
-webkit-transform: translate3d(0, 100%, 0);
51+
transform: translate3d(0, 100%, 0);
52+
}
53+
100% {
54+
opacity: 1;
55+
-webkit-transform: none;
56+
transform: none;
57+
}
6058
}
61-
6259
.fadeInUp {
63-
-webkit-animation-name: fadeInUp;
64-
animation-name: fadeInUp;
65-
}
60+
-webkit-animation-name: fadeInUp;
61+
animation-name: fadeInUp;
62+
}

dist/example/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
66
<title>无孔不入</title>
77
<link rel="stylesheet" href="../swiper.css"/>
8-
<link rel="stylesheet" href="example.css"/>
8+
<link rel="stylesheet" href="./example.css"/>
99
</head>
1010
<body>
1111
<div class="container">

dist/example/qrcode.png

-1.5 KB
Binary file not shown.

dist/swiper.css

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
/*!
2-
* iswiper - swiper.js
3-
* @version v1.4.1
4-
* @link https://github.com/weui/swiper.git
5-
* @license MIT
6-
*/
71
.swiper {
82
height: 100%;
93
overflow: hidden;

0 commit comments

Comments
 (0)