Hadi1989

Untitled

Mar 20th, 2019
308
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 4.23 KB | None | 0 0
  1. body, html {
  2.     padding: 0;
  3.     margin: 0;
  4.     background-image: url(../img/jkt.jpg);
  5.     background-repeat: no-repeat;  
  6.      position: absolute;
  7.     top: 50%;
  8.     left: 50%;
  9.     width: 400px;
  10.     height: 400px;
  11.     margin-left: -200px;
  12.     margin-top: -200px;
  13.     }
  14. .container {
  15.     position: absolute;
  16.     top: 50%;
  17.     left: 50%;
  18.     width: 650px;
  19.     height: 400px;
  20.     margin-left: -200px;
  21.     margin-top: -200px;
  22.     border-radius: 2px;
  23.     box-shadow: 4px 8px 16px 0 rgba(0, 0, 0, .1);
  24.     overflow: hidden;
  25.     /*
  26.     background: linear-gradient(#5d3355, #b97079, #a097ab, #fdf090)
  27.      */
  28.  
  29.  
  30. }
  31. .sun {
  32.     background: lemonchiffon;
  33.     width: 70px;
  34.     height: 70px;
  35.     border-radius: 70px;
  36.     display: block;
  37.     position: absolute;
  38.     top: 50px;
  39.     left: 100px;
  40. }
  41. .clouds{
  42.     background: #5d3355;
  43.     display: flex;
  44.     width: 100px;
  45.     height: 30px;
  46.     opacity: .8;
  47.     position: absolute;
  48.     top: 60%;
  49.     left: 120%;
  50. }
  51. .clouds .cloud{
  52.     position: relative;
  53.     width: auto;
  54. }
  55. .clouds .cloud:before{
  56.     content: "";
  57.     background: #5d3355;
  58.     width: 30px;
  59.     height: 30px;
  60.     border-radius: 30px;
  61.     display: block;
  62.     position: absolute;
  63.     bottom: 0;
  64.     left: -12px;
  65. }
  66. .clouds .c2:before{
  67.     height: 40px;
  68.     width: 40px;
  69.     border-radius: 40px;
  70.     bottom: 5px;
  71.     left: 2px;
  72. }
  73. .clouds .c3:before{
  74.     height: 40px;
  75.     width: 40px;
  76.     border-radius: 40px;
  77.     bottom: 17px;
  78.     left: 18px;
  79. }
  80. .clouds .c4:before{
  81.     height: 60px;
  82.     width: 60px;
  83.     border-radius: 60px;
  84.     bottom: 12px;
  85.     left: 42px;
  86. }
  87. .clouds .c5:before{
  88.     height: 50px;
  89.     width: 50px;
  90.     border-radius: 50px;
  91.     bottom: 0px;
  92.     left: 75px;
  93. }
  94. .clouds.bigger{
  95.       -webkit-animation: float 12s 0s infinite alternate linear;
  96.           animation: float 12s 0s infinite alternate linear;
  97. }
  98. .clouds.medium{
  99.     top: 42%;
  100.     height: 24px;
  101.     width: 92px;
  102.       -webkit-animation: float 16s 5s infinite alternate linear;
  103.           animation: float 16s 5s infinite alternate linear;
  104. }
  105. .clouds.medium .cloud{
  106.     position: relative;
  107.     width: auto;
  108. }
  109. .clouds.medium .cloud:before{
  110.     height: 24px;
  111.     width: 24px;
  112.     border-radius: 25px;
  113.     bottom: 0;
  114.     left: -12px;
  115. }
  116. .clouds.medium .c2:before{
  117.     height: 35px;
  118.     width: 35px;
  119.     border-radius: 35px;
  120.     bottom: 5px;
  121.     left: 2px;
  122. }
  123. .clouds.medium .c3:before{
  124.     height: 50px;
  125.     width: 50px;
  126.     border-radius: 50px;
  127.     bottom: 4px;
  128.     left: 18px;
  129. }
  130. .clouds.medium .c4:before{
  131.     height: 25px;
  132.     width: 25px;
  133.     border-radius: 25px;
  134.     bottom: 22px;
  135.     left: 58px;
  136. }
  137. .clouds.medium .c5:before{
  138.     height: 25px;
  139.     width: 25px;
  140.     border-radius: 25px;
  141.     bottom: 12px;
  142.     left: 73px;
  143. }
  144. .clouds.medium .c6:before{
  145.     height: 25px;
  146.     width: 25px;
  147.     border-radius: 25px;
  148.     bottom: 0px;
  149.     left: 82px;
  150. }
  151. .clouds.smaller{
  152.     top: 26%;
  153.     height: 18px;
  154.     width: 61px;
  155.     -webkit-animation: float 16s 4s infinite alternate linear;
  156.             animation: float 16s 4s infinite alternate linear;
  157. }
  158. .clouds.smaller .cloud{
  159.     position: relative;
  160.     width: auto;
  161. }
  162. .clouds.smaller .cloud:before{
  163.     height: 18px;
  164.     width: 18px;
  165.     border-radius: 18px;
  166.     bottom: 0;
  167.     left: -10px;
  168. }
  169. .clouds.smaller .c2:before{
  170.     height: 20px;
  171.     width: 20px;
  172.     border-radius: 20px;
  173.     bottom: 11px;
  174.     left: 2px;
  175. }
  176. .clouds.smaller .c3:before{
  177.     height: 35px;
  178.     width: 35px;
  179.     border-radius: 35px;
  180.     bottom: 8px;
  181.     left: 13px;
  182. }
  183. .clouds.smaller .c4:before{
  184.     height: 25px;
  185.     width: 25px;
  186.     border-radius: 25px;
  187.     bottom: 10px;
  188.     left: 35px;
  189. }
  190. .clouds.smaller .c5:before{
  191.     height: 25px;
  192.     width: 25px;
  193.     border-radius: 25px;
  194.     bottom: 0px;
  195.     left: 45px;
  196. }
  197. @-webkit-keyframes float {
  198.   0% {
  199.     -webkit-transform: translateX(0px);
  200.             transform: translateX(0px);
  201.   }
  202.   100% {
  203.     -webkit-transform: translateX(-640px);
  204.             transform: translateX(-640px);
  205.   }
  206. }
  207.  
  208. @keyframes float {
  209.   0% {
  210.     -webkit-transform: translateX(0px);
  211.             transform: translateX(0px);
  212.   }
  213.   100% {
  214.     -webkit-transform: translateX(-640px);
  215.             transform: translateX(-640px);
  216.   }
  217. }
Advertisement
Add Comment
Please, Sign In to add comment