dianakko

sanrio crd pero sin efecto hover

Oct 20th, 2021
279
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.05 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. #float { /* floating text, u can change this! */
  31. position: absolute;
  32. width: 100%;
  33. left: 0;
  34. top: 40px;
  35. text-align: center;
  36. z-index: 1;
  37. text-shadow: -1px 0 #000, 0 1px #000, 1px 0 #000, 0 -1px #000, 0 0;
  38. font-family: lovely;
  39. font-size:3em;
  40. font-weight:bold;
  41. color: #fff;
  42. animation-name: floating;
  43. animation-duration: 3s;
  44. animation-iteration-count: infinite;
  45. animation-timing-function: ease-in-out;
  46. }
  47.  
  48. mark { /* round stuff like highlight */
  49. background: #d4e3c8;
  50. border-radius:7px;
  51. border: 1px solid #000;
  52. padding-left: 5px;
  53. padding-right: 5px;
  54. color: ##41572e;
  55.  
  56. }
  57.  
  58. @keyframes floating {
  59. 0% { transform: translate(0, 0px); }
  60. 50% { transform: translate(0, 15px); }
  61. 100% { transform: translate(0, -0px); }
  62. }
  63.  
  64. #scroll {
  65. /* 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 */
  66. position: absolute;
  67. margin: auto;
  68. margin-right: 10px;
  69. margin-left: 10px;
  70. width: auto;
  71. top: 100px;
  72. border-radius: 10px;
  73. border: solid 1px black;
  74. padding: 10px;
  75. height: 100px;
  76. overflow: scroll;
  77. background: #FFFFFF90;
  78. /* style of the text inside scrollbox */
  79. font-size: 14px;
  80. font-family: 'Mali', cursive;
  81. color: #000;
  82. text-align: center;
  83. line-height: 16px;
  84. }
  85.  
  86.  
  87. #overlay { /* overlay! (blue in this case) (hidden without mouseover) */
  88. position: absolute;
  89. bottom: 0;
  90. left: 0;
  91. right: 0;
  92. background: rgba(199, 234, 252, 0); /*copy the color of ur choice in rgb! the last digit stands for opacity*/
  93. overflow: hidden;
  94. width: 0;
  95. height: 100%;
  96. border-radius: 9px;
  97.  
  98. }
  99.  
  100.  
  101. #hov {
  102. font-family: lovely;
  103. font-size: 23px;
  104. text-shadow: -1px 0 #000, 0 1px #000, 1px 0 #000, 0 -1px #000, 0 0;
  105. font-weight: bold;
  106. }
  107.  
  108.  
  109. a:hover {color: #add6dd;}
  110. a { color: #fff; text-decoration: none;}
  111.  
  112. </style>
  113.  
  114. <div id="cont">
  115.  
  116. <img class=imgbg src="https://data.whicdn.com/images/351591685/original.jpg">
  117. <div id="float"> dani </div>
  118. <div id="overlay"> </div>
  119. <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>
  120.  
  121. <div id="hov"><a href="#i">rULES</a> <a href="#ii"> INTERESTS</a> <a href="#iii">MOrE</a> </div>
  122. </div>
  123. <br></br>
Advertisement
Add Comment
Please, Sign In to add comment