dianakko

main scroll nako.ju.mp

Sep 19th, 2021 (edited)
275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.51 KB | None | 0 0
  1. <head>
  2. <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
  3. <link href="//fonts.googleapis.com/css?family=Work+Sans" rel="stylesheet">
  4.  
  5. <link rel="preconnect" href="https://fonts.googleapis.com">
  6. <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  7. <link href="https://fonts.googleapis.com/css2?family=Mali&display=swap" rel="stylesheet">
  8.  
  9. <style>
  10.  
  11. @font-face {
  12. font-family: lovely;
  13. src: url(https://dl.dropbox.com/s/xde2bkhiie1bm8r/LovelyRegular.ttf);
  14. }
  15.  
  16. #cont { /*container! i'd recommed u only change the border eheh */
  17. width: 240px;
  18. height: 240px;
  19. border-radius: 12px;
  20. border: 4px double black;
  21. position: relative;
  22. margin-left: auto;
  23. margin-right: auto;
  24. }
  25.  
  26. .imgbg { /* image made to fit no matter the size! */
  27. width: 100%;
  28. height: 100%;
  29. object-fit: cover;
  30. border-radius: 9px; /*for an image to fit make it -3px than the border-radius of the #cont*/
  31. }
  32.  
  33. #float { /* floating text, u can change this! */
  34. position: absolute;
  35. width: 100%;
  36. left: 0;
  37. top: 40px;
  38. text-align: center;
  39. z-index: 1;
  40. text-shadow: -1px 0 #000, 0 1px #000, 1px 0 #000, 0 -1px #000, 0 0;
  41. font-family: lovely;
  42. font-size:3em;
  43. font-weight:bold;
  44. color: #fff;
  45. animation-name: floating;
  46. animation-duration: 3s;
  47. animation-iteration-count: infinite;
  48. animation-timing-function: ease-in-out;
  49. }
  50.  
  51. mark { /* round stuff like highlight */
  52. background: #d4e3c8;
  53. border-radius:7px;
  54. border: 1px solid #000;
  55. padding-left: 5px;
  56. padding-right: 5px;
  57. color: ##41572e;
  58.  
  59. }
  60.  
  61. @keyframes floating {
  62. 0% { transform: translate(0, 0px); }
  63. 50% { transform: translate(0, 15px); }
  64. 100% { transform: translate(0, -0px); }
  65. }
  66.  
  67. #scroll {
  68. /* 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 */
  69. opacity: 0;
  70. position: absolute;
  71. margin-left: 4%;
  72. margin-right: 4%;
  73. width: 200px;
  74. top: 100px;
  75. border-radius: 10px;
  76. bordeR: solid 1px black;
  77. padding: 10px;
  78. height: 100px;
  79. overflow: scroll;
  80. background: #FFFFFF90;
  81. transition: opacity .35s ease;
  82. /* style of the text inside scrollbox */
  83. font-size: 14px;
  84. font-family: 'Mali', cursive;
  85. color: #000;
  86. text-align: center;
  87. line-height: 16px;
  88. }
  89.  
  90. #cont:hover #scroll {
  91. opacity: 1;
  92.  
  93. }
  94.  
  95. #overlay { /* overlay! (blue in this case) (hidden without mouseover) */
  96. position: absolute;
  97. bottom: 0;
  98. left: 0;
  99. right: 0;
  100. background: rgba(199, 234, 252, 0); /*copy the color of ur choice in rgb! the last digit stands for opacity*/
  101. overflow: hidden;
  102. width: 0;
  103. height: 100%;
  104. transition: background 0.5s ease;
  105. border-radius: 9px;
  106.  
  107. }
  108.  
  109. #cont:hover #overlay { /* overlay when hovered! (it appears) */
  110. width: 100%;
  111. background: rgba(199, 234, 252, .2); /*copy the color of ur choice in rgb! the last digit stands for opacity*/
  112. transition: background 0.5s ease-out;
  113. }
  114.  
  115. #hov {
  116. font-family: lovely;
  117. font-size: 23px;
  118. text-shadow: -1px 0 #000, 0 1px #000, 1px 0 #000, 0 -1px #000, 0 0;
  119. font-weight: bold;
  120. }
  121.  
  122. a:hover {color: #add6dd;}
  123. a { color: #5d95a0; text-decoration: none;}
  124.  
  125. </style>
  126.  
  127. <div id="cont">
  128.  
  129. <img class=imgbg src="https://i.imgur.com/D6yrVz0.jpeg">
  130. <div id="float"> dani </div>
  131. <div id="overlay"> </div>
  132. <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>
  133.  
  134. <div id="hov"><a href="#i">rULES</a> <a href="#ii"> INTERESTS</a> <a href="#iii">MOrE</a> </div>
  135. </div>
  136. <br></br>
  137.  
Add Comment
Please, Sign In to add comment