相关疑难解决方法(0)

想要在旋转时显示元素的厚度

我通过CSS将硬币沿Y轴旋转90度.有没有办法让我可以在旋转后显示硬币的厚度,我认为在硬币沿Y轴旋转后我可以缩放,但这似乎不起作用.如果可能的话,请建议一些方法来做同样的事情.link_on_js也是如此.请使用webkit浏览器打开链接.

CSS

.coin {
    display: block;
    background: url("url-to-image-of-coin.jpg");
    background-size: 100% 100%;
    width: 100px;
    height: 100px;
    margin: auto;
    border-radius: 100%;
    transition: all 500ms linear;
}

.flip {
    transform: rotateY(180deg);
}
Run Code Online (Sandbox Code Playgroud)

HTML

<div class="coin"></div>
Run Code Online (Sandbox Code Playgroud)

jQuery的

$('.coin').click(function() {
    $(this).toggleClass('flip');
});
Run Code Online (Sandbox Code Playgroud)

小提琴

http://jsfiddle.net/7EtLu/22/

jquery rotation css3 css-transitions jquery-animate

14
推荐指数
1
解决办法
6728
查看次数

标签 统计

css-transitions ×1

css3 ×1

jquery ×1

jquery-animate ×1

rotation ×1