ityizhuo

additional content when hovered + recommend instructions. cr itzhuo pls

Jul 30th, 2021 (edited)
2,572
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 2.56 KB | None | 0 0
  1. <!-- additional content that show up when hovered by xio! cr @itzhuo (and @baeyhkun for lace border). dont repost on other pastebins pls n thank uuuu -->
  2.  
  3.  
  4. <head>
  5. /*if you want to put some google font do it here!*/
  6.  
  7. <style>
  8. @font-face { /*you can change the custom fonts for all the one u like just make sure that don't get things mixed up in the final part hehe */
  9. font-family: Magica;
  10. src: url(https://static.tumblr.com/p6yopnt/Qkiqnu0r5/theheart.ttf);
  11. }
  12.  
  13. @font-face {
  14. font-family: lovely;
  15. src: url(https://dl.dropbox.com/s/xde2bkhiie1bm8r/LovelyRegular.ttf);
  16.  
  17. }
  18. #lovely {
  19. font-family: lovely;
  20. font-size: 30px;
  21. text-align: center;
  22. -webkit-text-stroke: 1px black; /*you can put the normal text-shadow here too!*/
  23. color: white;
  24. }
  25. /* put the rest of your custom font here! */
  26.  
  27. .card { /*container! i'd recommend you to just change the border pls*/
  28. width: 310px;
  29. height: 290px;
  30. padding: 0;
  31. box-sizing: border-box;
  32. overflow: hidden;
  33. border-width:7px;
  34. border-style:solid;
  35. border-image: url("https://media.discordapp.net/attachments/826854899013648384/839700444375810078/tumblr_inline_o98n9dbCl61u2r0ws_540_1_2.png") 8 fill round;
  36. }
  37.  
  38. .card * {
  39. transition: 0.3s ease all;
  40. }
  41.  
  42. .card img { /*i'd recommend u to not change this but if u want u can mess aroung with the width or height */
  43. margin: 0;
  44. width: 300px;
  45. height: 240px;
  46. object-fit: cover;
  47. display: block;
  48. }
  49.  
  50. #scroll { /* u can change the font, background, text aling. i'd recommend u to not change padding, height and overflow :D */
  51. padding: 5px;
  52. height: 110px;
  53. overflow:hidden;
  54. background: white;
  55. font-size: 15px;
  56. font-family: 'Times';
  57. font-weight: bold;
  58. color: #000;
  59. text-align: center;
  60.  
  61. }
  62. .card p {
  63. margin: 0;
  64. line-height: 1.5;
  65. }
  66.  
  67. .card:hover img, .card:focus-within img {
  68. margin-top: -80px;
  69. }
  70.  
  71. .card:hover h3, .card:focus-within h3 {
  72. padding: 8px 12px 0;
  73. }
  74.  
  75. a { /* u can change this link for another! */
  76. font-family: Magica;
  77. text-decoration: none;
  78. color: white;
  79. font-size:25px;
  80. text-shadow: -1px 0 #000, 0 1px #000, 1px 0 #000, 0 -1px #000, 0 0;
  81.  
  82. }
  83. a:hover {
  84. webkit-filter: blur(1px);
  85. filter: blur(1px);
  86. }
  87. </style>
  88. <div class="card">
  89. <img src="your.img.URL">
  90. <div id="lovely">YOUR TITLE!</div>
  91. <div id="scroll"> your text goes here your text goes here your text goes here your text goes here your text goes here your text goes here your text goes here your text goes here your text goes here /* make sure to not put too much info or the additional content won't work T__T just put the basic */
  92. <div id="hover"><a href="#i">1</a> <a href="#i">2</a> </div> </div>
  93. </div>
  94. </div>
Add Comment
Please, Sign In to add comment