Advertisement
Guest User

Untitled

a guest
Feb 20th, 2018
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.31 KB | None | 0 0
  1. /*
  2. To change this license header, choose License Headers in Project Properties.
  3. To change this template file, choose Tools | Templates
  4. and open the template in the editor.
  5. */
  6. /*
  7. Created on : 2018.02.20., 11:13:33
  8. Author : Rendszergazdai
  9. */
  10. body{
  11. background-color: rgb(114,131,205);
  12. }
  13.  
  14.  
  15. .btn{
  16. border: none;
  17. padding: 25px 80px;
  18. font-weight: bold;
  19. color: white;
  20. letter-spacing: 3px;
  21. cursor: pointer;
  22. transition: .3s ease;
  23. position: relative;
  24. background: none;
  25. }
  26.  
  27. .btn:after{
  28. content: '';
  29. position: absolute;
  30. z-index: -1;
  31. transition: .3s;
  32. }
  33.  
  34. .grp1{
  35. border: 4px solid white;
  36. }
  37.  
  38. .btn1:hover{
  39. color: rgb(14,131,205);
  40. background-color: white;
  41. }
  42.  
  43. .btn2:after{
  44. top: 0;
  45. left: 0;
  46. width: 100%;
  47. height: 0;
  48. background: white;
  49. }
  50.  
  51. .btn2:hover:after{
  52. height: 100%;
  53. }
  54.  
  55. .btn2:hover{
  56. color: rgb(14,131,205);
  57. }
  58.  
  59. .btn3:after{
  60. top: 0;
  61. left: 0;
  62. background: white;
  63. width: 0;
  64. height: 100%;
  65. }
  66.  
  67. .btn3:hover:after{
  68. width: 100%;
  69. }
  70.  
  71. .btn2:hover, .btn3:hover, btn4:hover{
  72. color: rgb(14,131,205);
  73. }
  74.  
  75. .btn4:after{
  76. top: 0;
  77. left: 50%;
  78. background: white;
  79. width: 0;
  80. height: 100%;
  81. transform: translateX(-50%);
  82. opacity: 0;
  83. }
  84.  
  85. .btn4:hover:after{
  86. width: 90%;
  87. opacity: 1;
  88. }
  89.  
  90. .btn4:hover, .btn5:hover, .btn6:hover{
  91. color: rgb(14,131,205);
  92. }
  93.  
  94. .btn5:after{
  95. top: 0;
  96. left: 50%;
  97. background: white;
  98. width: 0;
  99. height: 100%;
  100. transform: translateX(-50%) skewX(25deg);
  101. opacity: 0;
  102. }
  103.  
  104. .btn5{
  105. overflow: hidden;
  106. }
  107.  
  108. .btn5:hover:after{
  109. width: 100%;
  110. opacity: 1;
  111. }
  112.  
  113. .btn5:active:after{
  114. width: 120%;
  115. }
  116.  
  117. .btn6:after{
  118. top: 50%;
  119. left: 0;
  120. background: white;
  121. width: 100%;
  122. height: 0;
  123. transform: translateY(-50%);
  124. opacity: 0;
  125. }
  126.  
  127. .btn6:hover:after{
  128. height: 80%;
  129. opacity: 1;
  130. }
  131.  
  132.  
  133. <body>
  134. <button class="btn grp1 btn1">BUTTON</button>
  135. <button class="btn grp1 btn2">BUTTON</button>
  136. <button class="btn grp1 btn3">BUTTON</button>
  137. <button class="btn grp1 btn4">BUTTON</button>
  138. <button class="btn grp1 btn5">BUTTON</button>
  139. <button class="btn grp1 btn6">BUTTON</button>
  140. <div></div>
  141. </body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement