CSS transform is not working in Edge

后端 未结 3 721
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-11 18:03

I am stuck at the following problem.

On this site that I created, I have a gallery which is located on the bottom of the page. If I hover over the thumbs, they fly a

相关标签:
3条回答
  • 2021-01-11 18:44

    Try do to this,

    Your gallery images using the fancybox API.SO there is option for change the animation types in fancybox.js.

    Reference:http://fancybox.net/api

    You need to go fancybox js file,find 'transitionIn, transitionOut' change to effect of The transition type. Can be set to 'elastic', 'fade' or 'none'.

    According to the windows all browsers will be fine.

    0 讨论(0)
  • 2021-01-11 18:47

    Ed. by another user: This answer does not apply to the Microsoft Edge browser.

    You need to write the standard transition and transform properties, and then the -ms prefix for microsoft internet explorer:

     .selector {
         -webkit-transform: scale(); /* android, safari, chrome */
         -moz-transform: scale(); /* old firefox */
         -o-transform: scale(); /* old opera */
         -ms-transform: scale(); /* old IE */
         transform: scale(); /*standard */
      }
    

    The same in transition property. Your solution is to write the standard.

    0 讨论(0)
  • 2021-01-11 19:01

    Few months late on this, but I believe I just encountered this same bug and found a solution. It seems like Microsoft Edge 13 has a problem interpreting some normally acceptable values for transform-origin. Specifically for me, it was ignoring the value right center, but working fine with top left, leading me to believe the center value (which I see in your example code) might be the issue.

    The fix for me was to use percentage values, so transform-origin: center bottom would become transform-origin: 50% 100%. Hope this helps anyone else who encounters this issue.

    Note that despite the top-voted answer suggesting the ms- prefix, this question is about the recent MS Edge browser, and that prefix has not been required since Internet Explorer 9 for the transform property (per caniuse.com).

    0 讨论(0)
提交回复
热议问题