Hadi1989

Untitled

Sep 21st, 2018
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.62 KB | None | 0 0
  1. body{
  2.     margin: 0;
  3.     padding: 0;
  4.     background : url(../img/spaceboy.gif);
  5. }
  6.  
  7. .scene{
  8.     position: absolute;
  9.     top: 50%;
  10.     left: 50%;
  11.     transform: translate(-50%,-50%);
  12.     width: 400px;
  13.     height: 400px;
  14.     background: #3b93ff;
  15.     border: 20px solid #fff;
  16.     border-radius: 50%;
  17.     overflow: hidden;
  18.     /*box-shadow: inset 0 0 100px rgba(0,0,0,.5);*/
  19.     animation: animatescane 5s linear infinite;
  20. }
  21. .scene:before{
  22.     content: '';
  23.     position: absolute;
  24.     top: 0;
  25.     left: 50%;
  26.     width: 100%;
  27.     height: 100%;
  28.     /*background: rgb(0,0,0,.3);*/
  29.     z-index: 1;
  30. }
  31. .fa-rocket{
  32.     position: absolute;
  33.     top: 50%;
  34.     left: 50%;
  35.     transform: translate(-50%,-50%) rotate(-45deg);
  36.     color: #fff;
  37.     font-size: 10em !important;
  38.     animation: animaterocket .2s linear infinite;
  39.     text-shadow: -10px 15px 10px rgb(0,0,0,.2);
  40. }
  41. .cloud{
  42.     position: absolute;
  43.     color: #ccc;
  44.     animation: animateCloud 1s linear infinite;
  45. }
  46. .cloud1{
  47. left: 10%;
  48. font-size: 6em;
  49. }
  50. .cloud2{
  51. left: 45%;
  52. font-size: 3em;
  53. z-index: -1;
  54. animation-delay: -0,8;
  55. }
  56. .cloud3{
  57.     right: 20%;
  58. font-size: 5em;
  59. animation-delay: -0,4;
  60. }
  61. @keyframes animaterocket{
  62.     0%{
  63.         transform: translate(-50%,-50%) rotate(-45deg) translate(0,0);
  64.     }
  65.     50%{
  66.         transform: translate(-50%,-50%) rotate(-45deg) translate(-5px,-5px);   
  67.     }
  68.     100%{
  69.         transform: translate(-50%,-50%) rotate(-45deg) translate(0,0);
  70.     }
  71. }
  72.  
  73. @keyframes animateCloud{
  74.     0%{
  75.         transform: translateY(-100%);
  76.     }
  77.     100%{
  78.         transform: translateY(1000%);  
  79.     }
  80. }
  81.  
  82. @keyframes animatescane{
  83. /*
  84.     0%{
  85.         background: #b339ff;
  86.     }
  87.     30%{
  88.         background: #b339ff;
  89.     }
  90.     70%{
  91.         background: #b339ff;
  92.     }
  93.     100%{
  94.         background: #b339ff;
  95.     }
  96.    
  97. */
Advertisement
Add Comment
Please, Sign In to add comment