mirror of
https://github.com/dscalzi/HeliosLauncher.git
synced 2024-12-22 11:42:14 -08:00
Experimenting with the menu slide animation.
This commit is contained in:
parent
6e55442b25
commit
22f5eabe49
@ -13,6 +13,9 @@
|
|||||||
#main {
|
#main {
|
||||||
height: calc(100% - 22px);
|
height: calc(100% - 22px);
|
||||||
background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 100%);
|
background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 100%);
|
||||||
|
width: 100%;
|
||||||
|
position: absolute;
|
||||||
|
z-index: 10;
|
||||||
}
|
}
|
||||||
#main[overlay] {
|
#main[overlay] {
|
||||||
filter: blur(3px) contrast(0.9) brightness(1.0);
|
filter: blur(3px) contrast(0.9) brightness(1.0);
|
||||||
|
@ -51,6 +51,8 @@ p {
|
|||||||
|
|
||||||
/* Frame Bar */
|
/* Frame Bar */
|
||||||
#frameBar {
|
#frameBar {
|
||||||
|
position: relative;
|
||||||
|
z-index: 100;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
background: rgba(1, 2, 1, 0.5);
|
background: rgba(1, 2, 1, 0.5);
|
||||||
@ -890,10 +892,14 @@ p {
|
|||||||
/* Main content container. */
|
/* Main content container. */
|
||||||
#landingContainer {
|
#landingContainer {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Upper content container. */
|
/* Upper content container. */
|
||||||
#landingContainer > #upper {
|
#landingContainer > #upper {
|
||||||
|
position: relative;
|
||||||
|
transition: 2s ease;
|
||||||
|
top: 0px;
|
||||||
height: 77%;
|
height: 77%;
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
@ -921,6 +927,9 @@ p {
|
|||||||
background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
|
background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
|
||||||
}
|
}
|
||||||
#landingContainer > #lower > #left {
|
#landingContainer > #lower > #left {
|
||||||
|
position: relative;
|
||||||
|
transition: 2s ease;
|
||||||
|
top: 0px;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 33%;
|
width: 33%;
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
@ -934,16 +943,23 @@ p {
|
|||||||
left: 50px;
|
left: 50px;
|
||||||
}
|
}
|
||||||
#landingContainer > #lower > #center {
|
#landingContainer > #lower > #center {
|
||||||
|
position: relative;
|
||||||
|
transition: 2s ease;
|
||||||
|
top: 0px;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 34%;
|
width: 34%;
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
#landingContainer > #lower > #center #content {
|
#landingContainer > #lower > #center #content {
|
||||||
|
transition: 2s ease;
|
||||||
position: relative;
|
position: relative;
|
||||||
top: 10px;
|
top: 10px;
|
||||||
}
|
}
|
||||||
#landingContainer > #lower > #right {
|
#landingContainer > #lower > #right {
|
||||||
|
position: relative;
|
||||||
|
transition: 2s ease;
|
||||||
|
top: 0px;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 33%;
|
width: 33%;
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
@ -1267,6 +1283,7 @@ p {
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Button which opens the server selection view. */
|
||||||
#server_selection_button {
|
#server_selection_button {
|
||||||
background: none;
|
background: none;
|
||||||
border: none;
|
border: none;
|
||||||
|
@ -101,6 +101,29 @@ server_selection_button.addEventListener('click', (e) => {
|
|||||||
toggleOverlay(true, 'serverSelectContent')
|
toggleOverlay(true, 'serverSelectContent')
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// Test menu transform.
|
||||||
|
function slide_(up){
|
||||||
|
const lCUpper = document.querySelector('#landingContainer > #upper')
|
||||||
|
const lCLLeft = document.querySelector('#landingContainer > #lower > #left')
|
||||||
|
const lCLCenter = document.querySelector('#landingContainer > #lower > #center')
|
||||||
|
const lCLRight = document.querySelector('#landingContainer > #lower > #right')
|
||||||
|
const menuBtn = document.querySelector('#landingContainer > #lower > #center #content')
|
||||||
|
|
||||||
|
if(up){
|
||||||
|
lCUpper.style.top = '-200vh'
|
||||||
|
lCLLeft.style.top = '-200vh'
|
||||||
|
lCLCenter.style.top = '-200vh'
|
||||||
|
lCLRight.style.top = '-200vh'
|
||||||
|
menuBtn.style.top = '130vh'
|
||||||
|
} else {
|
||||||
|
lCUpper.style.top = '0px'
|
||||||
|
lCLLeft.style.top = '0px'
|
||||||
|
lCLCenter.style.top = '0px'
|
||||||
|
lCLRight.style.top = '0px'
|
||||||
|
menuBtn.style.top = '10px'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Update Mojang Status Color
|
// Update Mojang Status Color
|
||||||
const refreshMojangStatuses = async function(){
|
const refreshMojangStatuses = async function(){
|
||||||
console.log('Refreshing Mojang Statuses..')
|
console.log('Refreshing Mojang Statuses..')
|
||||||
|
Loading…
Reference in New Issue
Block a user