dollcrds

hueningz crd co music player

Mar 24th, 2024
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 KB | None | 0 0
  1. <style>
  2. @font-face {
  3. font-family: emoji;
  4. src: url(https://dl.dropbox.com/s/cvba4kh6qm23mru/EmojiFont.ttf);
  5. }
  6.  
  7. #emoji {
  8. font-family: emoji;
  9. }
  10.  
  11. #music-player {
  12. display: flex;
  13. align-items: center;
  14. justify-content: center;
  15. }
  16.  
  17. #music-player {
  18. position: absolute;
  19. left: 4.7em;
  20. bottom: -12px;
  21. z-index: 999999;
  22. height: 1.425em;
  23. width: 1.425em;
  24. font-size: 2.25em;
  25. font-family: emoji;
  26. padding: 0.125em;
  27. background: #d5c3c2;
  28. border-radius: 50%;
  29. background: -webkit-linear-gradient(-90deg, #fff, #4d8d36
  30. , #ADACAC 50px);
  31. -webkit-background-clip: text;
  32. -webkit-text-fill-color: transparent;
  33. -webkit-filter: drop-shadow(0px 0px 2px #424242);
  34. -webkit-animation: spin 2s linear infinite;
  35. -webkit-animation: spin 4s linear infinite;
  36. -moz-animation: spin 4s linear infinite;
  37. animation: spin 4s linear infinite;
  38. }
  39.  
  40. @media only screen and (max-width: 600px) {
  41. #music-player {
  42. bottom: -10px;
  43. }
  44. }
  45.  
  46. @-moz-keyframes spin {
  47. 100% {
  48. -moz-transform: rotate(360deg);
  49. }
  50. }
  51.  
  52. @-webkit-keyframes spin {
  53. 100% {
  54. -webkit-transform: rotate(360deg);
  55. }
  56. }
  57.  
  58. @keyframes spin {
  59. 100% {
  60. -webkit-transform: rotate(360deg);
  61. transform: rotate(360deg);
  62. }
  63. }
  64.  
  65. #music-player:hover {
  66. -webkit-animation: pop 0.3s ease;
  67. </style>
  68. <div id="music-player">B</div>
  69. <script>
  70. document.getElementById("music-player").onclick = function() {
  71. var audio = document.getElementById("audio");
  72. if (audio.paused) audio.play();
  73. else audio.pause();
  74. };
  75. </script><audio id="audio" src="https://dl.dropbox.com/scl/fi/o5jj4akcrr6mbsoyz57vl/03-fall-at-the-same-time.mp3?rlkey=u9t472lb0hq6a6aegltjwwq80&dl=0.mp3"></audio></div>
Advertisement
Add Comment
Please, Sign In to add comment