ruesha

cr ciarispop (NOT MY CODE)

Jan 15th, 2022 (edited)
1,336
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.22 KB | None | 0 0
  1. <head>
  2. <link rel="preconnect" href="https://fonts.googleapis.com">
  3. <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  4. <link href="https://fonts.googleapis.com/css2?family=Mali&display=swap" rel="stylesheet">
  5.  
  6. </head>
  7.  
  8. <style>
  9.  
  10. #cont { /*container! i'd recommed u only change the border eheh */
  11. width: 300px;
  12. height: 300px;
  13. border: 4px double black;
  14. border-radius: 12px;
  15. position: relative;
  16. margin-left: auto;
  17. margin-right: auto;
  18. }
  19.  
  20. .imgbg { /* image made to fit no matter the size! */
  21. width: 100%;
  22. height: 100%;
  23. object-fit: cover;
  24. border-radius: 9px; /*for an image to fit make it -3px than the border-radius of the #cont*/
  25. }
  26.  
  27. @font-face {
  28. font-family: squidgy;
  29. src: url(https://dl.dropbox.com/s/jwobi0mfqf17x7b/SquidgySweets.otf);
  30. }
  31.  
  32. #float { /* floating text, u can change this! */
  33. position: absolute;
  34. width: 100%;
  35. left: 0;
  36. top: 100px;
  37. text-align: center;
  38. z-index: 1;
  39. text-shadow: -1px 0 #000, 0 1px #000, 1px 0 #000, 0 -1px #000, 0 0;
  40. font-family: squidgy;
  41. font-size:40px;
  42. font-weight:bold;
  43. color: #fff;
  44. animation-name: floating;
  45. animation-duration: 3s;
  46. animation-iteration-count: infinite;
  47. animation-timing-function: ease-in-out;
  48. }
  49.  
  50. @keyframes floating {
  51. 0% { transform: translate(0, 0px); }
  52. 50% { transform: translate(0, 15px); }
  53. 100% { transform: translate(0, -0px); }
  54. }
  55.  
  56. #scroll {
  57. /* scrollbox! u can change this! note: mess around with the 'margin-left' depending on the width or if u change anything of the scrollbox bc it messes a bit */
  58. opacity: 0;
  59. position: absolute;
  60. margin-left: 7%;
  61. width: 250px;
  62. top: 140px;
  63. border: 1px solid black;
  64. border-radius: 10px;
  65. padding: 10px;
  66. height: 110px;
  67. overflow: scroll;
  68. background: #FFFFFF90;
  69. transition: opacity .35s ease;
  70. /* style of the text inside scrollbox */
  71. font-size: 15px;
  72. font-family: 'Mali', cursive;
  73. color: #000;
  74. text-align: center;
  75. }
  76.  
  77. #cont:hover #scroll {
  78. opacity: 1;
  79.  
  80. }
  81.  
  82. #overlay { /* overlay! (blue in this case) (hidden without mouseover) */
  83. position: absolute;
  84. bottom: 0;
  85. left: 0;
  86. right: 0;
  87. background: rgba(199, 234, 252, 0); /*copy the color of ur choice in rgb! the last digit stands for opacity*/
  88. overflow: hidden;
  89. width: 0;
  90. height: 100%;
  91. transition: background 0.5s ease;
  92. border-radius: 9px;
  93.  
  94. }
  95.  
  96. #cont:hover #overlay { /* overlay when hovered! (it appears) */
  97. width: 100%;
  98. background: rgba(199, 234, 252, .2); /*copy the color of ur choice in rgb! the last digit stands for opacity*/
  99. transition: background 0.5s ease-out;
  100. }
  101.  
  102. </style>
  103.  
  104. <div id="cont">
  105.  
  106. <img class=imgbg src="https://cdn.discordapp.com/attachments/851155413831254076/911036390203064350/original_2.jpeg">
  107. <div id="float"> NAME! </div>
  108. <div id="overlay"> </div>
  109. <div id="scroll">
  110. scroll!
  111. <br></br>
  112. your info goes here your info goes here your info goes here your info goes here your info goes here your info goes here your info goes here your info goes here your info goes here your info goes here your info goes here your info goes here your info goes here your info goes here your info goes here your info goes here your info goes here your info goes here your info goes here your info goes here your info goes here your info goes here your info goes here your info goes here
  113. <br></br>
  114. © ciarispop for the code!
  115. </div>
  116. </div>
Add Comment
Please, Sign In to add comment