Guest User

Untitled

a guest
Jun 19th, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.80 KB | None | 0 0
  1. //css
  2. .hamburger-menu {
  3. border-radius: 10px;
  4. background-color: transparent;
  5. border: none;
  6. cursor: pointer;
  7. align-self: center;
  8. z-index: 999;
  9. left: 50%;
  10. top: 12%;
  11. transform: translateX(-50%);
  12. position: absolute;
  13. display: none;
  14. }
  15.  
  16. .hamburger-menu:focus,
  17. .hamburger-menu-content:focus {
  18. outline: none;
  19. }
  20.  
  21. .hamburger-menu:focus .hamburger-menu-content {
  22. outline: 5px solid rgba(17, 17, 17, 0);
  23. }
  24.  
  25. .hamburger-menu-content {
  26. display: block;
  27. height: 24px;
  28. }
  29.  
  30. .bar,
  31. .bar:after,
  32. .bar:before {
  33. width: 30px;
  34. height: 2px;
  35. border-radius: 10px;
  36. }
  37.  
  38. .bar {
  39. position: relative;
  40. top: 5px;
  41. transform: translateY(5px);
  42. background: #ffffff;
  43. transition: all 0ms 300ms;
  44. border-radius: 10px;
  45. display: block;
  46. }
  47.  
  48. .bar.animate {
  49. background: rgba(17, 17, 17, 0); }
  50.  
  51. .bar:before {
  52. content: "";
  53. position: absolute;
  54. left: 0;
  55. bottom: 10px;
  56. background: #ffffff;
  57. transition: bottom 300ms 300ms cubic-bezier(0.23, 1, 0.32, 1), transform 300ms cubic-bezier(0.23, 1, 0.32, 1); }
  58.  
  59. .bar:after {
  60. content: "";
  61. position: absolute;
  62. left: 0;
  63. top: 10px;
  64. background: #ffffff;
  65. transition: top 300ms 300ms cubic-bezier(0.23, 1, 0.32, 1), transform 300ms cubic-bezier(0.23, 1, 0.32, 1); }
  66.  
  67. .bar.animate:after {
  68. top: 0;
  69. transform: rotate(45deg);
  70. transition: top 300ms cubic-bezier(0.23, 1, 0.32, 1), transform 300ms 300ms cubic-bezier(0.23, 1, 0.32, 1);
  71. opacity: 1; }
  72.  
  73. .bar.animate:before {
  74. bottom: 0;
  75. transform: rotate(-45deg);
  76. transition: bottom 300ms cubic-bezier(0.23, 1, 0.32, 1), transform 300ms 300ms cubic-bezier(0.23, 1, 0.32, 1); }
  77.  
  78. .hamburger-menu .bar.animate {
  79. background: transparent !important; }
  80.  
  81. .hamburger-menu .bar.animate:before, .hamburger-menu .bar.animate:after {
  82. background: #ffffff }
Add Comment
Please, Sign In to add comment