首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Flex缓解效果中,easeOutExpo的等效性是什么?

在Flex缓解效果中,easeOutExpo的等效性是什么?
EN

Stack Overflow用户
提问于 2012-10-29 18:12:26
回答 1查看 109关注 0票数 0

在Tweener中,出现了"easeOutExpo“类型的转换。在Flex宽松类中,什么是等价的--这里列出了1?

More Context

下面是Tweener代码:

代码语言:javascript
复制
Tweener.addTween(container, {width:w, height:h, time:0.25, transition:"easeOutExpo"});

下面是我希望具有easeOutExpo转换类型的实例:

代码语言:javascript
复制
        <s:Scale 
                 scaleYFrom=".5" 
                  scaleYTo="1"
                  scaleXFrom=".5"
                  scaleXTo="1"
                  duration="250"
                  autoCenterTransform="true"
                  applyChangesPostLayout="true"
                  />

1

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2012-10-29 21:36:48

这将是Power的宽松政策,easeInFraction被设定为0。如果您想要匹配Tweener使用的算法,您需要通过一些尝试和错误计算出合适的指数。

代码语言:javascript
复制
<fx:Declarations>
    <s:Power
        id='expoEaseOutEquivalent'
        easeInFraction='0'
        exponent='8' />

    <s:Scale
        easer='{expoEaseOutEquivalent}'
        scaleYFrom='.5' 
        scaleYTo='1'
        scaleXFrom='.5'
        scaleXTo='1'
        duration='250'
        autoCenterTransform='true'
        applyChangesPostLayout='true' />
</fx:Declarations>
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/13127333

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档