2012-01-04 11:06:26 +00:00
/ * The properties in this rule are only necessary for the 'flip' transition .
* We need specify the perspective to create a projection matrix . This will add
* some depth as the element flips . The depth number represents the distance of
* the viewer from the z-plane . According to the CSS3 spec , 1000 is a moderate
* value .
* /
2012-01-04 16:53:10 +00:00
. ui-supported-csstransform3d . viewport-flip {
2012-01-04 11:06:26 +00:00
-webkit-perspective : 1000 ;
-moz-perspective : 1000 ;
position : absolute ;
}
2012-01-04 16:53:10 +00:00
. ui-supported-csstransform3d . flip {
2012-01-04 11:06:26 +00:00
-webkit-backface-visibility : hidden ;
-webkit-transform : translateX ( 0 ) ; /* Needed to work around an iOS 3.1 bug that causes listview thumbs to disappear when -webkit-visibility:hidden is used. */
-moz-backface-visibility : hidden ;
-moz-transform : translateX ( 0 ) ; /* Needed to work around an iOS 3.1 bug that causes listview thumbs to disappear when -webkit-visibility:hidden is used. */
}
2012-01-04 16:53:10 +00:00
. ui-supported-csstransform3d . flip . out {
2012-01-05 07:55:45 +00:00
-webkit-transform : rotateY ( -90deg ) scale ( . 9 ) ;
2012-01-04 11:06:26 +00:00
-webkit-animation-name : flipouttoleft ;
2012-01-05 07:55:45 +00:00
-moz-transform : rotateY ( -90deg ) scale ( . 9 ) ;
2012-01-04 11:06:26 +00:00
-moz-animation-name : flipouttoleft ;
}
2012-01-04 16:53:10 +00:00
. ui-supported-csstransform3d . flip . in {
2012-01-05 07:55:45 +00:00
-webkit-animation-name : flipintoright ;
-moz-animation-name : flipintoright ;
2012-01-04 11:06:26 +00:00
}
2012-01-04 16:53:10 +00:00
. ui-supported-csstransform3d . flip . out . reverse {
2012-01-05 07:55:45 +00:00
-webkit-transform : rotateY ( 90deg ) scale ( . 9 ) ;
2012-01-04 11:06:26 +00:00
-webkit-animation-name : flipouttoright ;
2012-01-05 07:55:45 +00:00
-moz-transform : rotateY ( 90deg ) scale ( . 9 ) ;
2012-01-04 11:06:26 +00:00
-moz-animation-name : flipouttoright ;
}
2012-01-04 16:53:10 +00:00
. ui-supported-csstransform3d . flip . in . reverse {
2012-01-05 07:55:45 +00:00
-webkit-animation-name : flipintoleft ;
-moz-animation-name : flipintoleft ;
2012-01-04 11:06:26 +00:00
}
2012-01-04 16:53:10 +00:00
2012-01-04 11:06:26 +00:00
@ -webkit-keyframes flipouttoleft {
from { -webkit- transform : rotateY ( 0 ) ; }
2012-01-05 07:55:45 +00:00
to { -webkit- transform : rotateY ( -90 deg ) scale ( .9 ) ; }
2012-01-04 11:06:26 +00:00
}
@ -moz-keyframes flipouttoleft {
from { -moz- transform : rotateY ( 0 ) ; }
2012-01-05 07:55:45 +00:00
to { -moz- transform : rotateY ( -90 deg ) scale ( .9 ) ; }
2012-01-04 11:06:26 +00:00
}
@ -webkit-keyframes flipouttoright {
from { -webkit- transform : rotateY ( 0 ) ; }
2012-01-05 07:55:45 +00:00
to { -webkit- transform : rotateY ( 90 deg ) scale ( .9 ) ; }
2012-01-04 11:06:26 +00:00
}
@ -moz-keyframes flipouttoright {
2012-01-05 07:55:45 +00:00
from { -moz- transform : rotateY ( 0 ) ; }
to { -moz- transform : rotateY ( 90 deg ) scale ( .9 ) ; }
}
@ -webkit-keyframes flipintoleft {
from { -webkit- transform : rotateY ( -90 deg ) scale ( .9 ) ; }
to { -webkit- transform : rotateY ( 0 ) ; }
2012-01-04 23:31:28 +00:00
}
2012-01-05 07:55:45 +00:00
@ -moz-keyframes flipintoleft {
from { -moz- transform : rotateY ( -90 deg ) scale ( .9 ) ; }
to { -moz- transform : rotateY ( 0 ) ; }
}
@ -webkit-keyframes flipintoright {
from { -webkit- transform : rotateY ( 90 deg ) scale ( .9 ) ; }
to { -webkit- transform : rotateY ( 0 ) ; }
}
@ -moz-keyframes flipintoright {
from { -moz- transform : rotateY ( 90 deg ) scale ( .9 ) ; }
to { -moz- transform : rotateY ( 0 ) ; }
}
2012-01-04 23:31:28 +00:00
/* for non-3d supporting browsers, fallback to fade */
. ui-unsupported-csstransform3d . flip . out ,
. ui-unsupported-csstransform3d . flip . out . reverse {
z-index : 0 ;
opacity : 0 ;
-webkit-animation-duration : 150ms ;
-webkit-animation-name : fadeout ;
-moz-animation-duration : 150ms ;
-moz-animation-name : fadeout ;
}
. ui-unsupported-csstransform3d . flip . in ,
. ui-unsupported-csstransform3d . flip . in . reverse {
opacity : 1 ;
z-index : 10 ;
-webkit-animation-duration : 300ms ;
-webkit-animation-name : fadein ;
-moz-animation-duration : 300ms ;
-moz-animation-name : fadein ;
}