Advertisement
dianakko

sanrio crd pero sin titulo

Oct 21st, 2021
449
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.95 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. <style>
  7.  
  8. @font-face {
  9. font-family: lovely;
  10. src: url(https://dl.dropbox.com/s/xde2bkhiie1bm8r/LovelyRegular.ttf);
  11. }
  12.  
  13. #cont { /*container! i'd recommed u only change the border eheh */
  14. width: 260px;
  15. height: 240px;
  16. border-radius: 12px;
  17. border: 4px double black;
  18. position: relative;
  19. margin-left: auto;
  20. margin-right: auto;
  21. }
  22.  
  23. .imgbg { /* image made to fit no matter the size! */
  24. width: 100%;
  25. height: 100%;
  26. object-fit: cover;
  27. border-radius: 9px; /*for an image to fit make it -3px than the border-radius of the #cont*/
  28. }
  29.  
  30. mark { /* round stuff like highlight */
  31. background: #d4e3c8;
  32. border-radius:7px;
  33. border: 1px solid #000;
  34. padding-left: 5px;
  35. padding-right: 5px;
  36. color: ##41572e;
  37.  
  38. }
  39.  
  40. @keyframes floating {
  41. 0% { transform: translate(0, 0px); }
  42. 50% { transform: translate(0, 15px); }
  43. 100% { transform: translate(0, -0px); }
  44. }
  45.  
  46. #scroll {
  47. /* 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 */
  48. opacity: 0;
  49. position: absolute;
  50. margin: auto;
  51. margin-right: 10px;
  52. margin-left: 10px;
  53. width: auto;
  54. top: 65px;
  55. border-radius: 10px;
  56. border: solid 1px black;
  57. padding: 10px;
  58. height: 100px;
  59. overflow: scroll;
  60. background: #FFFFFF90;
  61. transition: opacity .35s ease;
  62. /* style of the text inside scrollbox */
  63. font-size: 14px;
  64. font-family: 'Mali', cursive;
  65. color: #000;
  66. text-align: center;
  67. line-height: 16px;
  68. }
  69.  
  70. #cont:hover #scroll {
  71. opacity: 1;
  72.  
  73. }
  74.  
  75. #overlay { /* overlay! (blue in this case) (hidden without mouseover) */
  76. position: absolute;
  77. bottom: 0;
  78. left: 0;
  79. right: 0;
  80. background: rgba(199, 234, 252, 0); /*copy the color of ur choice in rgb! the last digit stands for opacity*/
  81. overflow: hidden;
  82. width: 0;
  83. height: 100%;
  84. transition: background 0.5s ease;
  85. border-radius: 9px;
  86.  
  87. }
  88.  
  89. #cont:hover #overlay { /* overlay when hovered! (it appears) */
  90. width: 100%;
  91. background: rgba(199, 234, 252, .2); /*copy the color of ur choice in rgb! the last digit stands for opacity*/
  92. transition: background 0.5s ease-out;
  93. }
  94.  
  95. #hov {
  96. font-family: lovely;
  97. font-size: 23px;
  98. text-shadow: -1px 0 #000, 0 1px #000, 1px 0 #000, 0 -1px #000, 0 0;
  99. font-weight: bold;
  100. }
  101.  
  102. a:hover {color: #add6dd;}
  103. a { color: #fff; text-decoration: none;}
  104.  
  105. </style>
  106.  
  107. <div id="cont">
  108.  
  109. <img class=imgbg src="https://data.whicdn.com/images/351591685/original.jpg">
  110. <div id="overlay"> </div>
  111. <div id="scroll"> your text goes <strong>here</strong> your text goes here your text goes here your text goes here your text goes here your text goes <br></br> here your text goes here your text goes here your text goes here <br></br>
  112.  
  113. <div id="hov"><a href="#i">rULES</a> <a href="#ii"> INTERESTS</a> <a href="#iii">MOrE</a> </div>
  114. </div>
  115. <br></br>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement