style.css 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. body{
  2. position:relative;
  3. overflow-x:hidden;
  4. }
  5. /*first lvl*/
  6. .btn{
  7. display:flex;
  8. position:fixed;
  9. width:35px;
  10. height:100%;
  11. top:0;
  12. left:0;
  13. background:#818181;
  14. }
  15. .btn>a{
  16. display:fixed;
  17. position: absolute;
  18. height: 30px;
  19. left: -35px;
  20. top: 50%;
  21. color:#fff;
  22. text-decoration:none;
  23. font-size:25px;
  24. transform:rotate(90deg);
  25. position:relative;
  26. white-space:nowrap;
  27. }
  28. .menu{
  29. position:fixed;
  30. top:0;
  31. left:0;
  32. width:300px;
  33. height:100%;
  34. text-align:left;
  35. background:#818181;
  36. transform:translateX(-300px);
  37. transition: transform 0.4s;
  38. }
  39. .list{
  40. display:flex;
  41. justify-content:center;
  42. text-align:left;
  43. height:100%;
  44. flex-direction:column;
  45. margin-left:15%;
  46. }
  47. .list a{
  48. display:inline-block;
  49. color:#FFFFFF;
  50. text-align:left;
  51. text-decoration:none;
  52. font-size:30px;
  53. margin-top:10px;
  54. }
  55. .list a:before{
  56. display:inline-block;
  57. content:'';
  58. height:10px;
  59. width:10px;
  60. background:#FFB33A;
  61. margin:3px 10px;
  62. border:2px groove black;
  63. transform:rotate(45deg);
  64. }
  65. .content{
  66. display: flex;
  67. position: fixed;
  68. left: 35px;
  69. width: 100vw;
  70. height: 150%;
  71. }
  72. .btn:hover .menu{
  73. transform: translateX(0px);
  74. }
  75. .list a:hover{
  76. color:#FFB33A;
  77. }
  78. .content{
  79. position:fixed;
  80. top:0;
  81. left:0;
  82. text-align:left;
  83. transform:translateX(35px);
  84. transition: transform 0.4s;
  85. }
  86. .btn:hover+.content{
  87. transform: translateX(300px);
  88. }
  89. /*second lvl*/
  90. .crd{
  91. position: fixed;
  92. display:flex;
  93. background: #0d5825;
  94. height: 500px;
  95. width: 500px;
  96. top: 10%;
  97. left: 10%;
  98. transition: transform 0.4s;
  99. }
  100. .txt{
  101. position: absolute;
  102. width: 450px;
  103. height: 100px;
  104. display:block;
  105. justify-content:center;
  106. text-align:center;
  107. flex-direction:column;
  108. margin:25px;
  109. top: 0;
  110. left: 0;
  111. }
  112. .txt blockquote{
  113. color: #FFFFFF;
  114. font-size: 25px ;
  115. text-align: center;
  116. margin-top: 10px;
  117. }
  118. .txt blockquote:last-child{
  119. color: #FFFFFF;
  120. font-size: 25px ;
  121. text-align: center;
  122. font-style: oblique;
  123. }
  124. .card{
  125. display: inline-block;
  126. position: absolute;
  127. justify-content: center;
  128. width: 500px;
  129. height: 400px;
  130. left: 0;
  131. bottom:0;
  132. }
  133. .crd img{
  134. z-index: 1;
  135. width: 120px;
  136. position:absolute;
  137. transform: translateX(-50px) rotate(-25deg);
  138. top: 100px;
  139. left: 200px;
  140. transition: transform 0.4s;
  141. }
  142. .crd img:nth-child(2){
  143. z-index: 2;
  144. width: 120px;
  145. transform: rotate(-10deg);
  146. position: absolute;
  147. transition: transform 0.4s;
  148. }
  149. .crd img:last-child{
  150. z-index: 3;
  151. width: 120px;
  152. position: absolute;
  153. transform: translate(50px,15px) rotate(10deg);
  154. transition: transform 0.4s;
  155. }
  156. img:hover{
  157. transform: translate(-50px,-30px) rotate(-25deg);
  158. }
  159. img:hover:nth-child(2){
  160. transform: translateY(-30px) rotate(-10deg);
  161. }
  162. img:hover:last-child{
  163. transform: translate(50px,-20px) rotate(10deg);
  164. }
  165. /*fourth lvl*/
  166. .hub{
  167. position: fixed;
  168. height: 300px;
  169. width: 300px;
  170. display:flex;
  171. top: 18%;
  172. left: 60%;
  173. transition: transform 0.4s;
  174. }
  175. .box{
  176. width:100px;
  177. height: 100px;
  178. animation: jump 4s 0.3s infinite normal both;
  179. }
  180. @keyframes jump {
  181. 0%{
  182. background: #F6FF00;
  183. transform: translateX(200px);
  184. }
  185. 25%{
  186. background: #FF0000;
  187. transform: translateX(0px);
  188. }
  189. 50%{
  190. background: #3600FF;
  191. transform: translateY(200px);
  192. }
  193. 75%{
  194. background: #36F000;
  195. transform: translate(200px,200px);
  196. }
  197. 100%{
  198. background: #F6FF00;
  199. transform: translate(200px,0px);
  200. }
  201. }