Fiori里花瓣的动画效果实现原理

简介: Fiori里花瓣的动画效果实现原理

SAP UI5

1217 篇文章25 订阅

订阅专栏

Fiori里的busy dialog有两种表现形式,一种是下图里的flower形状,由5个花瓣组成。另一种是下图的3/4个圆环的效果。


image.png关于前者的效果,可以看这个video。这个video是手动将default 300毫秒改成30秒之后的效果。image.png(1). When it appeas in UI

According to callstack, the Flower-like animation, technically speaking, the BusyDialog will be opened every time there is change on url, which you could observe in address bar in your browser. This animation is implemented via in /sap/bc/ui5_ui5/ui2/ushell/resources/sap/m/BusyDialog.js



image.png(2). How is the Flower animation rendered

The entry point of rendering logic is in line 2019 below in file: /sap/bc/ui5_ui5/ui2/ushell/resources/sap/ui/core/Popup.js.


image.pngimage.pngFrom here we know that the Flower we see in UI actually consists of FIVE ( why five? see line 97 below 😃 ) different div tag with well-prepared CSS class.



image.pngimage.png(3). When the Flower vanishes

There is a call in shell controller which will check whether the Flower busy dialog is still opened. If so, just put the close operation into the event queue with 0.3 second’s delay. It does not mean that the busy dialog will be closed after exactly 0.3 seconds due to Javascript’s single thread execution pattern.


image.pngAlso in the end of UI navigation, the UI framework will also attempt to close busy dialog if any.

image.png

相关文章
|
8月前
|
前端开发 容器
SAP UI5 应用里 FlexBox 控件的设计原理
SAP UI5 应用里 FlexBox 控件的设计原理
46 0
|
5月前
什么是瀑布流布局?瀑布流式布局的优缺点
什么是瀑布流布局?瀑布流式布局的优缺点
150 0
|
7月前
|
XML JavaScript 前端开发
SAP UI5 里 FlexBox 控件使用的一个例子
SAP UI5 里 FlexBox 控件使用的一个例子
32 0
|
9月前
响应式布局的五种方法
响应式布局是同一页面在不同的屏幕上有不同的布局,即只需要一套代码使页面适应不同的屏幕。
|
9月前
SwiftUI 中淡入淡出特效
SwiftUI 中淡入淡出特效
|
编解码
unity3dUGUI之UI粒子特效自适应缩放
using UnityEngine; using System.Collections; using System.Collections.Generic; public class UIParticleScale : MonoBehaviour...
1530 0
|
JavaScript 前端开发 API
Fiori 花瓣动画效果的实现原理
Fiori 花瓣动画效果的实现原理
63 0
Fiori 花瓣动画效果的实现原理
Fiori里花瓣的动画效果实现原理
Fiori里的busy dialog有两种表现形式,一种是下图里的花朵形状,由5个不断旋转的花瓣组成。另一种是下图的3/4个圆环不断旋转的效果。
126 0
Fiori里花瓣的动画效果实现原理
|
编解码 前端开发 JavaScript
响应式布局的五种实现方法
响应式布局的五种实现方法
432 0
响应式布局的五种实现方法
|
前端开发 JavaScript Shell
Fiori应用的花瓣动画效果是怎么画出来的
Fiori里的busy dialog有两种表现形式,一种是下图里的flower形状,由5个花瓣组成。另一种是下图的3/4个圆环的效果。目前我只看了前者的behavior。可以看我附件里的video。这个video是手动将default 300毫秒改成30秒之后的效果。
Fiori应用的花瓣动画效果是怎么画出来的