Advertisement
ruesha

spinning music note player

May 28th, 2022
535
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. <style>
  2.  
  3. #music-player {
  4. position: relative;
  5. bottom: 1em;
  6. left: 0em;
  7. z-index: 9999;
  8. height: 1.425em;
  9. width: 1.425em;
  10. font-size: 2em;
  11. padding: 0.125em;
  12. background: #C4D4FD;
  13. border-radius: 50%;
  14. background: radial-gradient( #EED1FF 0%, #fff 100%);
  15. -webkit-background-clip: text;
  16. -webkit-text-fill-color: transparent;
  17. -webkit-text-stroke: .66px black;
  18. -webkit-animation: spin 2s linear infinite;
  19. -webkit-animation:spin 4s linear infinite;
  20. -moz-animation:spin 4s linear infinite;
  21. animation:spin 4s linear infinite;
  22. }
  23. @-moz-keyframes spin {
  24. 100% { -moz-transform: rotate(360deg); }
  25. }
  26. @-webkit-keyframes spin {
  27. 100% { -webkit-transform: rotate(360deg); }
  28. }
  29. @keyframes spin {
  30. 100% {
  31. -webkit-transform: rotate(360deg);
  32. transform:rotate(360deg);
  33. }
  34. }
  35. #music-player:hover {
  36. -webkit-animation: pop 0.3s ease;
  37. }
  38. </style>
  39. <div id="music-player" onmouseover="mouseoversound.playclip()" onclick="clicksound.playclip()">♫</div>
  40. <script>
  41. document.getElementById("music-player").onclick = function() {
  42. var audio = document.getElementById("audio");
  43. if (audio.paused) audio.play();
  44. else audio.pause();
  45. };
  46. </script>
  47. <audio id="audio" src="https://dl.dropbox.com/s/g0zod5d5bq00blx/IVE%20%27LOVE%20DIVE%27%20Lyrics%20%28%EC%95%84%EC%9D%B4%EB%B8%8C%20LOVE%20DIVE%20%EA%B0%80%EC%82%AC%29%20%28Color%20Coded%20Lyrics%29.mp3?dl=0"></audio>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement