Advertisement
abracitos

expand scroll box cr abracitos

Nov 4th, 2021 (edited)
3,319
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.73 KB | None | 0 0
  1. /* the image and the scroll box have to go into a column container, 25% left (image) and 75% right (sc), in the bg options change it for an image, all the codes go in different embeds in ur carrd */
  2.  
  3. /* image code */
  4. <style>
  5. .pinky {
  6. position:relative;
  7. z-index:1;
  8. border-width:7px;
  9. border-style:solid;
  10. border-image: url("https://i.imgur.com/NJa4bp2.png") 8 fill round;
  11. }
  12. </style>
  13.  
  14. <img class=pinky src="https://dl.dropbox.com/s/kh59o3iz09oyxgy/6FCFEF90-7E70-40F5-B850-12E3F5F3B1F3.jpeg" alt="." style="width:100px;height:auto;">
  15.  
  16. /* scroll box code */
  17. <link rel="preconnect" href="https://fonts.googleapis.com">
  18. <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  19. <link href="https://fonts.googleapis.com/css2?family=Mali:wght@500&display=swap" rel="stylesheet">
  20. <style>
  21. #scroll1 {
  22. height: 90px;
  23. width: 85%;
  24. padding: 7px;
  25. border-radius:9px;
  26. font-size: 13px;
  27. font-family: 'Mali', cursive;
  28. overflow: auto;
  29. background-color:#fff;
  30. position:relative;
  31. left:27px;
  32. top:5px;
  33. transition: width 1s, height 1s;
  34. }
  35. #cont:hover #scroll1 {
  36. height: 190px;
  37. width: 120%;
  38. transform-origin: 50% 50%;
  39. z-index: 8;
  40. position:absolute;
  41. left:-35px;
  42. background-color: white;
  43. top:-37px;
  44. border:double 8px #FFEBF1;
  45. }
  46. </style>
  47. <div id="cont">
  48. <div id="overlay"> </div>
  49. <div id="scroll1">
  50. info goes here
  51. </div>
  52.  
  53. /* note */
  54. <link rel="preconnect" href="https://fonts.googleapis.com">
  55. <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  56. <link href="https://fonts.googleapis.com/css2?family=Mali:wght@500&display=swap" rel="stylesheet">
  57. <style>
  58. #note {
  59. font-family: 'Mali', cursive;
  60. color:#000;
  61. position:relative;
  62. top:5px;
  63. }
  64. </style>
  65.  
  66. <div id="note"> cr to abracitos on whi!</div>
  67.  
  68. <!--dont remove this!--->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement