課程
/前端開發(fā)
/JavaScript
/側(cè)欄工具條開發(fā)
老師求代碼
2015-06-28
源自:側(cè)欄工具條開發(fā) 1-1
正在回答
.d{
css代碼
position: fixed;
left: 50%;
bottom: 5px;
display: block;
}
.a{
background-position: 0 -798px;
.toolbar-weixin{
margin-top: 1px;
transition: 1s;
width: 52px;
height: 52px;
background-image: url(toolbar.png);
.toolbar-weixin:hover{
background-repeat: no-repeat;
background-position: 0 -860px;
.toolbar-layer1{
position: absolute;
left: 0px;
bottom: 160px;
opacity: 0;
background-position: 0 0;
transform-origin: 95% 95%;
transition:1s;?
.toolbar-weixin:hover .toolbar-layer1{
left: -172px;
bottom: 155px;
width: 172px;
height: 212px;
opacity: 1;
.toolbar-feedback{
background-position: 0 -426px;
.toolbar-feedback:hover{
background-position: 0 -488px;
.toolbar-app{
background-position: 0 -550px;
.toolbar-app:hover{
background-position: 0 -612px;
.toolbar-layer2{
bottom: 52px;
background-position: 0 -222px;
.toolbar-app:hover .toolbar-layer2{
bottom: 0px;
height: 194px;
.toolbar-top{
background-position: 0 -674px;
.toolbar-top:hover{
background-position: 0 -736px;
==================
html
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<link rel="stylesheet" ?href="工具欄.css">
<title>工具條</title>
</head>
<body>
<div class="d">
<a href="" ?class="toolbar-weixin a" onMouseOver="tt1()">
<span class="toolbar-layer1" ?id="t1"></span>
</a>?
<a href="" ?class="toolbar-feedback"></a>?
<a href="" ?class="toolbar-app">
<span class="toolbar-layer2" ?id="t2"></span>
</a>
<a href="" ?class="toolbar-top"></a>?
</div>
</body>
</html>
舉報(bào)
帶動(dòng)畫效果的工具條,掌握如何用CSS3完成簡(jiǎn)單的動(dòng)畫效果
1 回答求源代碼老師
2 回答老師在不在?有沒有代碼?把代碼放上來唄^^
1 回答老師是用什么編寫代碼的
3 回答按照老師代碼實(shí)踐發(fā)現(xiàn)scrollto undefiined
1 回答isEqual() undefind是什么情況啊,我按照老師個(gè)代碼敲的
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購(gòu)課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2015-12-22
.d{
css代碼
position: fixed;
left: 50%;
bottom: 5px;
display: block;
}
.a{
background-position: 0 -798px;
}
.toolbar-weixin{
margin-top: 1px;
transition: 1s;
display: block;
width: 52px;
height: 52px;
background-image: url(toolbar.png);
}
.toolbar-weixin:hover{
margin-top: 1px;
transition: 1s;
display: block;
width: 52px;
height: 52px;
background-image: url(toolbar.png);
background-repeat: no-repeat;
background-position: 0 -860px;
}
.toolbar-layer1{
position: absolute;
left: 0px;
bottom: 160px;
width: 52px;
height: 52px;
opacity: 0;
background-image: url(toolbar.png);
background-repeat: no-repeat;
background-position: 0 0;
transform-origin: 95% 95%;
transition:1s;?
}
.toolbar-weixin:hover .toolbar-layer1{
position: absolute;
left: -172px;
bottom: 155px;
width: 172px;
height: 212px;
opacity: 1;
background-image: url(toolbar.png);
background-repeat: no-repeat;
background-position: 0 0;
transform-origin: 95% 95%;
transition:1s;?
}
.toolbar-feedback{
margin-top: 1px;
transition: 1s;
display: block;
width: 52px;
height: 52px;
background-image: url(toolbar.png);
background-repeat: no-repeat;
background-position: 0 -426px;
}
.toolbar-feedback:hover{
margin-top: 1px;
transition: 1s;
display: block;
width: 52px;
height: 52px;
background-image: url(toolbar.png);
background-repeat: no-repeat;
background-position: 0 -488px;
}
.toolbar-app{
margin-top: 1px;
transition: 1s;
display: block;
width: 52px;
height: 52px;
background-image: url(toolbar.png);
background-repeat: no-repeat;
background-position: 0 -550px;
}
.toolbar-app:hover{
margin-top: 1px;
transition: 1s;
display: block;
width: 52px;
height: 52px;
background-image: url(toolbar.png);
background-repeat: no-repeat;
background-position: 0 -612px;
}
.toolbar-layer2{
position: absolute;
left: -172px;
bottom: 52px;
width: 52px;
height: 52px;
opacity: 0;
background-image: url(toolbar.png);
background-repeat: no-repeat;
background-position: 0 -222px;
transform-origin: 95% 95%;
transition:1s;?
}
.toolbar-app:hover .toolbar-layer2{
position: absolute;
left: -172px;
bottom: 0px;
width: 172px;
height: 194px;
opacity: 1;
background-image: url(toolbar.png);
background-repeat: no-repeat;
background-position: 0 -222px;
transform-origin: 95% 95%;
transition:1s;?
}
.toolbar-top{
margin-top: 1px;
transition: 1s;
display: block;
width: 52px;
height: 52px;
background-image: url(toolbar.png);
background-repeat: no-repeat;
background-position: 0 -674px;
}
.toolbar-top:hover{
margin-top: 1px;
transition: 1s;
display: block;
width: 52px;
height: 52px;
background-image: url(toolbar.png);
background-repeat: no-repeat;
background-position: 0 -736px;
}
==================
html
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<link rel="stylesheet" ?href="工具欄.css">
<title>工具條</title>
</head>
<body>
<div class="d">
<a href="" ?class="toolbar-weixin a" onMouseOver="tt1()">
<span class="toolbar-layer1" ?id="t1"></span>
</a>?
<a href="" ?class="toolbar-feedback"></a>?
<a href="" ?class="toolbar-app">
<span class="toolbar-layer2" ?id="t2"></span>
</a>
<a href="" ?class="toolbar-top"></a>?
</div>
</body>
</html>