13
我試圖用做網頁轉換之間動畫的新AngularJS的方式,並希望合併的卡片翻轉(如http://jsfiddle.net/nicooprat/GDdtS/)AngularJS動畫卡翻蓋
body {
background: #ccc;
}
.flip {
-webkit-perspective: 800;
width: 400px;
height: 200px;
position: relative;
margin: 50px auto;
}
.flip .card.flipped {
-webkit-transform: rotatex(-180deg);
}
.flip .card {
width: 100%;
height: 100%;
-webkit-transform-style: preserve-3d;
-webkit-transition: 0.5s;
}
.flip .card .face {
width: 100%;
height: 100%;
position: absolute;
-webkit-backface-visibility: hidden ;
z-index: 2;
font-family: Georgia;
font-size: 3em;
text-align: center;
line-height: 200px;
}
.flip .card .front {
position: absolute;
z-index: 1;
background: black;
color: white;
cursor: pointer;
}
.flip .card .back {
-webkit-transform: rotatex(-180deg);
background: blue;
background: white;
color: black;
cursor: pointer;
}
我只是有點不確定如何更新該代碼使它與AngularJS一起工作以進行頁面轉換。
有什麼想法?
非常有幫助。謝謝,扎克。 – mrgnw
這太棒了。愛簡單。 –
這不錯...但是這似乎並沒有在Firefox中工作..如何獲得JSFiddle在Firefox上工作的例子? – whippits