0

变换rotateY(180deg)是否有IE后备?需要一个3D翻转动画!

4

3 回答 3

2

我没有要测试的 IE8,但我认为这可能有效: (ie5.5+) filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);

http://msdn.microsoft.com/en-us/library/ms532972%28VS.85%29.aspx

IE 的矩阵过滤器可能是另一种选择:http: //msdn.microsoft.com/en-us/library/ms533014%28VS.85%29.aspx

当我在玩其他东西时,我从这个网站得到了答案:http: //snook.ca/archives/html_and_css/css-text-rotation

个人使用 IE6-8 时,最适合我的标签是 display: none ;P

于 2012-11-22T20:11:30.510 回答
0

我知道这个问题很老,但上周我遇到了同样的问题。你需要的是:

.flipHorizontal {
filter: "fliph";
}

更具体地说,如果你想在 y 轴上连续旋转它,我创建了一个 jquery 插件来使用:

**
 * jQuery Rotate On Axis In IE Plugin 1.0.0
 *
 * Copyright (c) 2014 Aryeh Citron
 *
 * Licensed under MIT: http://www.opensource.org/licenses/mit-license.php
 */


(function ($)
{
    $.fn.rotateOnAxisInIE = function (options)
    {
        var settings = $.extend(
        {
            spinSpeed: "slow",
        }, options);

        return this.each(function ()
        {
            var startingInterval;
            switch (settings.spinSpeed)
            {
                case "slow": startingInterval = 0.006; break;
                case "medium": startingInterval = 0.01; break;
                case "fast": startingInterval = 0.03; break;
                default: startingInterval = 0.01; break;
            }

            var image = this;
            var imageWidth = 1;
            var gettingSmaller = true;
            var fullRotation = true;
            var interval = startingInterval;
            var increment = startingInterval / 4;
            var refreshRateInMilliseconds = 35;

            setInterval(function ()
            {
                $(image).css("msTransform", "scaleX(" + imageWidth + ")");
                if (gettingSmaller)
                {
                    interval = interval + increment;
                    imageWidth = imageWidth - interval;
                }
                else
                {
                    interval = interval - increment;
                    imageWidth = imageWidth + interval;
                }

                if (imageWidth <= 0)
                {
                    gettingSmaller = false;
                    if ($(image).css("filter") == "")
                        $(image).css("filter", "fliph");
                    else
                        $(image).css("filter", "");

                    imageWidth = 0.01;
                }
                if (imageWidth >= 1)
                {
                    gettingSmaller = true;
                }

                if (gettingSmaller && interval < 0)
                    interval = 0;

            }, refreshRateInMilliseconds);
        });
    };
}(jQuery));

示例用法

$("#myImageId").rotateOnAxisInIE();

或者

$("#myImageId").rotateOnAxisInIE({ spinSpeed: "fast" });
于 2014-02-25T14:59:25.013 回答
-1

您将需要使用过滤器

#rotate {
 -ms-transform:rotateY(180deg); //IE9
}
于 2012-11-22T13:47:18.497 回答