5
私はこれをやりたいと思っています:-webkit-transform: translateX(300px)
左から原点を持つ代わりに、右からです。
-webkit-transform-origin: 100% 100%
、さらにtop right
を試しましたが、影響はありませんでした。CSS3トランスフォーム:translateXと同等のもの
これを行う方法はありますか? CSSの力で
私はこれをやりたいと思っています:-webkit-transform: translateX(300px)
左から原点を持つ代わりに、右からです。
-webkit-transform-origin: 100% 100%
、さらにtop right
を試しましたが、影響はありませんでした。CSS3トランスフォーム:translateXと同等のもの
これを行う方法はありますか? CSSの力で
:
body {
padding: 0;
margin: 0;
}
#page {
position: absolute;
width: 100%;
height: 100%;
background-color: black;
z-index:2;
right:0;
}
#left_drawer {
background-color: #222222;
position: absolute;
top: 0;
right: 0;
width: 300px;
height: 100%;
z-index: 1;
}
#toggle {
width: 50px;
height: 50px;
background-color: red;
float: right;
}
.open_drawer {
-webkit-animation: open_drawer 300ms ease-in-out;
-webkit-animation-fill-mode: forwards;
-webkit-transform: translateX(0);
}
@-webkit-keyframes open_drawer {
to {
-webkit-transform: translateX(-300px);
}
}
これは、右サイドからのスライドになります。 Fiddle.