supported by
|
|
How to style the <audio> tag's standard controls
by Peter Cooper
The <audio> tag is an easy way to include audio playback on a page. You can either include it 'headlessly' and control it via JavaScript, or pass along controls="controls" and see a set of default controls:
The default controls save you a lot of work if your design can tolerate them, but if you Google how to style them, everyone says "You can't!" But, it turns out, you can!
CSS filters are a way to apply various types of graphical effect to HTML elements using CSS and are supported by every major browser. So we can take our <audio> tag, colorize it using the sepia filter and then use hue-rotate and other filters to get the basic color scheme we want.
|
|
|
No comments:
Post a Comment