1.index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<link rel="stylesheet" href="css/index.css">
</head>
<body>
<div class="toolbar">
<a href="javascript:;" class="toolbar-item toolbar-item-weixin">
<span class="toolbar-layer"></span>
</a>
<a href="javascript:;" class="toolbar-item toolbar-item-feedback"></a>
<a href="javascript:;" class="toolbar-item toolbar-item-app">
<span class="toolbar-layer"></span>
</a>
<a href="javascript:;" class="toolbar-item toolbar-item-top"></a>
</div>
<script src="js/require.js" data-main="js/main"></script>
</body>
</html>
2.index.scss
.toolbar-layer {
position: absolute;
right: $toolbar-size;
bottom: 0;
width: 172px;
background-image: url(../img/toolbar.png);
background-repeat: no-repeat;
opacity: 0;
filter: alpha(opacity=0);
transform: scale(0.01);
}
.toolbar-item {
position: relative;
display: block;
width: $toolbar-size;
height: $toolbar-size;
background-image: url(../img/toolbar.png);
background-repeat: no-repeat;
margin-top: 1px;
&:hover{
.toolbar-layer{
opacity: 1;
filter: alpha(opacity=100);
transform: scale(1);
}
}
}