Animation effect configuration method and device, equipment and storage medium

By providing a visual animation configuration interface in the animation rendering system of the web page production platform, users can configure animation effects without modifying the source code, solving the problem of low animation effect configuration efficiency and improving user experience.

CN118535156APending Publication Date: 2024-08-23GUANGZHOU YIHU NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410550246.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-06
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

On web page production platforms, users need to manually add logic to the source code when configuring web page animation effects, resulting in complex and inefficient operations.

Method used

Provides an animation effect configuration method that displays the animation configuration interface in the front-end module of the animation rendering system through visual operations. The user can select animation effect options and generate effect configuration information, and send rendering requests to the back-end module to configure and render the target animation effect. , no need to modify the source code.

Benefits of technology

The efficiency of web page animation effect configuration is improved, the user operation process is simplified, the user experience is improved, and the problem of low animation effect configuration efficiency in the existing technology is solved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118535156A
    Figure CN118535156A
Patent Text Reader

Abstract

The embodiment of the invention discloses an animation effect configuration method and device, equipment and a storage medium, according to the embodiment of the invention, when a user configures an animation effect of an element, an animation configuration interface is displayed, and the user can configure the animation effect of the element by selecting an animation effect option displayed on the animation configuration interface. According to the embodiment of the invention, the animation effect configuration of the target element is performed through the visual operation, and the source code of the element does not need to be manually edited and modified in the process, so that the efficiency of configuring the animation effect of the webpage is greatly improved, the technical problem of low configuration efficiency of the animation effect in the prior art is solved, and the user experience is improved. And the use experience of the user is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computers, and in particular to an animation effect configuration method, device, equipment and storage medium. Background Art

[0002] A web page creation platform is a platform that uses various network program development technologies and web design technologies to build sites on the global Internet for enterprises, companies or individuals. It usually includes services such as domain name registration and hosting, and allows users to use markup languages ​​(such as HTML, CSS and JavaScript, etc.) to design and edit pages. Web page creation platforms play an important role in the web design and development process. They provide a wealth of functions and tools to help users create attractive and fully functional websites.

[0003] However, currently when users configure the animation effects of web pages on a web page production platform, they generally need to manually add relevant logic to the source code of the web page to achieve the corresponding animation effects. The operation is complicated and cumbersome, resulting in low efficiency in configuring the animation effects. Summary of the invention

[0004] The embodiments of the present invention provide an animation effect configuration method, device, equipment and storage medium. The embodiments of the present invention provide a web page animation configuration that can be performed through visual operations, solving the technical problem of low animation effect configuration efficiency in the prior art.

[0005] In a first aspect, an embodiment of the present invention provides an animation effect configuration method, which is applied to a front-end module of an animation rendering system, and the method includes:

[0006] In response to the element selection instruction, a target element is determined, and an animation configuration interface corresponding to the target element is displayed, wherein the animation configuration interface includes animation effect options, and the animation effect options are rendered by reading the names of the animation effects in a configuration file corresponding to the animation effect file, wherein the configuration file includes names corresponding to different animation effects;

[0007] In response to an effect selection instruction acting on the animation effect option, determining a target animation effect corresponding to the target element, and generating effect configuration information corresponding to the target element according to the target animation effect;

[0008] A rendering request and the effect configuration information are sent to a back-end module, so that the back-end module determines the target animation effect according to the effect configuration information, renders the target element after configuring the target animation effect for the target element according to the animation effect file, and renders the target animation effect when it is detected that the target animation effect is triggered, and the animation effect file is pre-stored in the back-end module.

[0009] Preferably, the animation effect file uses comment syntax in the target format to mark the names of different animation effects, and the configuration file is generated by the following method:

[0010] Read the names of different animation effects in the target format syntax annotations in the animation effect file;

[0011] The configuration file is generated according to the names of the different animation effects.

[0012] Preferably, the reading of the names of the different animation effects in the target format of the grammatical annotations in the animation effect file includes:

[0013] Searching for syntax comments of a target format in the animation effect file through a regular expression;

[0014] The names of the different animation effects of the syntax annotation are extracted.

[0015] Preferably, after determining the target animation effect corresponding to the target element and before generating the effect configuration information corresponding to the target element according to the target animation effect, the method further includes:

[0016] Displaying a trigger condition configuration interface, wherein the trigger condition configuration interface includes trigger condition options;

