flex effect

 <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
    <mx:Glow id="buttonGlow" color="0x99FF66"
        alphaFrom="1.0" alphaTo="0.3"
        duration="1500"/>
    <mx:Parallel id="BlurMoveShow" target="{myLabel}">
        <mx:Blur id="numbersBlur"
            blurYFrom="10.0" blurYTo="0.0"
            blurXFrom="10.0" blurXTo="0.0"
            duration="2000"/>
        <mx:Move id="numbersMove" yBy="20" duration="2000"/>   
    </mx:Parallel>
    <mx:Panel x="10" y="10" width="200" height="300" layout="absolute" title="Glow">
        <mx:Button x="40" y="60" label="View" id="myButton"
            mouseUpEffect="{buttonGlow}"
            click="BlurMoveShow.play(); myLabel.visible=true;"/>
        <mx:Label x="40" y="100" text="4 8 15 16 23 42" id="myLabel"
            visible="false"/>
    </mx:Panel>
</mx:Application>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
将下面代码转换成原生DOM代码实现:<div style="width: 20px;display: flex;flex-direction: column;align-items: center;"> <svg width="15" height="15" viewBox="0 0 58 61" fill="none" xmlns="http://www.w3.org/2000/svg"> <g filter="url(#filter0_d_0_443)"> <mask id="mask0_0_443" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="2" y="1" width="55" height="55"> <path fill-rule="evenodd" clip-rule="evenodd" d="M2.36145 28.1008V1.10083H56.3615V28.1008V55.1008H2.36145V28.1008Z" fill="white" /> </mask> <g mask="url(#mask0_0_443)"> <path fill-rule="evenodd" clip-rule="evenodd" d="M51.9089 24.6895C51.9089 12.7671 41.712 3.10083 29.1352 3.10083C16.5584 3.10083 6.36145 12.7671 6.36145 24.6895C6.36145 35.0142 14.0134 43.6353 24.2312 45.7636H24.1458L29.1352 51.6932L34.1245 45.7636H34.0391C44.2569 43.6353 51.9089 35.0142 51.9089 24.6895" fill="#EA6060" /> </g> <path fill-rule="evenodd" clip-rule="evenodd" d="M45.8873 25.0619C45.8873 33.9331 38.2999 41.1239 28.9436 41.1239C19.5855 41.1239 12 33.9331 12 25.0619C12 16.1908 19.5855 9 28.9436 9C38.2999 9 45.8873 16.1908 45.8873 25.0619" fill="white" /> <path fill-rule="evenodd" clip-rule="evenodd" d="M30.4812 15L23 25.2654L29.1603 27.7787L25.2622 35.9895L34.9885 25.645L28.9401 22.9464L30.4812 15Z" fill="#EA6060" /> </g> <defs> <filter id="filter0_d_0_443" x="0.36145" y="0.10083" width="57.5475" height="60.5924" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"> <feFlood flood-opacity="0" result="BackgroundImageFix" /> <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha" /> <feOffset dy="3" /> <feGaussianBlur stdDeviation="3" /> <feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0" /> <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_0_443" /> <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_0_443" result="shape" /> </filter> </defs> </svg> <div style="width: 10px; height: 20px; background-color: aqua;"></div> </div>
最新发布
05-25

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值