Skip to content

Commit

Permalink
GUI: Add simple init animation
Browse files Browse the repository at this point in the history
  • Loading branch information
themitosan committed May 31, 2023
1 parent 21407f3 commit 4e0342f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
11 changes: 7 additions & 4 deletions App/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,17 @@ label {
overflow: hidden;
position: absolute;
background-color: #0000;
transition-duration: 0.8s;
backdrop-filter: blur(4px);
transition-timing-function: cubic-bezier(0,1,0,1);
box-shadow: 0px 0px 10px #000;
background-image: linear-gradient(180deg, #706099aa, #3e2e67aa);
}
.MENU_TOP {
top: 0px;
left: 0px;
width: auto;
height: 30px;
height: 0px;
display: flex;
flex-wrap: nowrap;
align-items: center;
Expand All @@ -106,9 +108,9 @@ label {
.MENU_RIGHT {
top: 0px;
right: 0px;
width: 168px;
width: 0px;
height: auto;
overflow: auto;
overflow: hidden;
padding-top: 10px;
text-align: center;
padding-bottom: 10px;
Expand Down Expand Up @@ -152,6 +154,7 @@ label {
background-image: linear-gradient(180deg, #00642f, #0a0);
}
.RT {
overflow: hidden;
display: flex;
min-height: 42px;
flex-wrap: nowrap;
Expand Down Expand Up @@ -215,7 +218,7 @@ label {
Options
*/
.BTN_OPTIONS {
width: calc(100% - 20px);
width: 148px;
}

/*
Expand Down
6 changes: 6 additions & 0 deletions App/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,12 @@ const APP = {
// Load settings
APP.options.loadSettings();

// Display menus
setTimeout(function(){
TMS.css('MENU_TOP', {'height': '30px'});
TMS.css('MENU_RIGHT', {'width': '168px'});
}, 30);

} catch (err) {
window.alert('ERROR - Something happened on boot process!\n' + err);
throw new Error(err);
Expand Down

0 comments on commit 4e0342f

Please sign in to comment.