[0017] In response to a condition selection instruction acting on the trigger condition option, determining a target trigger condition corresponding to the target animation effect;

[0018] Correspondingly, generating effect configuration information corresponding to the target element according to the target animation effect includes:

[0019] Effect configuration information corresponding to the target element is generated according to the target animation effect and the target trigger condition.

[0020] Preferably, the backend module determines the target animation effect according to the effect configuration information, renders the target element after configuring the target animation effect for the target element according to the animation effect file, and renders the target animation effect when detecting that the target animation effect is triggered, including:

[0021] The back-end module determines the target animation effect and the target trigger condition according to the effect configuration information, configures the target animation effect and the target trigger condition for the target element according to the animation effect file, renders the target element, and renders the target animation effect when it is detected that the target trigger condition is met.

[0022] Preferably, the triggering conditions include triggering when the target element is loaded, triggering when the target element is clicked, and triggering when scrolling to the target element.

[0023] Preferably, the animation effect option includes a random animation effect option;

[0024] The step of responding to the effect selection instruction acting on the animation effect option and determining the target animation effect corresponding to the target element comprises:

[0025] In response to the effect selection instruction acting on the random animation effect option, one of the animation effects is randomly selected as a target animation effect corresponding to the target element.

[0026] In a second aspect, an embodiment of the present invention provides an animation effect configuration device, which is applied to a front-end module of an animation rendering system, and the device includes:

[0027] an interface rendering module, for determining a target element in response to an element selection instruction, and displaying an animation configuration interface corresponding to the target element, wherein the animation configuration interface includes animation effect options, and the animation effect options are rendered by reading the names of the animation effects in a configuration file corresponding to the animation effect file, wherein the configuration file includes names corresponding to different animation effects;

[0028] An animation effect determination module, used to respond to an effect selection instruction acting on the animation effect option, determine a target animation effect corresponding to the target element, and generate effect configuration information corresponding to the target element according to the target animation effect;

[0029] A request sending module is used to send a rendering request and the effect configuration information to a back-end module, so that the back-end module determines the target animation effect according to the effect configuration information, renders the target element after configuring the target animation effect for the target element according to the animation effect file, and renders the target animation effect when it is detected that the target animation effect is triggered, and the animation effect file is pre-stored in the back-end module.

[0030] In a third aspect, an embodiment of the present invention provides an animation effect configuration device, the animation effect configuration device comprising a processor and a memory;

[0031] The memory is used to store a computer program and transmit the computer program to the processor;

[0032] The processor is used to execute an animation effect configuration method as described in the first aspect according to instructions in the computer program.

[0033] In a fourth aspect, an embodiment of the present invention provides a storage medium storing computer executable instructions, wherein the computer executable instructions, when executed by a computer processor, are used to execute an animation effect configuration method as described in the first aspect.

[0034] As described above, the embodiments of the present invention provide an animation effect configuration method, device, equipment and storage medium. When a user configures the animation effect of an element, the embodiments of the present invention will display an animation configuration interface. The user can configure the animation effect of the element by selecting the animation effect option displayed on the animation configuration interface. The embodiments of the present invention configure the animation effect of the target element through visual operations. In this process, there is no need to manually edit and modify the source code of the element, which greatly improves the efficiency of configuring the animation effect of the web page, solves the technical problem of low configuration efficiency of animation effects in the prior art, and improves the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 A flowchart of an animation effect configuration method provided by an embodiment of the present invention.

[0036] Figure 2 A schematic diagram of an animation configuration interface provided by an embodiment of the present invention.

[0037] Figure 3 A specific process of configuring the animation effect of a target element provided by an embodiment of the present invention.

[0038] Figure 4 A schematic flow chart of another animation effect configuration method provided by an embodiment of the present invention.

[0039] Figure 5 A schematic diagram of using a target format annotation syntax to mark the name of an animation effect provided by an embodiment of the present invention.

[0040] Figure 6 A schematic diagram of a code of a configuration file provided in an embodiment of the present invention.

[0041] Figure 7 Another specific process of configuring the animation effect of a target element provided by an embodiment of the present invention.

[0042] Figure 8 A structural schematic diagram of an animation effect configuration device provided by an embodiment of the present invention.

[0043] Fig. 9 A structural schematic diagram of an animation effect configuration device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0044] The following description and accompanying drawings fully illustrate the specific embodiments of the present application so that those skilled in the art can practice them. The examples represent possible variations only. Unless explicitly required, separate components and functions are optional, and the order of operation can vary. The parts and features of some embodiments may be included in or replace the parts and features of other embodiments. The scope of the embodiments of the present application includes the entire scope of the claims, and all available equivalents of the claims. In this article, each embodiment may be represented individually or generally by the term "invention", which is only for convenience, and if more than one invention is disclosed in fact, it is not intended to automatically limit the scope of the application to any single invention or inventive concept. In this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, without requiring or implying any actual relationship or order between these entities or operations. Moreover, the term "include", "comprise" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method or device including a series of elements includes not only those elements, but also other elements that are not explicitly listed. The various embodiments are described in a progressive manner herein, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other. As for the structures, products, etc. disclosed in the embodiments, since they correspond to the parts disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the description of the method part.

[0045] like Figure 1 As shown, Figure 1 A flowchart of an animation effect configuration method provided in an embodiment of the present invention. The animation effect configuration method provided in an embodiment of the present invention can be executed by an animation effect configuration device, and the animation effect configuration device can be implemented by software and / or hardware. The animation effect configuration device can be composed of two or more physical entities, or it can be composed of one physical entity. For example, the animation effect configuration device can be a computer, a host computer, a tablet and other devices. In this embodiment, the animation effect configuration device is taken as an example to illustrate the front-end module of the animation rendering system, wherein the animation rendering system is a system for rendering and displaying animations, and the animation rendering system includes a front-end module and a back-end module, wherein the front-end module is mainly used to realize the display of the picture and interact with the user, and the back-end module is mainly used for data processing and the implementation of business logic. The animation effect configuration method provided in an embodiment of the present invention includes:

[0046] Step 101, in response to an element selection instruction, determine the target element, and display an animation configuration interface corresponding to the target element, wherein the animation configuration interface includes animation effect options, and the animation effect options are rendered by reading the names of the animation effects in a configuration file corresponding to the animation effect file, wherein the configuration file includes names corresponding to different animation effects.

[0047] In this embodiment, before the user configures the animation effects of elements on a web page, the front-end module of the animation rendering module first needs to display the elements on the web page. The elements of a web page refer to the basic components used when constructing a web page. The cooperation of different elements forms the overall content and appearance of the web page. Common elements mainly include text, images, animations, audio, video, etc. Elements can be defined through technologies such as HTML, CSS and JavaScript. For details, please refer to the existing technology and are not specifically limited in this embodiment.

[0048] After the front-end module displays the elements on the web page, when the user wants to set the animation effect of a certain element, the user can send an element selection instruction to the front-end module by interacting with the front-end module, and the element selection instruction is used to select the target element. Exemplarily, the front-end module also displays a graphical user interface, wherein the graphical user interface is an interface display format for a user to interact with an electronic device, and the graphical user interface is composed of a window, a drop-down menu, a dialog box and its corresponding control mechanism. The target that the user can operate in the graphical user interface is a graphic object, and the user can interact with the front-end module by operating the graphic object in the graphical user interface, thereby performing various operations on the animation rendering system. In this embodiment, the graphical user interface displays various elements in the web page. After the user triggers the "element selection" icon through an interactive device or a gesture, the target element can be selected on the target screen, thereby sending an element selection instruction to the front-end module. After receiving the element selection instruction, the front-end module responds to the element selection instruction and determines the element currently selected by the user as the target element.

[0049] After determining the target element, the front-end module will further display the animation configuration interface corresponding to the target element. The animation configuration interface is used to configure the animation effect of the target element. The animation effect presents the change process of the element through a series of continuously changing images or states. For example, the animation effect can be fade-in, fade-out, or move-in from the left. In this embodiment, the animation configuration interface displays animation effect options, each of which corresponds to an animation effect. The user can select an animation effect by selecting an animation effect option. In one embodiment, the animation configuration interface is as follows: Figure 2As shown. It can be understood that the animation effect options in this embodiment are the names of each animation effect, wherein the animation effect options are rendered by reading the name of the animation effect in the configuration file corresponding to the animation effect file, and the animation effect file is a file including the logic code for the specific implementation of the animation effect, for example, the animation effect file may be aicc-animation-dev.css, which is used to write CSS animations. When developers add new animation effects, they can implement them by writing the code in aicc-animation-dev.css. In this embodiment, the animation effect file has a corresponding configuration file, and the configuration file includes the names corresponding to different animation effects in the animation effect file. The configuration file can be generated by extracting the names of the animation effects in the animation effect file, so that the animation effect options corresponding to each animation effect can be generated according to the configuration file later.

[0050] Step 102: In response to the effect selection instruction acting on the animation effect option, determine the target animation effect corresponding to the target element, and generate effect configuration information corresponding to the target element according to the target animation effect.

[0051] After the front-end module displays the animation effect options, the user can further select the animation effect on the animation configuration interface in an interactive manner. Exemplarily, the user can select a certain animation effect option on the animation configuration interface with the mouse and click the confirmation option, and then the effect selection instruction can be sent to the front-end module. After receiving the effect selection instruction, the front-end module determines the corresponding animation effect according to the animation effect option selected by the user, and determines the animation effect as the target animation effect of the target element. Afterwards, the front-end module will generate the effect configuration information of the target element according to the target animation effect corresponding to the target element, and the data format in the effect configuration information can be a json data format.

[0052] Step 103: Send a rendering request and effect configuration information to the back-end module, so that the back-end module determines the target animation effect according to the effect configuration information, renders the target element after configuring the target animation effect for the target element according to the animation effect file, and renders the target animation effect when it is detected that the target animation effect is triggered. The animation effect file is pre-stored in the back-end module.

[0053] After generating the effect configuration information of the target element, when the web page needs to be displayed later, the front-end module can send a rendering request and the effect configuration information of the target element to the back-end module, and the rendering request is used to request the rendering of the target element. After receiving the rendering request sent by the front-end module, the back-end module will determine the target animation effect of the target element according to the effect configuration information, and then configure the target animation effect for the target element in the animation effect file, wherein the animation effect file is pre-stored in the back-end module. The front-end module and the back-end module share an animation effect file, which can save development and maintenance costs. After configuring the target animation effect for the target element, the back-end module can render the target element, and after the rendering is completed, the front-end module can display the target element on the web page. After the front-end module displays the target element, if the back-end module detects that the target animation effect of the displayed target element is triggered, it will render the target animation effect so that the front-end module displays the target animation effect, wherein the triggering condition of the target animation effect can be set according to actual needs, for example, it can be set to be triggered when the target element is clicked by the mouse, etc. In one embodiment, the specific process of configuring the animation effect of the target element is as follows: Figure 3 shown.

[0054] As described above, the embodiment of the present invention provides an animation effect configuration method. When a user configures the animation effect of an element, the embodiment of the present invention will display an animation configuration interface. The user can configure the animation effect of the element by selecting the animation effect option displayed on the animation configuration interface. The embodiment of the present invention configures the animation effect of the target element through visual operation. In this process, there is no need to manually edit and modify the source code of the element, which greatly improves the efficiency of configuring the animation effect of the web page, solves the technical problem of low configuration efficiency of animation effects in the prior art, and improves the user experience.

[0055] The embodiment of the present invention also provides another animation effect configuration method, such as Figure 4 As shown, Figure 4 The flowchart of another animation effect configuration method provided by the embodiment of the present invention is a schematic diagram. The animation effect configuration method provided by the embodiment of the present invention is a specific embodiment of the above animation effect configuration method. The animation effect configuration method provided by the embodiment of the present invention includes:

[0056] Step 201, in response to an element selection instruction, determine the target element, and display an animation configuration interface corresponding to the target element, wherein the animation configuration interface includes animation effect options, and the animation effect options are rendered by reading the names of the animation effects in a configuration file corresponding to the animation effect file, wherein the configuration file includes names corresponding to different animation effects.

[0057] In this embodiment, the names of different animation effects are marked in the animation effect file by using the comment syntax of the target format, wherein the target format is a pre-set format, and the target format can be pre-set according to actual needs. For example, the syntax comment of the target format can be / *...* / , and the comment syntax of the target format is used in the animation effect file to mark the name of the animation effect, such as Figure 5 shown.

[0058] In the case where the names of different animation effects are marked by the comment syntax of the target format in the animation effect file, the configuration file is generated by the following method:

[0059] Step 10: Read the names of different animation effects of the syntax annotations in the target format in the animation effect file.

