reijeo

slide up heart menu and tilt on hover

Jul 15th, 2022 (edited)
354
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.88 KB | None | 0 0
  1. <!--- some random code i found in my old pastes HAHA no credit for me cuz i think the original code belongs to someone else --->
  2.  
  3. <style>
  4.  
  5. @font-face {
  6. font-family:'heart';
  7. src: url(https://dl.dropbox.com/s/3obmncth4fhmduq/HEARRG__.TTF);
  8.  
  9. }
  10.  
  11. #cont {
  12. width: 200px;
  13. height: 200px;
  14. position: relative;
  15. overflow: hidden;
  16. display: block;
  17. margin-left: auto;
  18. margin-right: auto;
  19.  
  20. }
  21.  
  22. .img {
  23. width: 100%;
  24. height: 100%;
  25. object-fit: cover;
  26. overflow: hidden;
  27. display: inline-block;
  28.  
  29.  
  30. }
  31.  
  32. #cont img {
  33. transition: transform .5s;
  34. }
  35.  
  36. #cont:hover img {
  37. transform: scale(1.25) rotate(10deg);
  38. transform-origin: 50% 50%;
  39. webkit-filter: blur(.5px);
  40. filter: blur(.5px);
  41.  
  42. }
  43.  
  44. #numbers {
  45. position: absolute;
  46. bottom: -50px;
  47. border: 2px solid black;
  48. border-radius: 18px;
  49. background: white;
  50. padding-left: 5px;
  51. padding-right: 5px;
  52. padding-bottom: 5px;
  53. left: 46px;
  54. transition: .8s ease;
  55. }
  56.  
  57. #numbers a{
  58. text-decoration: none;
  59. font-family:'heart';
  60. letter-spacing: 2px;
  61. color: #9f6fd9;
  62. font-size: 1.5em;
  63. text-shadow: -1px 0 #000, 0 1px #000, 1px 0 #000, 0 -1px #000, 0 0;
  64.  
  65. }
  66.  
  67. #numbers a:hover{
  68. webkit-filter: blur(0.5px);
  69. filter: blur(2px);
  70. color:#46cacf;
  71. transition:all .5s ease-out;
  72.  
  73. }
  74.  
  75. #cont:hover #numbers {
  76. bottom: 90px;
  77. }
  78.  
  79. #cont {
  80. -webkit-mask-image: url(https://i.imgur.com/bIX4M8u.png);
  81. -webkit-mask-size: 90%;
  82. -webkit-mask-repeat: no-repeat;
  83. -webkit-mask-position: center;
  84.  
  85.  
  86. }
  87.  
  88. </style>
  89. <script>
  90. <link rel="preconnect" href="https://fonts.googleapis.com/%22%3E
  91. <link rel="preconnect" href="https://fonts.gstatic.com/" crossorigin>
  92. <link href="https://fonts.googleapis.com/css2?family=Berkshire+Swash&display=swap" rel="stylesheet">
  93.  
  94. </script>
  95.  
  96. <div id="cont">
  97.  
  98.  
  99. <img class=img src="https://i1.sndcdn.com/avatars-gHJS8dlroYGt6yZ0-En8PgA-t500x500.jpg">
  100.  
  101. <div id="numbers"> <a href="#">00</a> <a href="#">01</a> <a href="#">02</a> </div>
  102.  
  103.  
  104. </div>
  105.  
Add Comment
Please, Sign In to add comment