TUTORIAL : Hoverable Sidebar Buttons

Advertisement

TUTORIAL : Hoverable Sidebar Buttons


Untuk tutorial kali ni , korang boleh tengok contoh dia kat > PREVIEW <
Code dia dibawah ni

<style type="text/css">
#zatiSidenav a {
  position: absolute;
  left: -80px;
  transition: 0.3s;
  padding: 15px;
  width: 100px;
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 1.5px;
  color: #666;
  border-radius: 0 5px 5px 0;
}
#zatiSidenav a:hover {
  left: 0;
}
#nav1 {
  top: 20px;
  background-color: #E4DFD8;
}
#nav2 {
  top: 80px;
  background-color: #CCCCCA;
}
#nav3 {
  top: 140px;
  background-color: #F6EFEA;
}
#nav4 {
  top: 200px;
  background-color: #F3D4CA;
}
</style>
<div id="zatiSidenav" class="zatisidenav">
  <a href="LINK" id="nav1">Tajuk</a>
  <a href="LINK" id="nav2">Tajuk</a>
  <a href="LINK" id="nav3">Tajuk</a>
  <a href="LINK" id="nav4">Tajuk</a>
</div>
<div style="margin-left:80px;">
</div>

Macam biasa lah, color korang boleh tukar ikut kesukaan sendiri, dan Link , Tajuk korang tukar korang punya sendiri okay.
 

Post a Comment

0 Comments