You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by GitBox <gi...@apache.org> on 2019/08/17 07:38:17 UTC

[GitHub] [incubator-weex] kaypler opened a new issue #2834: [Android] css property transition didn't work in Android while it's fine in ios where weex version is 0.24.0

kaypler opened a new issue #2834: [Android] css property transition didn't  work in Android while it's fine in ios where weex version is 0.24.0
URL: https://github.com/apache/incubator-weex/issues/2834
 
 
   `.mask{
           position: fixed;
           top: 0;
           bottom: 0;
           left: -750px;
           right: 750px;
           background-color: rgba(0,0,0,0);
           transition-property: background-color;
           transition-duration: 0.3s;
           transition-delay: 0s;
           transition-timing-function: ease-in;
       }
       .box{
           background-color: #FFF;
           width: 750px;
           position: absolute;
           bottom: -16wx;
           /* height: 0; */
           border-top-left-radius: 16wx;
           border-top-right-radius: 16wx;
           overflow: hidden;
           transition-property: height;
           transition-duration: 0.3s;
           transition-delay: 0s;
           transition-timing-function: ease-in-out;
       }`
   
   `watch: {
           show(newVal) {
               if (newVal) {
                   this.maskStyle = {
                       left: 0,
                       right: 0,
                       backgroundColor: 'rgba(0,0,0,0.6)'
                   }
                   this.boxStyle = {
                       height: this.wrapHeight
                   }
               } else {
                   this.maskStyle = {
                       backgroundColor: 'rgba(0,0,0,0)'
                   }
                   this.boxStyle = {
                       height: 0
                   }
               }
           }
       }`
   
   when user click the button, I want a box div with a mask to  slip into the view from the bottom of the screen, and has some animation effects, such as opacity change.
   It worked well in ios, but the box cann't show up in Android.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services