CSS3 flexible/responsive Flip card loses back face at end of transform -


similar few other examples of flip cards: similar example 1

however answer ensure no background on containing card, , specified on front , face of card. not work example, due fact face text on it, not occupy same height picture on front.

i have had working correctly, after refresh of page, returns being broken again.

my code

.flipper{             //transform: perspective(1000px);             transform-style: preserve-3d;             position: relative;             width: 100%;             min-height: 345px;             transition: 0.6s;             background-color: rgb(242,245,245);             box-shadow: 1px 2px 20px rgba(255, 255, 255, 0.6) inset, 1px 2px 5px 1px rgba(0, 0, 0, 0.5);         } 

i have yet start cross-browser testing on this, sort of usable(non animated) support looking at?

i realise similar others questions, case should differ enough in terms of not declaring fixed height on card, , background required applied on card opposed faces

ok took @ , made tweaks can see on jsfiddle.

http://jsfiddle.net/nsuzb/1/

mainly removed background-color , min-height on flipper , set lightblue color on front , faces.

.flipper{             //transform: perspective(1000px);             transform-style: preserve-3d;             position: relative;             width: 100%;             //min-height: 345px;             transition: 0.6s;             //background-color: rgb(242,245,245);             box-shadow: 1px 2px 20px rgba(255, 255, 255, 0.6) inset, 1px 2px 5px 1px rgba(0, 0, 0, 0.5);         }           .front, .back{         backface-visibility: hidden;         //transition: 0.6s;         transform-style: preserve-3d;         position: absolute;         top: 0;         left: 0;         width: 100%;         background: lightblue;     } 

let me know if going in right direction.


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -