Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
159 views
in Technique[技术] by (71.8m points)

css - Why can't i interact with the links on the backface?

1). "Link". I can't interact with the link/images on the backface of "follow us!" flip card on the bottom. (iv'e only used webkit). HELP :'(

2). Also when you move your cursor slowly towards the flip card, the card vibrates if your cursor's position isn't fixed. Unlike here: http://css3.bradshawenterprises.com/flip/

Trust me iv'e tried everything, and i'm just sick of this.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

To see both sides you need to use the CSS property and value, -webkit-transform-style: preserve3d on your div#flipthing.

Your cards are vibrating because the two faces are not aligned exactly on top of each other. When the card is flipping, your cursor enters the margins, or the back element which causes the vibrating, or the resetting of the animation.

Try setting your two <p> tags to be exactly the same, stacked on top of the each other:

div#flipthing { position: relative; }

div#flipthing p {
    position: absolute;
    top: 0;
    left: 0;
}

div#flipthing p:first-child {
    z-index: 10;
}

This will allow your first paragraph to be stacked on top of the second.

Additionally, for your back face, you should put the -webkit-transform and -webkit-backface-visibility on the paragraph instead of the nested table.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...