Hadi1989

Untitled

Mar 20th, 2019
342
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 4.75 KB | None | 0 0
  1. html {
  2.   width: 100%;
  3.   height: 100%;
  4. }
  5.  
  6. body {
  7.   font-family: 'Teko';
  8.   display: flex;
  9.   align-items: center;
  10.   justify-content: center;
  11.   flex-direction: column;
  12.   height: 100%;
  13.   padding: 0;
  14.   margin: 0;
  15.   box-sizing: border-box;
  16.   background: #833ab4;
  17.   background: -webkit-linear-gradient(to right, #fcb045, #fd1d1d, #833ab4);
  18.   background: linear-gradient(to right, #fcb045, #fd1d1d, #833ab4);
  19.   color: #fff;
  20. }
  21.  
  22. .iso-text {
  23.   font-size: 200px;
  24.   font-weight: 700;
  25.   position: relative;
  26.   width: 100%;
  27.   height: 100%;
  28.   white-space: pre;
  29.   line-height: 1;
  30. }
  31. .iso-text div {
  32.   transform: rotateX(60deg) rotateZ(-45deg) translateX(-50%) translateY(-50%) translateZ(calc(var(--depth) * 0.4vmin));
  33.   transform-origin: 0 0;
  34.   position: absolute;
  35.   top: 50%;
  36.   left: 50%;
  37.   z-index: var(--depth);
  38.   text-shadow: 0 -2px 0 rgba(0, 0, 0, 0.5), 2px 0 0 rgba(0, 0, 0, 0.5), 0 2px 0 rgba(0, 0, 0, 0.3);
  39. }
  40. .iso-text div:first-child {
  41.   text-shadow: 0 -2px 0 rgba(0, 0, 0, 0.5), 2px 0 0 rgba(0, 0, 0, 0.5);
  42. }
  43. .iso-text div:nth-child(2) {
  44.   color: black;
  45. }
  46. .iso-text div:last-child {
  47.   color: rgba(0, 0, 0, 0.5);
  48.   text-shadow: 0 2px 0 rgba(0, 0, 0, 0.5), 0 -2px 0 rgba(0, 0, 0, 0.5), 2px 0 0 rgba(0, 0, 0, 0.5), -2px 0 0 rgba(0, 0, 0, 0.5), -10px 10px 5px rgba(0, 0, 0, 0.2), -10px 10px 55px rgba(0, 0, 0, 0.3);
  49. }
  50. .clouds{
  51.     background: #5d3355;
  52.     display: flex;
  53.     width: 100px;
  54.     height: 30px;
  55.     opacity: .8;
  56.     position: absolute;
  57.     top: 60%;
  58.     left: 120%;
  59. }
  60. .clouds .cloud{
  61.     position: relative;
  62.     width: auto;
  63. }
  64. .clouds .cloud:before{
  65.     content: "";
  66.     background: #5d3355;
  67.     width: 30px;
  68.     height: 30px;
  69.     border-radius: 30px;
  70.     display: block;
  71.     position: absolute;
  72.     bottom: 0;
  73.     left: -12px;
  74. }
  75. .clouds .c2:before{
  76.     height: 40px;
  77.     width: 40px;
  78.     border-radius: 40px;
  79.     bottom: 5px;
  80.     left: 2px;
  81. }
  82. .clouds .c3:before{
  83.     height: 40px;
  84.     width: 40px;
  85.     border-radius: 40px;
  86.     bottom: 17px;
  87.     left: 18px;
  88. }
  89. .clouds .c4:before{
  90.     height: 60px;
  91.     width: 60px;
  92.     border-radius: 60px;
  93.     bottom: 12px;
  94.     left: 42px;
  95. }
  96. .clouds .c5:before{
  97.     height: 50px;
  98.     width: 50px;
  99.     border-radius: 50px;
  100.     bottom: 0px;
  101.     left: 75px;
  102. }
  103. .clouds.bigger{
  104.       -webkit-animation: float 12s 0s infinite alternate linear;
  105.           animation: float 12s 0s infinite alternate linear;
  106. }
  107. .clouds.medium{
  108.     top: 42%;
  109.     height: 24px;
  110.     width: 92px;
  111.       -webkit-animation: float 16s 5s infinite alternate linear;
  112.           animation: float 16s 5s infinite alternate linear;
  113. }
  114. .clouds.medium .cloud{
  115.     position: relative;
  116.     width: auto;
  117. }
  118. .clouds.medium .cloud:before{
  119.     height: 24px;
  120.     width: 24px;
  121.     border-radius: 25px;
  122.     bottom: 0;
  123.     left: -12px;
  124. }
  125. .clouds.medium .c2:before{
  126.     height: 35px;
  127.     width: 35px;
  128.     border-radius: 35px;
  129.     bottom: 5px;
  130.     left: 2px;
  131. }
  132. .clouds.medium .c3:before{
  133.     height: 50px;
  134.     width: 50px;
  135.     border-radius: 50px;
  136.     bottom: 4px;
  137.     left: 18px;
  138. }
  139. .clouds.medium .c4:before{
  140.     height: 25px;
  141.     width: 25px;
  142.     border-radius: 25px;
  143.     bottom: 22px;
  144.     left: 58px;
  145. }
  146. .clouds.medium .c5:before{
  147.     height: 25px;
  148.     width: 25px;
  149.     border-radius: 25px;
  150.     bottom: 12px;
  151.     left: 73px;
  152. }
  153. .clouds.medium .c6:before{
  154.     height: 25px;
  155.     width: 25px;
  156.     border-radius: 25px;
  157.     bottom: 0px;
  158.     left: 82px;
  159. }
  160. .clouds.smaller{
  161.     top: 26%;
  162.     height: 18px;
  163.     width: 61px;
  164.     -webkit-animation: float 16s 4s infinite alternate linear;
  165.             animation: float 16s 4s infinite alternate linear;
  166. }
  167. .clouds.smaller .cloud{
  168.     position: relative;
  169.     width: auto;
  170. }
  171. .clouds.smaller .cloud:before{
  172.     height: 18px;
  173.     width: 18px;
  174.     border-radius: 18px;
  175.     bottom: 0;
  176.     left: -10px;
  177. }
  178. .clouds.smaller .c2:before{
  179.     height: 20px;
  180.     width: 20px;
  181.     border-radius: 20px;
  182.     bottom: 11px;
  183.     left: 2px;
  184. }
  185. .clouds.smaller .c3:before{
  186.     height: 35px;
  187.     width: 35px;
  188.     border-radius: 35px;
  189.     bottom: 8px;
  190.     left: 13px;
  191. }
  192. .clouds.smaller .c4:before{
  193.     height: 25px;
  194.     width: 25px;
  195.     border-radius: 25px;
  196.     bottom: 10px;
  197.     left: 35px;
  198. }
  199. .clouds.smaller .c5:before{
  200.     height: 25px;
  201.     width: 25px;
  202.     border-radius: 25px;
  203.     bottom: 0px;
  204.     left: 45px;
  205. }
  206. @-webkit-keyframes float {
  207.   0% {
  208.     -webkit-transform: translateX(0px);
  209.             transform: translateX(0px);
  210.   }
  211.   100% {
  212.     -webkit-transform: translateX(-640px);
  213.             transform: translateX(-640px);
  214.   }
  215. }
  216.  
  217. @keyframes float {
  218.   0% {
  219.     -webkit-transform: translateX(0px);
  220.             transform: translateX(0px);
  221.   }
  222.   100% {
  223.     -webkit-transform: translateX(-1000px);
  224.             transform: translateX(-1000px);
  225.   }
  226. }
Advertisement
Add Comment
Please, Sign In to add comment