zhansitos

cd music player

Mar 12th, 2022
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. <!-- music player made by arsha (was @girisgoblog) and edited by méigui (@zhansosmioo on twt) -->
  2. <style>
  3. lol {
  4. }
  5. lol, .img1 { /* cd image u can change the size too */
  6. position: relative;
  7. width: 45px;
  8. height: 45px;
  9. z-index: 999;
  10. -webkit-animation: spin 2s linear infinite;
  11. -webkit-animation:spin 4s linear infinite;
  12. -moz-animation:spin 4s linear infinite;
  13. animation:spin 4s linear infinite;
  14. }
  15. @-moz-keyframes spin {
  16. 100% { -moz-transform: rotate(360deg); }
  17. }
  18. @-webkit-keyframes spin {
  19. 100% { -webkit-transform: rotate(360deg); }
  20. }
  21. @keyframes spin {
  22. 100% {
  23. -webkit-transform: rotate(360deg);
  24. transform:rotate(360deg);
  25. }
  26. }
  27. .img1:hover { /* this makes the cd stop spinning when hovering! */
  28. -webkit-animation: pop 0.3s ease;
  29. }
  30. </style>
  31. <body>
  32. <div id="lol"><img class="img1" src="https://venusparanoia.neocities.org/cd.png" width="auto" height="45px"></div>
  33. <script>
  34. document.getElementById("lol").onclick = function() {
  35. var audio = document.getElementById("audio");
  36. if (audio.paused) audio.play();
  37. else audio.pause();
  38. };
  39. </script>
  40. <audio id="audio" src="https://dl.dropbox.com/s/0d77ifo2upw7e6x/%ED%97%A4%EC%9D%B4%EC%A6%88%20Heize%20%E2%80%93%20And%20July%20%28feat.%20DEAN%20%26%20DJ%20Friz%29%28audio%29.mp3?dl=0"></audio>
  41. </body>
Advertisement
Add Comment
Please, Sign In to add comment