owltrash

center/floating img code

Nov 1st, 2018
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1. <html>
  2. <body>
  3. <center>
  4.  
  5. <style type="text/css">
  6.  
  7. ::-webkit-scrollbar {
  8. background-color:transparent;
  9. width: 5px; }
  10.  
  11. ::-webkit-scrollbar-track { border-radius: 0px; background-color: transparent; }
  12.  
  13. ::-webkit-scrollbar-thumb { border-radius: 0px; background-color: #E02C1D; }
  14.  
  15.  
  16. body{background-color: #FFF;
  17. background-position:right top; background-image: url("");
  18. background-repeat: repeat; background-attachment:fixed; background-size: repeat}
  19.  
  20.  
  21. .pfor{display:none;}
  22. #profile{background-color:transparent;border:none;}
  23.  
  24.  
  25. .fix{
  26. position:fixed;
  27. bottom:0px;
  28. left:40%;
  29. }
  30.  
  31. #alexandros {
  32. background-color: #FFF;
  33. height: 500px;
  34. left: 36%;
  35. position: fixed;
  36. top: -20px;
  37. width: 390px;
  38. z-index: 2;
  39. }
  40.  
  41.  
  42. @keyframes bounce{
  43. 0% {top: 30px;}
  44. 50% {top: 50px;}
  45. 100% {top: 30px;}
  46. }
  47. @-webkit-keyframes bounce {
  48. 0% {top: 30px;}
  49. 50% {top: 50px;}
  50. 100% {top: 30px;}}
  51.  
  52. .bounce-img-bg{
  53. background-color: transparent;
  54. height: 500px;
  55. left: -30px;
  56. position: absolute;
  57. top: 512px;
  58. width: 409px;
  59. z-index: 211;
  60. padding:9px;
  61.  
  62. animation: bounce 3.25s infinite;
  63. -o-animation: bounce 3.25s infinite;
  64. -moz-animation:bounce 3.25s infinite;
  65. -webkit-animation: bounce 3.25s infinite;
  66. }
  67.  
  68. .border{
  69. border-radius: 80%;
  70. border: 2px solid #E02C1D;
  71. }
  72.  
  73.  
  74. </style>
  75.  
  76. <div id="alexandros"><div class="bounce-img-bg"><span class="bounce-img">
  77. <img height="512px;" width="409px;" src="https://i.imgur.com/e2i3IIH.png"</img>
  78. </div></div>
  79.  
  80.  
  81. </body>
  82. </html>
Advertisement
Add Comment
Please, Sign In to add comment