naocrrds

spinning headphones music player

Jul 5th, 2026
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.04 KB | None | 0 0
  1.  
  2. <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" />
  3. <style>
  4. #music-player {
  5. display: flex;
  6. align-items: center;
  7. justify-content: center;
  8. height: 2.15em;
  9. width: 2.15em;
  10. font-size: 1.5em;
  11. padding: 0.125em;
  12. border-radius: 50%;
  13. border: 1px solid #fff;
  14. background: rgb(255,255,255);
  15. background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(255,211,212,1) 100%);
  16. -webkit-filter: drop-shadow(0px 0px 1.5px #F6C8CA);
  17. position: absolute;
  18. top: 1em;
  19. left: 1em;
  20. z-index: 40;
  21. -webkit-animation: spin 4s linear infinite;
  22. -moz-animation: spin 4s linear infinite;
  23. animation: spin 4s linear infinite;
  24. }
  25. @-moz-keyframes spin {
  26. 100% {
  27. -moz-transform: rotate(360deg);
  28. }
  29. }
  30. @-webkit-keyframes spin {
  31. 100% {
  32. -webkit-transform: rotate(360deg);
  33. }
  34. }
  35. @keyframes spin {
  36. 100% {
  37. -webkit-transform: rotate(360deg);
  38. transform: rotate(360deg);
  39. }
  40. }
  41. #music-player:hover {
  42. -webkit-animation: pop 0.3s ease;
  43. }
  44. </style>
  45. <div id="music-player">
  46. <i class="material-icons" style="font-size: 1.3em; color: #fff; -webkit-text-stroke: 0.5px #ffd1eb;"> headset
  47. </i>
  48. </div>
  49. <audio id="audio" src="https://dl.dropbox.com/scl/fi/8nyngq0cabh1vzdo25n88/Wonder-Girls-Tell-Me-Color-Coded-Lyrics-Han_Rom_Eng-tjGu6L9HL2E.mp3?rlkey=csw36hgonn3h1ar577u3v6hs3&amp;st=pdznwmz4">
  50. </audio>
  51. <script>
  52. document.getElementById(&#34;music-player&#34;).onclick = function() {
  53. var audio = document.getElementById(&#34;audio&#34;);
  54. if (audio.paused) audio.play();
  55. else audio.pause();
  56. };
  57. </script>
  58.  
  59.  
Add Comment
Please, Sign In to add comment