[0060] Step 20: Generate configuration files according to the names of different animation effects.

[0061] In one embodiment, the syntax comments in the target format in the animation effect file can be read to extract the names of different animation effects. Specifically, the syntax comments in the target format in the animation effect file are searched through regular expressions, and the names of the different animation effects in the syntax comments are extracted. Among them, regular expressions are a powerful text processing tool that uses a special syntax to match, find and replace patterns in text. For example, in the code of a programming language, comments are usually marked with syntax in a specific target format, such as / *...* / or / / in C language, # in Python, etc. Regular expressions can be used to identify these comments and extract information from them. That is, in this embodiment, the syntax comment / *...* / in the animation effect file can be searched through a regular expression, and the information in the syntax comment / *...* / can be extracted to obtain the names corresponding to different animation effects. After extracting the name of the animation effect, a configuration file can be generated according to the name of the different animation effects. In one embodiment, the configuration file can be a config.js file. The code diagram of the configuration file is shown as follows. Figure 6 shown.

[0062] Step 202: In response to an effect selection instruction acting on an animation effect option, determine a target animation effect corresponding to a target element.

[0063] Based on the above embodiment, the animation effect option includes a random animation effect option.

[0064] In response to the effect selection instruction acting on the animation effect option, a target animation effect corresponding to the target element is determined, including:

[0065] Step 2021: In response to an effect selection instruction acting on a random animation effect option, randomly select one of the animation effects as a target animation effect corresponding to a target element.

[0066] In one embodiment, the animation effect options displayed by the front-end module include a random animation effect option, which is used to randomly select an animation effect as the target animation effect of the target element. In some cases, when the user does not want to specifically select a target animation effect, the user can send an effect selection instruction to the front-end module by selecting the random animation effect option in the animation effect options. After receiving the effect selection instruction, the front-end module will randomly select one from the animation effects as the target animation effect corresponding to the target element.

[0067] Step 203: display a trigger condition configuration interface, which includes trigger condition options.

[0068] In this embodiment, after the user selects the target animation effect corresponding to the target element, the front-end module will further display the trigger condition configuration interface corresponding to the target element, and the trigger condition configuration interface displays the trigger condition option. The user can configure the trigger condition of the target animation effect by selecting the trigger condition option. It can be understood that the way in which the trigger condition configuration interface displays the trigger condition option is similar to the way in which the animation configuration interface displays the animation effect option. For details, please refer to the way in which the animation configuration interface displays the animation effect option, which will not be repeated in this embodiment. In one embodiment, the trigger condition includes triggering when the target element is loaded, triggering when the target element is clicked, and triggering when scrolling to the target element, wherein the triggering when the target element is loaded means that the web page triggers the target animation effect of the target element when the target element is loaded; the triggering when the target element is clicked means that the target animation effect of the target element is triggered when the target element is clicked by the mouse cursor or the user gesture; the triggering when scrolling to the target element means that the target animation effect of the target element is triggered when the web page scrolls to the position where the target element is located. It can be understood that the trigger condition option at this time includes three options corresponding to triggering when the target element is loaded, triggering when the target element is clicked, and triggering when scrolling to the target element.

[0069] Step 204: In response to the condition selection instruction acting on the trigger condition option, determine the target trigger condition corresponding to the target animation effect.

[0070] After the trigger condition configuration interface is displayed, the user sends a condition selection instruction to the front-end module by operating the trigger condition option, thereby selecting the target trigger condition corresponding to the target animation effect. Exemplarily, the user can select a trigger condition option on the trigger condition configuration interface with the mouse and click the confirmation option, and then the condition selection instruction can be sent to the front-end module. The front-end module can determine the target trigger condition corresponding to the target animation effect according to the trigger condition option selected by the user. In another embodiment, the user can further set the transition time of the target animation effect triggering and other parameters affecting the target animation effect in the trigger condition configuration interface.

[0071] Step 205: Generate effect configuration information corresponding to the target element according to the target animation effect and the target trigger condition.

[0072] After determining the target trigger condition corresponding to the target effect, the front-end module may generate effect configuration information corresponding to the target element according to the target animation effect and the target trigger condition selected by the user.

[0073] Step 206: Send a rendering request and effect configuration information to the back-end module, so that the back-end module determines the target animation effect and the target trigger condition according to the effect configuration information, configures the target animation effect and the target trigger condition for the target element according to the animation effect file, renders the target element, and renders the target animation effect when it is detected that the target trigger condition is met. The animation effect file is pre-stored in the back-end module.

[0074] After generating the effect configuration information, the front-end module can send a rendering request and effect configuration information to the back-end module. After receiving the rendering request, the back-end module determines the target animation effect and target trigger condition of the target element according to the effect configuration information, and configures the corresponding code for the target element in the animation effect file, so that the target element has the target animation effect and the target animation effect has the target trigger condition. For example, a class of the target animation effect style can be generated according to the effect configuration information, and the animation style statement can be added, and then the trigger timing for the target animation effect can be set. After that, when displaying the web page, the back-end module can render the target element, and the front-end module displays the target element on the web page. And after the back-end module detects that the target trigger condition of the target animation effect is met, it will render the target animation effect so that the front-end module can display the target effect. In one embodiment, when the trigger condition is triggered when the target element is loaded, an animation class can be added to the specified target element in the mounted life cycle; when the trigger condition is triggered when the target element is scrolled, the window can be monitored for its page scrolling event (scroll) in the mounted life cycle, and when the current page scrolling height reaches the position of the target element, an animation class can be added to the target element; and when it is triggered by clicking, a click callback function can be added to the target element, and an animation class can be added to the specified element in the function. In one embodiment, the specific process of configuring the animation effect is as follows: Figure 7 shown.

[0075] As described above, an embodiment of the present invention provides a method for configuring an animation effect. When a user configures the animation effect of an element, the embodiment of the present invention displays an animation configuration interface. The user can configure the animation effect of the element by selecting the animation effect option displayed on the animation configuration interface. After configuring the animation effect, the user can further set the triggering condition of the animation effect in the conditional configuration interface. By setting the animation effects at different triggering times, the page dynamic effect of the web page can be better configured, enriching the display effect of the web page. The embodiment of the present invention configures the animation effect of the target element through visual operations. In this process, there is no need to manually edit and modify the source code of the element, which greatly improves the efficiency of configuring the animation effect of the web page, solves the technical problem of low configuration efficiency of the animation effect in the prior art, and improves the user experience.

[0076] The embodiment of the present invention also provides an animation effect configuration device, such as Figure 8 As shown, Figure 8 This is a structural diagram of an animation effect configuration device provided by an embodiment of the present invention. The animation effect configuration device provided by an embodiment of the present invention includes:

[0077] The interface rendering module 301 is used to respond to the element selection instruction, determine the target element, and display the animation configuration interface corresponding to the target element. The animation configuration interface includes animation effect options. The animation effect options are rendered by reading the name of the animation effect in the configuration file corresponding to the animation effect file. The configuration file includes names corresponding to different animation effects.

[0078] The animation effect determination module 302 is used to respond to the effect selection instruction acting on the animation effect option, determine the target animation effect corresponding to the target element, and generate effect configuration information corresponding to the target element according to the target animation effect.

[0079] The request sending module 303 is used to send a rendering request and effect configuration information to the back-end module, so that the back-end module determines the target animation effect according to the effect configuration information, renders the target element after configuring the target animation effect for the target element according to the animation effect file, and renders the target animation effect when it is detected that the target animation effect is triggered. The animation effect file is pre-stored in the back-end module.

[0080] Based on the above embodiment, the names of different animation effects are marked in the animation effect file by using the comment syntax of the target format, and the animation effect configuration device further includes:

[0081] A name reading module, used for reading the names of different animation effects in the target format syntax annotations in the animation effect file;

[0082] The configuration file generation module is used to generate configuration files according to the names of different animation effects.

[0083] Based on the above embodiment, the names of different animation effects of the grammatical annotations in the target format in the animation effect file are read, and the name reading module is specifically used to search for the grammatical annotations in the target format in the animation effect file through a regularized expression, and extract the names of different animation effects of the grammatical annotations.

[0084] On the basis of the above embodiment, it further includes a condition configuration interface display module, which is used to display a trigger condition configuration interface after determining the target animation effect corresponding to the target element and before generating the effect configuration information corresponding to the target element according to the target animation effect, wherein the trigger condition configuration interface includes trigger condition options;

[0085] A trigger condition determination module, for responding to a condition selection instruction acting on a trigger condition option, and determining a target trigger condition corresponding to a target animation effect;

[0086] Correspondingly, the animation effect determination module 302 is specifically used to generate effect configuration information corresponding to the target element according to the target animation effect and the target trigger condition.

[0087] Based on the above embodiments, the back-end module is specifically used to determine the target animation effect and the target trigger condition according to the effect configuration information, configure the target animation effect and the target trigger condition for the target element according to the animation effect file, render the target element, and render the target animation effect when it is detected that the target trigger condition is met.

[0088] Based on the above embodiment, the trigger conditions include triggering when the target element is loaded, triggering when the target element is clicked, and triggering when scrolling to the target element.

[0089] Based on the above embodiment, the animation effect option includes a random animation effect option;

[0090] The animation effect determination module 302 is specifically configured to respond to an effect selection instruction acting on a random animation effect option and randomly select one of the animation effects as a target animation effect corresponding to a target element.

[0091] The animation effect configuration device provided in the embodiment of the present invention is included in the animation effect configuration equipment, and can be used to execute the animation effect configuration method provided in the above embodiment, and has corresponding functions and beneficial effects.

[0092] It is worth noting that in the embodiment of the above-mentioned animation effect configuration device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.

[0093] This embodiment also provides an animation effect configuration device, such as Fig. 9 As shown, Fig. 9 A schematic diagram of the structure of an animation effect configuration device provided by an embodiment of the present invention, wherein the animation effect configuration device 40 includes a processor 400 and a memory 401;

[0094] The memory 401 is used to store the computer program 402 and transmit the computer program 402 to the processor 400;

[0095] The processor 400 is used to execute the steps in the above-mentioned animation effect configuration method embodiment according to the instructions in the computer program 402.

[0096] Exemplarily, the computer program 402 may be divided into one or more modules / units, one or more modules / units are stored in the memory 401, and are executed by the processor 400 to complete the present application. One or more modules / units may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program 402 in the animation effect configuration device 40.

[0097] The animation effect configuration device 40 may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The animation effect configuration device 40 may include, but is not limited to, a processor 400 and a memory 401. Those skilled in the art will appreciate that Fig. 9 It is only an example of the animation effect configuration device 40 and does not constitute a limitation of the animation effect configuration device 40. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the animation effect configuration device 40 may also include input and output devices, network access devices, buses, etc.

[0098] The processor 400 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0099] The memory 401 may be an internal storage unit of the animation effect configuration device 40, such as a hard disk or memory of the animation effect configuration device 40. The memory 401 may also be an external storage device of the animation effect configuration device 40, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the animation effect configuration device 40. Further, the memory 401 may also include both an internal storage unit and an external storage device of the animation effect configuration device 40. The memory 401 is used to store computer programs and other programs and data required by the animation effect configuration device 40. The memory 401 may also be used to temporarily store data that has been output or is to be output.

[0100] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0101] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0102] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0103] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0104] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store computer programs.

[0105] The embodiment of the present invention further provides a storage medium containing computer executable instructions. When the computer executable instructions are executed by a computer processor, they are used to execute an animation effect configuration method. The method includes the following steps:

[0106] In response to the element selection instruction, a target element is determined, and an animation configuration interface corresponding to the target element is displayed, wherein the animation configuration interface includes animation effect options, and the animation effect options are rendered by reading the names of the animation effects in a configuration file corresponding to the animation effect file, wherein the configuration file includes names corresponding to different animation effects;

[0107] In response to an effect selection instruction acting on an animation effect option, a target animation effect corresponding to a target element is determined, and effect configuration information corresponding to the target element is generated according to the target animation effect;

[0108] A rendering request and effect configuration information are sent to the back-end module, so that the back-end module determines the target animation effect according to the effect configuration information, renders the target element after configuring the target animation effect for the target element according to the animation effect file, and renders the target animation effect when it is detected that the target animation effect is triggered. The animation effect file is pre-stored in the back-end module.

[0109] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the embodiments of the present invention are not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the embodiments of the present invention. Therefore, although the embodiments of the present invention are described in more detail through the above embodiments, the embodiments of the present invention are not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the embodiments of the present invention, and the scope of the embodiments of the present invention is determined by the scope of the appended claims.

Claims

1. A method for configuring an animation effect, characterized in that: A front-end module applied to an animation rendering system, the method comprising: In response to the element selection instruction, a target element is determined, and an animation configuration interface corresponding to the target element is displayed, wherein the animation configuration interface includes animation effect options, and the animation effect options are rendered by reading the names of the animation effects in a configuration file corresponding to the animation effect file, wherein the configuration file includes names corresponding to different animation effects; In response to an effect selection instruction acting on the animation effect option, determining a target animation effect corresponding to the target element, and generating effect configuration information corresponding to the target element according to the target animation effect; A rendering request and the effect configuration information are sent to a back-end module, so that the back-end module determines the target animation effect according to the effect configuration information, renders the target element after configuring the target animation effect for the target element according to the animation effect file, and renders the target animation effect when it is detected that the target animation effect is triggered, and the animation effect file is pre-stored in the back-end module.

2. The method for configuring animation effects according to claim 1, characterized in that: The animation effect file uses the comment syntax of the target format to mark the names of different animation effects. The configuration file is generated by the following method: Read the names of different animation effects in the target format syntax annotations in the animation effect file; The configuration file is generated according to the names of the different animation effects.

3. The method for configuring animation effects according to claim 2, characterized in that: The reading of the names of the different animation effects in the target format of the grammatical annotations in the animation effect file includes: Searching for syntax comments of a target format in the animation effect file through a regular expression; The names of the different animation effects of the syntax annotation are extracted.

4. The method for configuring animation effects according to claim 1, characterized in that: After determining the target animation effect corresponding to the target element and before generating the effect configuration information corresponding to the target element according to the target animation effect, the method further includes: Displaying a trigger condition configuration interface, wherein the trigger condition configuration interface includes trigger condition options; In response to a condition selection instruction acting on the trigger condition option, determining a target trigger condition corresponding to the target animation effect; Correspondingly, generating effect configuration information corresponding to the target element according to the target animation effect includes: Effect configuration information corresponding to the target element is generated according to the target animation effect and the target trigger condition.

5. The method for configuring animation effects according to claim 4, characterized in that: The backend module determines the target animation effect according to the effect configuration information, configures the target animation effect for the target element according to the animation effect file, and renders the target element, and renders the target animation effect when detecting that the target animation effect is triggered, including: The back-end module determines the target animation effect and the target trigger condition according to the effect configuration information, configures the target animation effect and the target trigger condition for the target element according to the animation effect file, renders the target element, and renders the target animation effect when it is detected that the target trigger condition is met.

6. The method for configuring animation effects according to claim 4, characterized in that: The trigger conditions include triggering when the target element is loaded, triggering when the target element is clicked, and triggering when scrolling to the target element.

7. The method for configuring animation effects according to claim 1, characterized in that: The animation effect options include random animation effect options; The step of responding to the effect selection instruction acting on the animation effect option and determining the target animation effect corresponding to the target element comprises: In response to the effect selection instruction acting on the random animation effect option, one of the animation effects is randomly selected as a target animation effect corresponding to the target element.

8. An animation effect configuration device, characterized in that: A front-end module applied to an animation rendering system, the device comprising: an interface rendering module, for determining a target element in response to an element selection instruction, and displaying an animation configuration interface corresponding to the target element, wherein the animation configuration interface includes animation effect options, and the animation effect options are rendered by reading the names of the animation effects in a configuration file corresponding to the animation effect file, wherein the configuration file includes names corresponding to different animation effects; An animation effect determination module, used to respond to an effect selection instruction acting on the animation effect option, determine a target animation effect corresponding to the target element, and generate effect configuration information corresponding to the target element according to the target animation effect; A request sending module is used to send a rendering request and the effect configuration information to a back-end module, so that the back-end module determines the target animation effect according to the effect configuration information, renders the target element after configuring the target animation effect for the target element according to the animation effect file, and renders the target animation effect when it is detected that the target animation effect is triggered, and the animation effect file is pre-stored in the back-end module.

9. An animation effect configuration device, characterized in that: The animation effect configuration device includes a processor and a memory; The memory is used to store a computer program and transmit the computer program to the processor; The processor is used to execute an animation effect configuration method according to any one of claims 1 to 7 according to instructions in the computer program.

10. A storage medium storing computer executable instructions, characterized in that: The computer executable instructions are used to execute an animation effect configuration method according to any one of claims 1 to 7 when executed by a computer processor.