<!DOCTYPE html>
<html lang="ko">
<head>
<title> 20_플래시 메뉴 </title>
<style>
.hide{
width: 0;
height: 0;
margin: 0;
padding: 0;
font-size: 0;
line-height: 0;
}
#nav{
width: 200px;
margin: 0 auto;
background-color: silver;
}
#nav>ul{
margin: 0;
padding: 0;
list-style: none;
}
#nav>ul>li>a{
text-decoration: none;
font-weight: bold;
color: black;
width: 200px;
height: 64px;
display: block;
text-indent: 30px;
background-image: url(../images/icons.png);
background-repeat: no-repeat;
background-position: right 0;
}
#nav>ul>li:nth-child(1)>a:hover{
background-color: hotpink;
}
#nav>ul>li:nth-child(2)>a:hover{
background-color: aqua;
}
#nav>ul>li:nth-child(3)>a:hover{
background-color: crimson;
}
#nav>ul>li:nth-child(4)>a:hover{
background-color: darkgreen;
}
#nav>ul>li>a:hover{
color:white;
font-size: 16px;
text-shadow: 2px 2px 2px black;
width: 300px;
box-shadow: 8px 5px 3px black;
border-radius: 0 30px 30px 0;
opacity: 0.5;
transition: width 0.5s ease;
}
#nav>ul>li:nth-child(2)>a{
background-position: right -66px;
}
#nav>ul>li:nth-child(3)>a{
background-position: right -462px;
}
#nav>ul>li:nth-child(4)>a{
background-position: right -528px;
}
</style>
</head>
<body>
<h1 class="hide"> 플래시 메뉴</h1>
<div id="nav">
<h2 class="hide">주요메뉴</h2>
<ul>
<li><a href="#">flicker </a></li>
<li><a href="#">twitter </a></li>
<li><a href="#">newsvine </a></li>
<li><a href="#">last.fm </a></li>
</ul>
</div>
</body>
</html>