在這裏很像這個問題(How would I reverse a css transition property width?)我想改變我的過渡方式。HTML反向過渡方向
不幸的是它不適合我!這可能是我的代碼稍微複雜一點。任何人都可以借我一隻手嗎?
的jsfiddle = http://jsfiddle.net/cPUuL/4/
CSS:
.Imgpad
{
padding-top:2px;
padding-left:2px;
padding-bottom:3px;
padding-right:2px;
position:absolute;
z-index:1;
}
.hidetext {
float:right;
display:none;
margin:0;
padding:0;
color:#CC0000;
font-size:30px;
font-family:"Juice ITC";
}
.Rightbox
{
width:100px;
height:100px;
background:black;
transition: left 2s, width 2s;
position:absolute;
}
.Rightbox:hover{
width:250px;
}
.Rightbox:hover > .hidetext {
display:block;
}
HTML:
</div>
<div class="content-wrapper">
<div id="Divpos5">
<div class="Rightbox">
<img class="Imgpad" src="http://b.vimeocdn.com/ps/588/58832_300.jpg" height="96" width="96" alt="Faye">
<p class="hidetext">Raven Faye<br><font color="#9900CC"></font>~The Sorceress
</div>
</div>
感謝 -Asteria
你能不能解釋一下什麼是不工作的。 –
我想讓它走到左邊,而不是正確的,就像我在爲Tafe構建的網站上一樣我想在文本的任意一邊有兩個這樣的文字 – Asteria
好吧,目前它並不實際移動到左邊或到右邊......還有你的html充滿了錯誤。 –