Advertisement
Guest User

Untitled

a guest
Jul 15th, 2017
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. >>1025364
  2.  
  3. Your example doesn't even work in my browsers (Chromium 46 and Firefox 33). Had to change `let` into `var` to fix the problem. Chromium reports the following error: `Uncaught SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode`
  4.  
  5. And by the way display:flex is not so widely supported yet and has lot of issues: https://caniuse.com/#search=flex
  6.  
  7. The reason of delay os that max-height is animated from 0 to 900px and from 900px to 0. As your menu height is less than 900px you see no changes until max-height becomes less than menu height.
  8.  
  9. Please look at this example to see how it works: https://codepen.io/anon/pen/owVRVY
  10.  
  11. --
  12.  
  13. Why use English I wonder?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement