Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <head>
- <script src="https://kit.fontawesome.com/1953b7c367.js" crossorigin="anonymous"></script>
- </head>
- <style>
- #music-player {
- display: flex;
- align-items: center;
- justify-content: center;
- }
- #music-player {
- height: 1.3em;
- width: 1.3em;
- font-size: 1.3em;
- padding: 0.125em;
- border-radius: 50%;
- border: 1px solid #fff;
- background: radial-gradient(circle farthest-corner at center center, #FFFFFF 0%, #DBE7FF 100%);
- -webkit-filter: drop-shadow(0px 0px 1.5px #839FD6);
- position: relative;
- left: 133px;
- top: 1px;
- z-index: 40;
- -webkit-animation: spin 2s linear infinite;
- -webkit-animation:spin 4s linear infinite;
- -moz-animation:spin 4s linear infinite; animation:spin 4s linear infinite;
- }
- @-moz-keyframes spin {
- 100% {
- -moz-transform: rotate(360deg);
- }
- } @-webkit-keyframes spin {
- 100% {
- -webkit-transform: rotate(360deg);
- }
- }
- @keyframes spin {
- 100% {
- -webkit-transform: rotate(360deg);
- transform:rotate(360deg);
- }
- }
- #music-player:hover {
- -webkit-animation: pop 0.3s ease;
- }
- </style>
- <div id="music-player"><i class="fa-solid fa-headphones"style="font-size:0.8em; color:#fff;-webkit-text-stroke: 0.5px #839FD6;"></i></div>
- <audio id="audio" src="https://dl.dropbox.com/s/34tci4v9jpvhwzw/PinkPantheress%20-%20Pain.mp3?dl=0"></audio>
- <script>
- document.getElementById("music-player").onclick = function() {
- var audio = document.getElementById("audio");
- if (audio.paused) audio.play();
- else audio.pause();
- };
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement