css3 - Custom jQuery Mobile transition using -webkit-mask -


i trying make custom jquery mobile transition using -webkit-mask transition.

here how i've set animation function:

.mask.in {     -webkit-mask-position: 0 0;     -webkit-animation-name:maskinfromright; } .mask.out{     -webkit-mask-position: -100% 0;     -webkit-animation-name:maskouttoleft; } .mask.in.reverse{     -webkit-mask-position: 0 0;     -webkit-animation-name:maskinfromleft; } .mask.out.reverse{     -webkit-mask-position: 100% 0;     -webkit-animation-name:maskouttoright; }   @-webkit-keyframes maskinfromright {     0% { -webkit-mask-position:100% 0; }     100% { -webkit-mask-position:0 0; } }  @-webkit-keyframes maskouttoleft {     0% { -webkit-mask-position:0 0; }     100% { -webkit-mask-position:-100% 0; } }  @-webkit-keyframes maskinfromleft {     0% { -webkit-mask-position:-100% 0; }     100% { -webkit-mask-position:0 0; } }  @-webkit-keyframes maskoutfromright {     0% { -webkit-mask-position:0 0; }     100% { -webkit-mask-position:100% 0; } }  

based on example provide:

http://jquerymobile.com/demos/1.1.1/docs/pages/page-customtransitions.html

right it's not using custom animation , next page appearing.

so wondering. i've moved away webkit mask , went css3 clip transition.

.superclip.in, .superclip.out{   -webkit-animation-timing-function: linear;   -webkit-animation-duration: 350ms; }  .superclip.in {         clip: rect(0px, 2048px, 1536px, 0px);         -webkit-animation-name: superclipinright; } @-webkit-keyframes superclipinright {    { clip: rect(0px, 2048px, 1536px, 2048px); }         { clip: rect(0px, 2048px, 1536px, 0px); } }  .superclip.out {         clip: rect(0px, 0px, 1536px, 0px);    -webkit-animation-name: superclipoutleft; } @-webkit-keyframes superclipoutleft {    {clip: rect(0px, 2048px, 1536px, 0px); }     { clip: rect(0px, 0px, 1536px, 0px); } }  .superclip.in.reverse {         clip: rect(0px, 2048px, 1536px, 0px);         -webkit-animation-name: superclipinrightrev; } @-webkit-keyframes superclipinrightrev {    { clip: rect(0px, 0px, 1536px, 0px); }         { clip: rect(0px, 2048px, 1536px, 0px); } }  .superclip.out.reverse {         clip: rect(0px, 2048px, 1536px, 2048px);    -webkit-animation-name: superclipoutleftrev; } @-webkit-keyframes superclipoutleftrev {    {clip: rect(0px, 2048px, 1536px, 0px); }     { clip: rect(0px, 2048px, 1536px, 2048px); } } 

Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -