Minimal audio player
How do I make an minimal audio player?
What is a minimal audio player? How do you make a minimal audio player? This script and codes were developed by Mihovil Ilakovac on 31 October 2022, Monday.
Minimal audio player - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Minimal audio player</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel='stylesheet prefetch' href='http://netdna.bootstrapcdn.com/font-awesome/4.0.2/css/font-awesome.min.css'> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ @import url(https://fonts.googleapis.com/css?family=Droid+Sans);
body { color: #333; background: url("http://www.wallsave.com/wallpapers/1920x1080/nature-party/482441/nature-party-http-net-jpg-482441.jpg"); font-family: 'Droid Sans',sans-serif;
}
.container { min-width: 700px; width: 70%; margin: 20px auto; padding: 20px; background: #FFF; box-sizing: border-box; box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.25);
}
.container:after { content: "."; display: block; clear: both; visibility: hidden; line-height: 0; height: 0;
}
.container h2 { color: #FFF; background: #16a085; background: linear-gradient(to right, #1abc9c, #2ecc71); padding: 10px; border: 2px solid rgba(0, 0, 0, 0.25); transition: border-color 300ms;
}
.container h2:hover { transition: border-color 300ms; border-color: rgba(255, 255, 255, 0.25);
}
.container .active { box-shadow: 0 0 0 2px #EEE; background: #F7F7F7;
}
.play, .pause { float: left; padding: 20px; font-size: 2em; cursor: pointer;
}
.play:hover, .pause:hover { color: #555;
}
audio { display: none;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div class='container'> <h2> Macklemore - And We Danced <br> (Chris Wittig & Mike Myers Bootleg) </h2> <div class='play'> <i class='fa fa-play'></i> </div> <div class='active pause'> <i class='fa fa-pause'></i> </div> <audio> <source src='http://shrt.us.to/MuMED' type='audio/mp3'> </audio>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Minimal audio player - Script Codes CSS Codes
@import url(https://fonts.googleapis.com/css?family=Droid+Sans);
body { color: #333; background: url("http://www.wallsave.com/wallpapers/1920x1080/nature-party/482441/nature-party-http-net-jpg-482441.jpg"); font-family: 'Droid Sans',sans-serif;
}
.container { min-width: 700px; width: 70%; margin: 20px auto; padding: 20px; background: #FFF; box-sizing: border-box; box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.25);
}
.container:after { content: "."; display: block; clear: both; visibility: hidden; line-height: 0; height: 0;
}
.container h2 { color: #FFF; background: #16a085; background: linear-gradient(to right, #1abc9c, #2ecc71); padding: 10px; border: 2px solid rgba(0, 0, 0, 0.25); transition: border-color 300ms;
}
.container h2:hover { transition: border-color 300ms; border-color: rgba(255, 255, 255, 0.25);
}
.container .active { box-shadow: 0 0 0 2px #EEE; background: #F7F7F7;
}
.play, .pause { float: left; padding: 20px; font-size: 2em; cursor: pointer;
}
.play:hover, .pause:hover { color: #555;
}
audio { display: none;
}
Minimal audio player - Script Codes JS Codes
$(document).ready(function(){ var song = $("audio").get(0); $(".play").on("click",function(){ song.play(); $(this).addClass("active"); $(".pause").removeClass("active"); }); $(".pause").on("click",function(){ song.pause(); $(this).addClass("active"); $(".play").removeClass("active"); });
});
Developer | Mihovil Ilakovac |
Username | infomiho |
Uploaded | October 31, 2022 |
Rating | 3 |
Size | 3,958 Kb |
Views | 8,096 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
OE 7. zad | 2,854 Kb |
THE WAY to animate elements when in view | 3,509 Kb |
A Pen by Mihovil Ilakovac | 1,601 Kb |
Magic Wizard Concept | 3,853 Kb |
Internet speed checker - simple | 2,217 Kb |
OE 6. zad | 2,863 Kb |
LocalStorage Shopping App | 3,928 Kb |
OE 4. zad | 2,292 Kb |
OE 5. zad | 2,805 Kb |
An interesting marketing technique | 3,990 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
A Pen by Alex Bergin | Abergin | 3,347 Kb |
Shopping cart | Andiio | 6,581 Kb |
IbrahimJabbari-Effect21 | Ibrahimjabbari | 1,882 Kb |
Single element checkbox | Ivijaygupta | 1,996 Kb |
Ionic Infinite outside ion-content with ion-pane | Felquis | 3,117 Kb |
Siema - add pagination to prototype | Pawelgrzybek | 2,575 Kb |
Filtre ile Arama Kutusu - Search Box with Filter | AyhanALTINOK | 3,448 Kb |
Add This API | ThatGuySam | 2,848 Kb |
My three.js practice | Esambino | 3,203 Kb |
SVG Text Masking | JMChristensen | 2,141 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!