0
这里是为了说明http://codepen.io/anon/pen/GynKp只有右手边变换在Chrome
的HTML
<section>
<a href="#" class="btn"><span>Text<br />Line Two</span></text>
</section>
CSS
section{
width: 300px;
margin: 30px auto;
text-align: center;
border: 1px solid #ccc;
}
section a.btn{
margin: 30px auto;
display: block;
background-image:url('http://dummyimage.com/200x100/000/fff.png&text=+');
height: 100px;
width: 200px;
color: #fff;
line-height: 100px;
-webkit-transition: all 0.4s ease-out;
-moz-transition: all 0.4s ease-out;
-ms-transition: all 0.4s ease-out;
-o-transition: all 0.4s ease-out;
transition: all 0.4s ease-out;
}
section a.btn span{
display: inline-block;
vertical-align: middle;
line-height: normal;
-webkit-transition: all 1s ease-out;
-moz-transition: all 1s ease-out;
-ms-transition: all 1s ease-out;
-o-transition: all 1s ease-out;
transition: all 1s ease-out;
}
section:hover a.btn{
-webkit-transform: rotateY(180deg);
-moz-transform: rotateY(180deg);
-o-transform: rotateY(180deg);
transform: rotateY(180deg);
}
/* This reverses the text back to LTR */
section:hover a.btn span{
-webkit-transform: rotateY(-180deg);
-moz-transform: rotateY(-180deg);
-o-transform: rotateY(-180deg);
transform: rotateY(-180deg);
}
的问题codepen是在Chrome只a的右侧在变换后可点击。
如何使整个黑色链接可点击?
它适用于我虽然.. – Siyah 2014-09-20 11:22:44