forked from do-project/code4do
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.js
38 lines (36 loc) · 903 Bytes
/
app.js
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
/**********************************************
* Author : @Author
* Timestamp : @Timestamp
**********************************************/
var deviceone = require("deviceone");
var app = deviceone.sm("do_App");
//关闭按钮动画
var closebtnAim = deviceone.mm("do_Animation", "CLOSEBTNDWON", "app");
closebtnAim.fillAfter = true;
closebtnAim.alpha({
delay: 0,
duration: 150,
curve: "Linear",
alphaFrom: 1,
alphaTo: 0.2
});
//Alpha效果
var buttonA = deviceone.mm("do_Animation", "BUTTONTOUCHDOWNS", "app");
buttonA.alpha({
delay: 0,
duration: 150,
curve: "EaseInOut",
repeatCount: "",
autoReverse: true,
fillAfter: false,
alphaFrom: 1,
alphaTo: .5
});
app.on("loaded", function () {
this.openPage({
source : "source://view/index.ui",
statusBarState : "transparent",
statusBarFgColor : "black",
id:"pageIndex"
});
});