tried transitions

main
Jonathan Dahan 12 months ago
parent 4e0520c20d
commit abf4bd40de

@ -11,7 +11,10 @@ body {
img, video { max-width: 100% } img, video { max-width: 100% }
#landing { display: none; text-decoration: underline } #landing { display: none; text-decoration: underline }
@media (orientation: portrait) {
#landing.active { display: block } #landing.active { display: block }
}
header { header {
flex-shrink: 0; flex-shrink: 0;
@ -32,7 +35,16 @@ header {
margin: 0; margin: 0;
/* turn the menu into a dynamic one for highly vertical devices */ /* turn the menu into a dynamic one for highly vertical devices */
@media (orientation: portrait) { @media (orientation: portrait) {
& li { display: none } & li { display: none; transition: display 3s ease }
/* TODO: try this
transition: opacity 1s ease-out;
opacity: 0;
height: 0;
overflow: hidden;
TO
opacity: 1;
height: auto;
*/
& li.active { display: inherit } & li.active { display: inherit }
&:hover li { display: block } &:hover li { display: block }
} }

Loading…
Cancel
Save