CSS only audio player UI
How do I make an css only audio player ui?
Streaming audio player animation using modern CSS animations, transforms etc.. What is a css only audio player ui? How do you make a css only audio player ui? This script and codes were developed by Niels Oeltjen on 03 September 2022, Saturday.
CSS only audio player UI - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>CSS only audio player UI</title> <script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js" type="text/javascript"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.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! */ /* box model*/
* { -moz-box-sizing: border-box; box-sizing: border-box; box-sizing: border-box;
}
/* rotation */
@keyframes rotate { from {transform: rotate(0deg);} to {transform: rotate(360deg);}
}
@-moz-keyframes rotate { from {transform: rotate(0deg);} to {transform: rotate(360deg);}
}
@-ms-keyframes rotate { from {transform: rotate(0deg);} to {transform: rotate(360deg);}
}
@keyframes rotate { from {transform: rotate(0deg);} to {transform: rotate(360deg);}
}
/* pulse */
@keyframes pulse { 0% { opacity: 0; } 100% { opacity: 1; }
}
@-moz-keyframes pulse { 0% { opacity: 0; } 100% { opacity: 1; }
}
@-ms-keyframes pulse { 0% { opacity: 0; } 100% { opacity: 1; }
}
@keyframes pulse { 0% { opacity: 0; } 100% { opacity: 1; }
}
/* scale */
@keyframes scale { 0% { transform: scale(1.0); } 100% { transform: scale(1.2); }
}
@-moz-keyframes scale { 0% { transform: scale(1.0); } 100% { transform: scale(1.2); }
}
@-ms-keyframes scale { 0% { transform: scale(1.0); } 100% { transform: scale(1.2); }
}
@keyframes scale { 0% { transform: scale(1.0); } 100% { transform: scale(1.2); }
}
/* globals */
body { background-color: #E5DFDF;
}
.wrapper { position: relative; background-color: #E5DFDF; margin: 40px auto 0 auto; height: 480px; width: 320px;
}
.circle { /* Draw circles */ border-radius: 50%; -moz-border-radius: 50%; border-radius: 50%;
}
.animated { /* Smoother animations */ transform: translateZ(0);
}
/* tower */
.tower { position: absolute; top: 12.5%; width: 100%; margin: -20px 0 0 0;
}
.tower .signal { position: absolute; top: 0px; left: 50%; margin: 0 0 0 -15px;
}
.tower .signal .rings { width: 30px; height: 30px; border: 6px double #F2F0F0; animation: scale 1s infinite linear;
}
.tower .dot { margin: 10px auto 0 auto; width: 10px; height: 10px; background-color: #F2F0F0;
}
.tower .triangle { margin: -5px auto 0 auto; width: 0; height: 0; border-left: 10px solid transparent; border-right: 10px solid transparent; border-bottom: 30px solid #F2F0F0;
}
/* player */
.player { position: absolute; top: 50%; left: 50%; margin: -120px 0 0 -120px; height: 240px; width: 240px; background-color: #F2F0F0; cursor: pointer;
}
.player .triangle { position: absolute; top: 50%; left: 50%; width: 0; height: 0; margin: -15px 0 0 -10px; border-top: 20px solid transparent; border-left: 30px solid #4BEADE; border-bottom: 20px solid transparent;
}
.player:hover .triangle { border-top: 20px solid transparent; border-left: 30px solid #46CCBF; border-bottom: 20px solid transparent;
}
.player .buffering { position: absolute; top: 5px; left: 5px; width: 230px; height: 230px; border-right: 2px solid #D3D1D1; border-bottom: 2px solid #D3D1D1; border-left: 2px solid #F2F0F0; border-top: 2px solid #F2F0F0; animation: rotate 3s infinite linear;
}
/* text */
.text { position: absolute; top: 85%; text-align: center; text-transform: uppercase; color: #C1B8B8; font-family: "Helvetica Neue", Helvetica, sans-serif; font-size: 14px; width: 100%; animation: pulse 1.3s infinite;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div class="wrapper">
<div class="tower"> <div class="signal"> <div class="rings circle animated"></div> </div> <div class="dot circle"></div> <div class="triangle"></div>
</div>
<div class="player circle"> <div class="buffering circle animated"></div> <div class="triangle"></div>
</div>
<div class="text"> <div class="pulsing animated">Buffering</div>
</div>
</div>
</body>
</html>
CSS only audio player UI - Script Codes CSS Codes
/* box model*/
* { -moz-box-sizing: border-box; box-sizing: border-box; box-sizing: border-box;
}
/* rotation */
@keyframes rotate { from {transform: rotate(0deg);} to {transform: rotate(360deg);}
}
@-moz-keyframes rotate { from {transform: rotate(0deg);} to {transform: rotate(360deg);}
}
@-ms-keyframes rotate { from {transform: rotate(0deg);} to {transform: rotate(360deg);}
}
@keyframes rotate { from {transform: rotate(0deg);} to {transform: rotate(360deg);}
}
/* pulse */
@keyframes pulse { 0% { opacity: 0; } 100% { opacity: 1; }
}
@-moz-keyframes pulse { 0% { opacity: 0; } 100% { opacity: 1; }
}
@-ms-keyframes pulse { 0% { opacity: 0; } 100% { opacity: 1; }
}
@keyframes pulse { 0% { opacity: 0; } 100% { opacity: 1; }
}
/* scale */
@keyframes scale { 0% { transform: scale(1.0); } 100% { transform: scale(1.2); }
}
@-moz-keyframes scale { 0% { transform: scale(1.0); } 100% { transform: scale(1.2); }
}
@-ms-keyframes scale { 0% { transform: scale(1.0); } 100% { transform: scale(1.2); }
}
@keyframes scale { 0% { transform: scale(1.0); } 100% { transform: scale(1.2); }
}
/* globals */
body { background-color: #E5DFDF;
}
.wrapper { position: relative; background-color: #E5DFDF; margin: 40px auto 0 auto; height: 480px; width: 320px;
}
.circle { /* Draw circles */ border-radius: 50%; -moz-border-radius: 50%; border-radius: 50%;
}
.animated { /* Smoother animations */ transform: translateZ(0);
}
/* tower */
.tower { position: absolute; top: 12.5%; width: 100%; margin: -20px 0 0 0;
}
.tower .signal { position: absolute; top: 0px; left: 50%; margin: 0 0 0 -15px;
}
.tower .signal .rings { width: 30px; height: 30px; border: 6px double #F2F0F0; animation: scale 1s infinite linear;
}
.tower .dot { margin: 10px auto 0 auto; width: 10px; height: 10px; background-color: #F2F0F0;
}
.tower .triangle { margin: -5px auto 0 auto; width: 0; height: 0; border-left: 10px solid transparent; border-right: 10px solid transparent; border-bottom: 30px solid #F2F0F0;
}
/* player */
.player { position: absolute; top: 50%; left: 50%; margin: -120px 0 0 -120px; height: 240px; width: 240px; background-color: #F2F0F0; cursor: pointer;
}
.player .triangle { position: absolute; top: 50%; left: 50%; width: 0; height: 0; margin: -15px 0 0 -10px; border-top: 20px solid transparent; border-left: 30px solid #4BEADE; border-bottom: 20px solid transparent;
}
.player:hover .triangle { border-top: 20px solid transparent; border-left: 30px solid #46CCBF; border-bottom: 20px solid transparent;
}
.player .buffering { position: absolute; top: 5px; left: 5px; width: 230px; height: 230px; border-right: 2px solid #D3D1D1; border-bottom: 2px solid #D3D1D1; border-left: 2px solid #F2F0F0; border-top: 2px solid #F2F0F0; animation: rotate 3s infinite linear;
}
/* text */
.text { position: absolute; top: 85%; text-align: center; text-transform: uppercase; color: #C1B8B8; font-family: "Helvetica Neue", Helvetica, sans-serif; font-size: 14px; width: 100%; animation: pulse 1.3s infinite;
}
Developer | Niels Oeltjen |
Username | NielsOeltjen |
Uploaded | September 03, 2022 |
Rating | 4.5 |
Size | 3,325 Kb |
Views | 58,696 |
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 |
Rounded tabs | 1,899 Kb |
Loading animation | 2,298 Kb |
Sweet star loader | 2,228 Kb |
Animated background colours | 1,979 Kb |
Emoji selectors | 2,253 Kb |
Another nice loader | 2,267 Kb |
Nice outline hover effect | 2,237 Kb |
Animated css matrix type | 3,484 Kb |
Simple spinner | 1,810 Kb |
Layout states using jQuery and Data Attributes | 3,078 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 |
CSS Colors | Alexpate | 2,232 Kb |
Flickering Light Text Effect | Mandymichael | 3,315 Kb |
Scroll effect with text with help from Skrollr | Luxonglassing | 2,935 Kb |
Sass Radar | Jlong | 6,887 Kb |
Simple Login Form | JoshBlackwood | 4,418 Kb |
Iron Man SVG Loading Animation | Andythayer | 3,069 Kb |
Banner Ad | Raquellorenzana | 4,172 Kb |
Bezier Animation with straight paths | Rhernando | 2,087 Kb |
Expert Help | SinceSidSlid | 4,064 Kb |
Contact | GanNichiHa | 2,514 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!