Advertisement
ruesha

album + spinning cd music player

Jul 17th, 2024 (edited)
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.91 KB | None | 0 0
  1. <style>
  2. lol {
  3. }
  4. lol, .img2 { /* album's cover image u can change the size! */
  5. position: relative;
  6. left: -11px;
  7. width: 45px;
  8. height: 45px;
  9. background-color: #ffe0f4;
  10. color: black;
  11. z-index: 999;
  12. border: 1px dashed #e898c2;
  13. filter: drop-shadow(0px 0px 0.1em #2d7bbc);
  14. box-shadow: inset 13px 0px 6px -10px rgb(191 117 149 / 56%), inset -13px 0px 6px -10px rgb(191 117 149 / 56%), inset 0px 13px 6px -10px #ffffff, inset 0px -13px 6px -10px rgb(191 117 149 / 38%);
  15. border-radius: 3px;
  16. }
  17.  
  18. .img1 { /* cd image u can change the size too */
  19. position: relative;
  20. left: -35px;
  21. z-index: 800;
  22. border: 1px dotted #e898c2;
  23. border-radius: 100%;
  24. filter: drop-shadow(0px 0px 0.1em #2d7bbc);
  25. -webkit-animation: spin 2s linear infinite;
  26. -webkit-animation:spin 4s linear infinite;
  27. -moz-animation:spin 4s linear infinite;
  28. animation:spin 4s linear infinite;
  29. }
  30. @-moz-keyframes spin {
  31. 100% { -moz-transform: rotate(360deg); }
  32. }
  33. @-webkit-keyframes spin {
  34. 100% { -webkit-transform: rotate(360deg); }
  35. }
  36. @keyframes spin {
  37. 100% {
  38. -webkit-transform: rotate(360deg);
  39. transform:rotate(360deg);
  40. }
  41. }
  42. .img1:hover { /* this makes the cd stop spinning when hovering! */
  43. -webkit-animation: pop 0.3s ease;
  44. }
  45. </style>
  46. <body>
  47. <div id="lol"><img class="img2"src="https://cdn.discordapp.com/attachments/851155413831254076/1250326068351467600/Minisode1_-_Blue_Hour.jpg?ex=666a8864&is=666936e4&hm=872ee7d058944d80d55a34d714eba5e3e3bead36799989201d1924862005c553&"><img class="img1" src="https://dl.dropbox.com/scl/fi/r72bo87dta1m08lwv3ejb/cd.png?rlkey=4bvhnqwqvr3d6wgbwre1ki64c&st=46kcz4se&dl=0" width="auto" height="45px"></div>
  48. <script>
  49. document.getElementById("lol").onclick = function() {
  50. var audio = document.getElementById("audio");
  51. if (audio.paused) audio.play();
  52. else audio.pause();
  53. };
  54. </script>
  55. <audio id="audio" src="https://dl.dropbox.com/scl/fi/uvridqf9pdkuxv58gy1t5/.mp3?rlkey=udictrkgjypbkjuxjq6dhrva0&st=qunpukzj&dl=0"></audio>
  56. </body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement