In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article shows you what is the principle of realizing the animation effect of petals in Fiori, the content is concise and easy to understand, it can definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.
There are two forms of busy dialog in Fiori. One is the shape of the flower in the image below, which consists of five constantly rotating petals. The other is the effect of the continuous rotation of the four rings in the picture below.
For the effect of the former, you can watch this video I made. This video shows the effect of manually changing the 300ms delay of the following setTimeout to 30 seconds, meaning that the petal effect disappears after 30 seconds.
1. According to the observation of the call stack in the debugger, whenever url changes, sap.ui.controller.doHashChange will be triggered, and the method will call openLoadingScreen. This method creates an instance of BusyDialog and calls the open method. Implementation location of BusyDialog: / sap/bc/ui5_ui5/ui2/ushell/resources/sap/m/BusyDialog.js
two。 Animation effect of the rendering location: / sap/bc/ui5_ui5/ui2/ushell/resources/sap/ui/core/Popup.js.
The renderFioriFlower method on line 52:
From the loop in line 97, you can see that five div element have been created in the loop, which are actually the five petals in the UI Fiori animation effect.
After the 3.Fiori animation is displayed, when does it disappear?
Use setTimeout to add the LoadingDialog close action to the execution queue. If there are no other events to be executed in the execution queue after 300ms (parameters on line 188), close the Dialog.
The above content is what is the principle of realizing the animation of petals in Fiori. Have you learned the knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.