Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
todd404 committed Apr 26, 2018
1 parent 8ee579a commit 9848726
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion assets/js/bundle.js

Large diffs are not rendered by default.

11 changes: 4 additions & 7 deletions src/css/animation.css
Original file line number Diff line number Diff line change
Expand Up @@ -56,17 +56,14 @@
}
}

@keyframes loadShadow{
from{
box-shadow: 0 0 15px 10px rgba(255, 0, 0, 0) inset;
}
@keyframes show{
to{
box-shadow: 0 0 15px 10px rgba(255, 0, 0, 0.8) inset;
opacity: 1;
}
}

.loadShadow{
animation: 1s loadShadow forwards;
.show{
animation: 1s show forwards;
}

.bounceIn{
Expand Down
3 changes: 2 additions & 1 deletion src/css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ span{

left: 0; right: 0; top: 0; bottom: 0;
margin: auto;

opacity: 0;
}

.open_button, .manage_button, .password_button{
Expand All @@ -39,7 +41,6 @@ span{
box-shadow: inset 0 0 10px 5px rgba(255, 175, 189, 0.6), 0 0 10px 5px rgba(255, 195, 160, 0.6)
}


.open_button, .password_button{
z-index: -1;
opacity: 0; /*开始先隐藏左右两个按钮*/
Expand Down
3 changes: 1 addition & 2 deletions src/js/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ export function init(){
}, 1000);

setTimeout(()=>{
$(".open_button").addClass("loadShadow");
$(".password_button").addClass("loadShadow");
$("span").addClass("show");
}, 2000)

}

0 comments on commit 9848726

Please sign in to comment.