Advertisement
Guest User

Untitled

a guest
Nov 19th, 2019
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.87 KB | None | 0 0
  1. html, body {
  2.   margin: 0;
  3.   padding: 0;
  4.   box-sizing: border-box;
  5.   font-family: Helvetica, Arial, sans-serif;
  6. }
  7. @keyframes pulse {
  8.   from{
  9.   transform: scale(1);
  10. }
  11.   to{
  12.     transform: scale(1.1);
  13.   }
  14. }
  15. .header__wrapper {
  16.   display: flex;
  17.   justify-content: center;
  18.   align-items: center;
  19.   height: 70px;
  20.   margin: auto;
  21. }
  22.  
  23. .menu__item {
  24.   margin-right: 10px;
  25.   color: black;
  26.   text-decoration: none;
  27. }
  28.  
  29. .menu__item:last-of-type {
  30.   margin-right: 0;
  31. }
  32.  
  33. .cards {
  34.   background-color: #000;
  35.   color: #fff;
  36. }
  37.  
  38. .cards__wrapper {
  39.   width: 490px;
  40.   margin: auto;
  41.   padding: 50px 0;
  42. }
  43.  
  44. .title {
  45.   margin: 0;
  46.   line-height: 56px;
  47.   font-size: 54px;
  48. }
  49.  
  50. .subtitle {
  51.   line-height: 19px;
  52.   font-size: 14px;
  53.   margin-top: 35px;
  54.   margin-bottom: 55px;
  55.   max-width: 350px;
  56. }
  57.  
  58. .demo {
  59.   display: flex;
  60.   flex-wrap: wrap;
  61.   justify-content: center;
  62. }
  63.  
  64. .demo__item {
  65.   overflow: hidden;
  66.   background-color: #202020;
  67.   width: 240px;
  68.   height: 240px;
  69.   margin-right: 10px;
  70.   margin-top: 10px;
  71.   position: relative;
  72.   border-radius: 4px;
  73.   background-size: cover;
  74. }
  75.  
  76. .demo__item:nth-of-type(2n) {
  77.   margin-right: 0;
  78. }
  79.  
  80. .demo__item:first-of-type, .demo__item:nth-of-type(2) {
  81.   margin-top: 0;
  82. }
  83.  
  84. .demo__item-title {
  85.   width: 158px;
  86.   position: absolute;
  87.   bottom: 15px;
  88.   left: 15px;
  89.   margin: 0;
  90.   line-height: 30px;
  91.   font-size: 30px;
  92.   font-weight: normal;
  93. }
  94.  
  95. .demo__item-subtitle {
  96.   font-size: 14px;
  97.   line-height: 21px;
  98.   letter-spacing: 2px;
  99.   text-transform: uppercase;
  100.   margin-top: 24px;
  101.   margin-left: 16px;
  102.   width: 158px;
  103. }
  104.  
  105. .demo__item-subtitle_kusto {
  106.  
  107.   position: absolute;
  108.   top: 24px;
  109.   left: 16px;
  110.   margin: 0;
  111.   opacity: 0;
  112.   transition: opacity 0.3s ease;
  113. }
  114. .demo__item:hover .demo__item-subtitle_kusto{
  115.   opacity: 1;
  116. }
  117. .demo__item:hover .demo__wrapper_kusto{
  118.   transform: scale(1.05);
  119. }
  120. .demo__item_starman:hover{
  121.   box-shadow: 0 0 20px #4E52B0;
  122. }
  123. .demo__wrapper {
  124.   height: 100%;
  125.   width: 100%;
  126.   background-size: cover;
  127. }
  128.  
  129. .demo__wrapper_kusto {
  130.   transition: transform 0.9s ease-in-out;
  131.   background-image: url(https://pictures.s3.yandex.net/animation_topic/kusto.png);
  132. }
  133.  
  134. .demo__item_rossie {
  135.   background-image: url(https://pictures.s3.yandex.net/animation_topic/rossie.png);
  136. }
  137.  
  138. .demo__item_baumgartner {
  139.   background-image: url(https://pictures.s3.yandex.net/animation_topic/baumgartner.png);
  140. }
  141.  
  142. .demo__item_starman {
  143.   transition: box-shadow 0.3s ease;
  144.   background-image: url(https://pictures.s3.yandex.net/animation_topic/starman.png);
  145. }
  146. demo__item.demo__wrapper_kusto{
  147.   transform: scale(1.05);
  148. }
  149. .demo__item-ico {
  150.   animation: pulse 1s ease-in-out normal altternate;
  151.   position: absolute;
  152.   top: 24px;
  153.   right: 16px;
  154.   width: 40px;
  155. }
  156.  
  157. .demo__item-subtitle_baumgartner::after {
  158.   content: '3';
  159.   position: absolute;
  160.   top: 35px;
  161.   right: 15px;
  162.   font-size: 72px;
  163. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement