我试图创建一个带有框拇指的下载页面,当鼠标在拇指上时,描述文本来自右侧
我做了几乎所有我仍然要格式化的事情
有什么建议吗?
tnx
这是代码:
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
div.div0 {
background:url('t_k1.png');
display:block;
width:100px;
height:100px;
position:relative;
}
div.div1 {
opacity:0;
display:block;
left:100px;
width:100px;
height:100px;
background:#999;
position:relative;
text-align:center;
vertical-align:-50px;
}
div.div0:hover div.div1 {
animation:mymove 2s forwards;
-moz-animation:mymove 2s forwards;
-webkit-animation:mymove 2s forwards;
-o-animation:mymove 2s forwards;
}
@keyframes mymove {
from {left:100px; opacity:0;}
to {left:0px; opacity:0.8;}
}
@-moz-keyframes mymove /*Firefox*/ {
from {left:100x; opacity:0;}
to {left:0px; opacity:0.8;}
}
@-webkit-keyframes mymove /*Safari and Chrome*/ {
from {left:100px; opacity:0;}
to {left:0px; opacity:0.8;}
}
@-o-keyframes mymove /*Opera*/ {
from {left:100px; opacity:0;}
30% {opacity:0.2;}
to {left:0px; opacity:0.8;}
}
</style>
</head>
<body>
<div style="display:block; left:100px; top:100px; width:100px; height:100px; position:absolute;">
<div class="div0">
<div class="div1"><br /><br /><a href="#">prova</a></div>
</div></div>
</body>
</html>