Minimal audio player

Size
3,958 Kb
Views
8,096

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 Previews

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"); });
});
Minimal audio player - Script Codes
Minimal audio player - Script Codes
Home Page Home
Developer Mihovil Ilakovac
Username infomiho
Uploaded October 31, 2022
Rating 3
Size 3,958 Kb
Views 8,096
Do you need developer help for Minimal audio player?

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!

Mihovil Ilakovac (infomiho) Script Codes
Create amazing blog posts with AI!

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!