Making controls slide out
This commit is contained in:
		
							parent
							
								
									def62b96bb
								
							
						
					
					
						commit
						28bd495867
					
				
					 3 changed files with 4 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -104,7 +104,6 @@
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
#help-menu > #help-controls {
 | 
			
		||||
    display: grid;
 | 
			
		||||
    padding: 0 1em 1em 0;
 | 
			
		||||
    background-color: rgba(0,0,0,0.5);
 | 
			
		||||
    z-index: 1;
 | 
			
		||||
| 
						 | 
				
			
			@ -113,11 +112,13 @@
 | 
			
		|||
    border: white solid;
 | 
			
		||||
    border-width: 1px 0 0 1px;
 | 
			
		||||
    border-radius: 0.3em 0 0 0;
 | 
			
		||||
    transform: translate(0, calc(100% - 2em));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#help-menu > #help-controls:hover {
 | 
			
		||||
    opacity: 1;
 | 
			
		||||
    transition: all 0.3s linear;
 | 
			
		||||
    transform: translate(0, 0);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#help-menu > #help-controls > div {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -169,6 +169,7 @@ function initReader(){
 | 
			
		|||
    
 | 
			
		||||
    setTimeout(() => {
 | 
			
		||||
        HELP_CONTROLS.style.opacity = null;
 | 
			
		||||
        HELP_CONTROLS.style.transform = null;
 | 
			
		||||
    }, DELAY_BEFORE_HIDDING_CONTROLS)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -42,7 +42,7 @@
 | 
			
		|||
                </div>
 | 
			
		||||
                
 | 
			
		||||
                <div id="help-menu">
 | 
			
		||||
                    <div id="help-controls" style="opacity:1">
 | 
			
		||||
                    <div id="help-controls" style="opacity:1; transform: translate(0,0);">
 | 
			
		||||
                        <div><div class="key">F</div>: Toggle fullscreen</div>
 | 
			
		||||
                        <div><div class="key">←</div>/ scroll up / clic left : previous panel</div>
 | 
			
		||||
                        <div><div class="key">→</div>/ scroll down / clic center or right : next panel</div>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue