본문 바로가기

심플한 오디오 플레이어 HTML5 Audio CSS style

반응형

소스

<!DOCTYPE html>
<html lang="ko" >
<head>
<meta charset="UTF-8">
<title>HTML5 Audio CSS style</title>
<style>
audio {
  -webkit-transition: all 0.5s linear;
  -moz-transition: all 0.5s linear;
  -o-transition: all 0.5s linear;
  transition: all 0.5s linear;
  -moz-box-shadow: 2px 2px 4px 0px #006773;
  -webkit-box-shadow: 2px 2px 4px 0px #006773;
  box-shadow: 2px 2px 4px 0px #006773;
  -moz-border-radius: 7px 7px 7px 7px;
  -webkit-border-radius: 7px 7px 7px 7px;
  border-radius: 7px 7px 7px 7px;
  background-color: #f2f2f2;
  width:400px;
}
audio:hover, audio:focus, audio:active {
  -webkit-box-shadow: 15px 15px 20px rgba(0, 0, 0, 0.4);
  -moz-box-shadow: 15px 15px 20px rgba(0, 0, 0, 0.4);
  box-shadow: 15px 15px 20px rgba(0, 0, 0, 0.4);
  -webkit-transform: scale(1.05);
  -moz-transform: scale(1.05);
  transform: scale(1.05);
  background-color: #f2f2f2;
}
</style>
</head>
<body>
<audio controls>
  <source src="음악파일주소" type="audio/mpeg">
</audio>
</body>
</html>
반응형

댓글


Copyright ⓒ SmartWeb All rights reserved.