ruesha

polaroid hover

May 29th, 2024
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.02 KB | None | 0 0
  1. <style>
  2.  
  3. @font-face {
  4. font-family: PC98;
  5. src: url(https://dl.dropbox.com/s/q6te1rmeglfy4bf/pc-9800.ttf);
  6. }
  7.  
  8. .mom {
  9. position: absolute;
  10. bottom: 195px;
  11. left: 160px;
  12. width: 192px;
  13. height: 280px;
  14. border: 9px solid #ffffff;
  15. border-radius: 4px;
  16. box-shadow: 0px 0px 1px #666666;
  17. background-image: linear-gradient(0deg, #ffffff 13%, #ffffff00 0%);
  18. }
  19.  
  20. .image {
  21. opacity: 1;
  22. display: block;
  23. width: 100%;
  24. height: auto;
  25. transition: .5s ease;
  26. backface-visibility: hidden;
  27. }
  28.  
  29. .middle {
  30. transition: .5s ease;
  31. opacity: 0;
  32. position: absolute;
  33. bottom: -2%;
  34. left: 50%;
  35. width: 12em;
  36. transform: translate(-50%, -50%);
  37. -ms-transform: translate(-50%, -50%);
  38. text-align: center;
  39. }
  40.  
  41. .mom:hover .image {
  42. opacity: 0.3;
  43. }
  44.  
  45. .mom:hover .middle {
  46. opacity: 1;
  47. }
  48.  
  49. .text {
  50. background-color: #ffffffb3;
  51. border-radius: 4px;
  52. color: #424242;
  53. font-size: 12px;
  54. font-family: PC98;
  55. height: 113px;
  56. width: 160px;
  57. overflow-y: scroll;
  58. padding: 10px 5px 10px 5px;
  59. position: relative;
  60. bottom: 93px;
  61. left: 23.5px;
  62. }
  63.  
  64. @media only screen and (max-width: 600px) {
  65.  
  66. .mom {
  67. position: absolute;
  68. bottom: 220px;
  69. left: 95px;
  70. width: 185px;
  71. height: 190px;
  72. border: 9px solid #ffffff;
  73. border-radius: 4px;
  74. box-shadow: 0px 0px 1px #666666;
  75. background-image: linear-gradient(0deg, #ffffff 13%, #ffffff00 0%);
  76. }
  77.  
  78. .text {
  79. background-color: #ffffffb3;
  80. border-radius: 4px;
  81. color: #424242;
  82. font-size: 12px;
  83. font-family: PC98;
  84. height: 10.3em;
  85. width: 158px;
  86. overflow-y: scroll;
  87. padding: 10px 5px 10px 5px;
  88. position: relative;
  89. bottom: -16px;
  90. left: 9px;
  91. }
  92. }
  93.  
  94. mark {
  95. background: #E8E0FF;
  96. border: 1px solid #A6A6A6;
  97. padding: 2px 6px;
  98. border-radius: 10px;
  99. font-family: PC98;
  100. width: 67px;
  101. position: relative;
  102. }
  103.  
  104. </style>
  105. </head>
  106. <body>
  107.  
  108. <div class="mom">
  109. <img src="https://cdn.discordapp.com/attachments/851155413831254076/1114211824217362513/Screenshot_2023-06-01_at_10.22.36_AM.jpg" class="image" style="width:100%; height: 230px;">
  110. <div class="middle">
  111. <div class="text">
  112. insert your text here for your carrd
  113. </div>
  114. </div>
  115. </body>
Advertisement
Add Comment
Please, Sign In to add comment