Advertisement
RyanJEarnshaw

Untitled

Sep 30th, 2016
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.16 KB | None | 0 0
  1. html {
  2. transition: 1s ease;
  3. }
  4. #content {
  5. transition: 1s ease;
  6. width: 90%;
  7. margin-bottom: 10%;
  8. }
  9.  
  10. hr {
  11. margin: 10px auto;
  12. width: 80%;
  13. float: middle;
  14. }
  15.  
  16.  
  17. /*Building content*/
  18. .captain-header {
  19. margin-top: -20%;
  20. }
  21. .captain-header h4 {
  22. font-family: 'Work Sans', sans-serif;
  23. font-weight: 200;
  24. font-size: 2vmax;
  25. }
  26. .teamscontainer {
  27. position: relative;
  28. margin: auto;
  29. float: left;
  30. width: 100%;
  31. height: 50vmax;
  32. margin-top: 1%;
  33. }
  34. .teams {
  35. display: flex;
  36. position: relative;
  37. margin: auto;
  38. width: 90%;
  39. height: auto;
  40. justify-content: center;
  41. }
  42. .team {
  43. float: left;
  44. width: 15%;
  45. }
  46. .team .image {
  47. background-color: white;
  48. display: inline-block;
  49. position: relative;
  50. border: 4px solid purple;
  51. width: 8vw;
  52. height: 8vw;
  53. overflow: hidden;
  54. border-radius: 50%;
  55. }
  56. .memberscontainer {
  57. position: relative;
  58. transition: 1s ease;
  59. float: left;
  60. height: 0%;
  61. background-color: black;
  62. width: 100%;
  63. }
  64. .memberscontainer .mc2, .memberscontainer .mc3, .memberscontainer .mc4, .memberscontainer .mc5, .memberscontainer .mc6 {
  65. -webkit-transition: 1s;
  66. -moz-transition: 1s;
  67. -ms-transition: 1s;
  68. transition: 1s;
  69. margin-left: 0;
  70. z-index: 1;
  71. }
  72. .mc1 { height: 4vmax; background-color: PALEGREEN; }
  73. .mc1.expandedheight { height: 30vmax; }
  74. .mc1.expandedwidth{ width: 600%; z-index: 10; margin-top: 30%; }
  75.  
  76.  
  77. .mc2 { height: 4vmax; background-color: MEDIUMAQUAMARINE; }
  78. .mc2.expandedheight { height: 30vmax; }
  79. .mc2.expandedwidth{ width: 600%; margin-left:-100%; z-index: 10; margin-top: 30%;}
  80.  
  81.  
  82. .mc3 { height: 4vmax; background-color: ROSYBROWN; }
  83. .mc3.expandedheight { height: 30vmax; }
  84. .mc3.expandedwidth{ width: 600%; margin-left:-200%; z-index: 10; margin-top: 30%;}
  85.  
  86.  
  87. .mc4 { height: 4vmax; background-color: PLUM; }
  88. .mc4.expandedheight { height: 30vmax; }
  89. .mc4.expandedwidth{ width: 600%; margin-left:-300%; z-index: 10; margin-top: 30%;}
  90.  
  91.  
  92. .mc5 { height: 4vmax; background-color: LIGHTSALMON; }
  93. .mc5.expandedheight { height: 30vmax; }
  94. .mc5.expandedwidth{ width: 600%; margin-left:-400%; z-index: 10; margin-top: 30%;}
  95.  
  96.  
  97. .mc6 { height: 4vmax; background-color: INDIANRED; }
  98. .mc6.expandedheight { height: 30vmax; }
  99. .mc6.expandedwidth{ width: 600%; margin-left:-500%; z-index: 10; margin-top: 30%;}
  100.  
  101. /*
  102. .team1 .image { border: 4px solid purple; }
  103. .team2 .image { border: 4px solid blue; }
  104. .team3 .image { border: 4px solid grey; }
  105. .team4 .image { border: 4px solid yellow; }
  106. .team5 .image { border: 4px solid red; }
  107. .team6 .image { border: 4px solid orange; }
  108. */
  109.  
  110. .team .image img {
  111. margin-left: -17%; /*delete me for default*/
  112. width: auto;
  113. height: 90%; /*100*/
  114. }
  115.  
  116. .mc1.expandedwidth .captains,
  117. .mc2.expandedwidth .captains,
  118. .mc2.expandedwidth .captains,
  119. .mc3.expandedwidth .captains,
  120. .mc4.expandedwidth .captains,
  121. .mc5.expandedwidth .captains,
  122. .mc6.expandedwidth .captains,
  123. .mc1.expandedwidth .children,
  124. .mc2.expandedwidth .children,
  125. .mc2.expandedwidth .children,
  126. .mc3.expandedwidth .children,
  127. .mc4.expandedwidth .children,
  128. .mc5.expandedwidth .children,
  129. .mc6.expandedwidth .children {
  130. position: relative;
  131. transition: 2s 1s ease;
  132. opacity: 1;
  133. }
  134.  
  135.  
  136. .memberscontainer .header {
  137. font-family: 'Lobster Two', Sans-serif;
  138. font-size: 2vmax;
  139. width: 100%;
  140. margin-bottom: 2%;
  141. }
  142.  
  143. .captains, .children {
  144. position: absolute;
  145. opacity: 0;
  146. }
  147. .memberscontainer .member {
  148. margin: .3vmax;
  149. float: middle;
  150. display: inline-block;
  151. vertical-align: center;
  152. }
  153. .memberscontainer .captains {
  154. display: block;
  155. border-right: 1px solid rgba(0,0,0,0.2);
  156. display: inline-block;
  157. float: left;
  158. width: 19%;
  159. }
  160. .memberscontainer .children {
  161. display: inline-block;
  162. float: left;
  163. width: 80%;
  164. }
  165. .member .memberimage {
  166. width: 8vmax;
  167. height: 8vmax;
  168. border-radius: 50%;
  169. color: #fff;
  170. text-align: center;
  171. background-color: #989a8f;;
  172. overflow: hidden;
  173. }
  174. .member .memberimage img {
  175. width: auto;
  176. height: inherit;
  177. color: #fff;
  178. text-align: center;
  179. }
  180. .member .membername h3 {
  181. font-size: 1.1vmax;
  182. }
  183. .member .membername {
  184. width: 100%;
  185. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement