CSS offset is slow

http://jsfiddle.net/egEq2/

.badge {
    -webkit-transform-style: preserve-3d;
    -webkit-perspective: 1000;
    position: relative;
}   
.back, .front {
    position: absolute;
    -webkit-backface-visibility: hidden;
    -webkit-transition: -webkit-transform 1s ease-in;
    width: 100%;
    height: 100%;   
}
.back {
    -webkit-transform: rotateY(180deg);
    overflow: hidden;
}   
.front {
}
.product-action {
    display: inline-block;
}   
.product-action:hover .back {   
    -webkit-transform: rotateY(0deg);
}
.product-action:hover .front {      
    -webkit-transform: rotateY(-180deg);
}​

... works, but flips too slowly, can I change the speed?

Also, can I somehow add width so that the flip looks like a board and not thin paper? :)

Thank!

+5
source share
1 answer

You have indicated the speed already:

-webkit-transition: -webkit-transform 1s ease-in;
                                      ^^

Change it to something like 0.3s: http://jsfiddle.net/egEq2/1/

+8
source

All Articles