dollcrds

2 ikisschris crd music player

Jul 5th, 2022
1,288
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. <style>
  2. #music-player {
  3. display: flex;
  4. align-items: center;
  5. justify-content: center;
  6. }
  7.  
  8. #music-player {
  9. height: 2em;
  10. width: 2em;
  11. font-size: 2em;
  12. padding: 0.125em;
  13. background: #FF6961;
  14. border-radius: 50%;
  15. border: 4px dotted #732931;
  16. color: #fff;
  17. -webkit-animation: spin 2s linear infinite;
  18. -webkit-animation: spin 4s linear infinite;
  19. -moz-animation: spin 4s linear infinite;
  20. animation: spin 4s linear infinite;
  21. }
  22.  
  23. @-moz-keyframes spin {
  24. 100% {
  25. -moz-transform: rotate(360deg);
  26. }
  27. }
  28.  
  29. @-webkit-keyframes spin {
  30. 100% {
  31. -webkit-transform: rotate(360deg);
  32. }
  33. }
  34.  
  35. @keyframes spin {
  36. 100% {
  37. -webkit-transform: rotate(360deg);
  38. transform: rotate(360deg);
  39. }
  40. }
  41.  
  42. #music-player:hover {
  43. -webkit-animation: pop 0.3s ease;
  44. }
  45. </style>
  46. <div id="music-player">♫</div>
  47. <script>
  48. document.getElementById("music-player").onclick = function() {
  49. var audio = document.getElementById("audio");
  50. if (audio.paused)
  51. audio.play();
  52. else
  53. audio.pause();
  54. }
  55. ;
  56. </script>
  57. <!---add ur music link here, tut on codes.crd.co--->
  58. <audio id="audio" loop src="https://cdn.discordapp.com/attachments/965819507794907138/993727387323871272/Jack_Antonoff_Never_Fall_In_Love.mp3"></audio>
Advertisement
Add Comment
Please, Sign In to add comment