Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---CODES---
- <style>
- @font-face {
- font-family: cherish;
- src: url(https://dl.dropbox.com/s/lv6dfv1iamsw4ob/cherish.ttf);
- }
- @font-face {
- font-family: 'Magica';
- src: url(https://static.tumblr.com/p6yopnt/Qkiqnu0r5/theheart.ttf);
- }
- @font-face {
- src: url(https://dl.dropbox.com/s/1479f8x52y3z5u4/rainyhearts.ttf);
- font-family: hearts;
- }
- html {
- overflow: scroll;
- overflow-x: hidden;
- }
- ::-webkit-scrollbar {
- width: 0; /* remove scrollbar space */
- background: transparent; /* to make scrollbar invisible */
- }
- ::-webkit-scrollbar-thumb {
- background: transparent;
- }
- </style>
- ---MUSIC PLAYER---
- <head>
- <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.14.0/css/all.css" integrity="sha384-HzLeBuhoNPvSl5KYnjx0BT+WB0QEEqLprO+NBkkk5gbc67FTaL7XIGa2w1L0Xbgc" crossorigin="anonymous">
- </head>
- <style>
- @font-face {
- src: url(https://dl.dropbox.com/s/1479f8x52y3z5u4/rainyhearts.ttf);
- font-family: hearts;
- }
- #musicplayer{
- display:grid;
- grid-template-columns:25px auto;
- align-items:center;
- width: 135px;
- font-size:15px;
- line-height: 140%;
- background:white;
- border: 1px solid black;
- border-radius: 5px 5px 5px 5px;
- }
- @media only screen and (max-width: 600px) {
- #musicplayer {
- width: 120px;
- }
- }
- #musictitle{
- overflow: hidden;
- width: calc(100% - 10px - 1px);
- margin-left: calc(10px + 1px);
- white-space: nowrap;
- display:inline-block;
- font-family: hearts;
- color: black;
- }
- #musicpixel{
- width:100%;
- position:relative;
- left: 0px;
- min-height: 20px;
- border-right: 1px solid black;
- }
- .overlay {
- opacity:0;
- position:absolute;
- top:0;
- left:0;
- text-align:center;
- width:100%;
- height:100%;
- transition:0.3s ease;
- background:white;
- }
- #musicpixel img{
- display:block;
- }
- .marquee{
- display: inline-block;
- padding-left: 100%;
- animation: marquee 5s linear infinite;
- }
- @keyframes marquee{
- 0% {
- transform: translate(0, 0);
- }
- 100% {
- transform: translate(-100%, 0);
- }
- }
- </style>
- <div id='musicplayer'>
- <div id='musicpixel'>
- <img src='https://i.imgur.com/kdc0tIY.gif'>
- <div class='overlay'>
- <div class='playpause'><i class="fas fa-play"></i></div>
- </div>
- </div>
- <div id='musictitle'>
- <span class='marquee'>I'll see you there tomorrow cr ramdons</span>
- </div>
- </div>
- <audio id='musicsrc' loop src='https://dl.dropbox.com/scl/fi/2k057sh85w76p85ce48rp/01-I_ll-See-You-There-Tomorrow.mp3?rlkey=iq7rmm38nqj1eowvs7sn5uldv&st=xpspb0tt&dl=0.mp3'></audio>
- <script>
- document.querySelector('.playpause').addEventListener('click', playpause);
- function playpause(){
- if(document.querySelector('.playpause').innerHTML == '<i class="fas fa-play"></i>'){
- document.querySelector('#musicsrc').play();
- document.querySelector('.playpause').innerHTML = '<i class="fas fa-pause"></i>';
- } else{
- document.querySelector('#musicsrc').pause();
- document.querySelector('.playpause').innerHTML = '<i class="fas fa-play"></i>';
- }
- }
- </script>
Advertisement
Add Comment
Please, Sign In to add comment