Component interaction processing method and device, electronic equipment and readable storage medium

By obtaining component parameters to generate animation effects, the problem of lack of visual feedback during interface switching is solved, achieving smooth transition of component interaction and improving user experience.

CN118550528APending Publication Date: 2024-08-27广东南方新媒体股份有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310175149.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-24
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

During the interface switching process, the interaction of components within the interface lacks animation effects, causing the interface switching to appear stiff and unable to provide users with visual feedback, affecting the user experience.

Method used

By obtaining multiple component parameters of the target component, determine the animation effect algorithm and processing logic, generate and display the transition animation effect, and use the preset animation effect algorithm library and processing logic to process the component image to achieve a smooth transition between component interactions. and visual feedback.

Benefits of technology

It effectively improves the user experience, enriches the screen through animation effects, reduces users' anxiety when waiting, and reduces the viscosity when switching interfaces.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118550528A
    Figure CN118550528A
Patent Text Reader

Abstract

The invention discloses a component interaction processing method and device, electronic equipment and a readable storage medium, and the method comprises the steps: obtaining a plurality of component parameters of a target component included in a component interaction request in response to the component interaction request of the target component; determining at least one animation effect algorithm and at least one target animation effect processing logic according to the plurality of component parameters; and generating at least one transition animation effect according to the plurality of component parameters, the at least one animation effect algorithm and the at least one target animation effect processing logic. According to the method, when the application program components interact, the at least one animation effect corresponding to the target component is made according to the component parameters, and then the at least one animation effect is displayed, so that smooth transition between component interactions is achieved, pictures are enriched, users are attracted, visual feedback is provided for the users, and user experience is effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of application development, and in particular to a component interaction processing method, device, electronic device and readable storage medium. Background Art

[0002] At present, various application platforms are committed to providing users with a good user experience in the application, so that users can stay in the application for a longer time. When using the application, users often switch interfaces, and the interface switching process requires obtaining new interface data from the platform, which may require a certain waiting time.

[0003] In the process of implementing this application, the applicant found that the related technology has at least the following problems:

[0004] During the interface switching process, there is no animation effect when the components in the interface interact, which makes the interface switching appear abrupt and fails to provide users with a visual feedback, affecting the user experience. Summary of the invention

[0005] In view of this, the present application provides a component interaction processing method, device, electronic device and readable storage medium, the main purpose of which is to solve the problem that during the interface switching process, there is no animation effect when the components in the interface interact, which makes the interface switching appear abrupt and cannot provide a visual feedback to the user, affecting the user experience.

[0006] According to a first aspect of the present application, a component interaction processing method is provided, the method comprising:

[0007] In response to a component interaction request of a target component, obtaining a plurality of component parameters of the target component included in the component interaction request;

[0008] Determining at least one animation effect algorithm and at least one target animation effect processing logic according to the plurality of component parameters;

[0009] At least one transition animation effect is generated according to a plurality of component parameters, at least one animation effect algorithm and at least one target animation effect processing logic.

[0010] Optionally, the plurality of component parameters include a component identifier of a target component, image size information and image color information of a component image, and the step of determining at least one animation effect algorithm and at least one target animation effect processing logic according to the plurality of component parameters specifically includes:

[0011] According to the component identifier, determine the component type of the target component;

[0012] Determine at least one animation effect algorithm corresponding to the target component according to the component type, the preset corresponding relationship and the preset animation effect algorithm library, wherein the preset corresponding relationship is the corresponding relationship between the component type and the animation effect type;

[0013] At least one target animation processing logic is determined in the preset animation processing logic according to the image size information, the image color information and at least one animation effect algorithm.

[0014] Optionally, the step of determining at least one animation effect algorithm corresponding to the target component according to the component type, the preset corresponding relationship and the preset animation effect algorithm library specifically includes:

[0015] Determine at least one animation effect type corresponding to the target component according to the component type and the preset corresponding relationship;

[0016] At least one animation effect algorithm is determined in a preset animation effect algorithm library according to at least one animation effect type.

[0017] Optionally, the step of generating at least one transition animation effect according to a plurality of component parameters, at least one animation effect algorithm and at least one target animation effect processing logic specifically includes:

[0018] Processing the component image according to at least one target animation effect processing logic to generate a plurality of transition animation images;

[0019] At least one transition animation effect is generated according to a plurality of transition animation images and at least one animation effect algorithm.

[0020] Optionally, after generating at least one transition animation effect according to the plurality of component parameters, at least one animation effect algorithm and at least one target animation effect processing logic, the method further includes:

[0021] Display at least one transition animation effect.

[0022] Optionally, the preset animation effect algorithm library includes at least one of the following: a curtain pulling and closing algorithm, a center magnification algorithm, a line-by-line block descent algorithm, an alternating block rolling algorithm, a vertical bar algorithm, a fade-in and fade-out algorithm, a multi-color fade-in and fade-out algorithm, a diagonal fade-in and fade-out algorithm, a wire drawing algorithm, a random block algorithm, a blinds algorithm, a spiral rotation algorithm, a magnification algorithm, a retraction algorithm, a stretching algorithm, and a rolling curtain algorithm.

[0023] Optionally, the preset animation effect processing logic includes at least one of the following: region transformation matrix processing logic, color transformation matrix processing logic, bitmap instance processing logic, component canvas processing logic, brush processing logic, layer processing logic, line processing logic, path processing logic, block processing logic and compression processing logic.

[0024] According to a second aspect of the present application, a component interaction processing device is provided, the device comprising:

[0025] An acquisition module, configured to respond to a component interaction request of a target component and acquire a plurality of component parameters of the target component included in the component interaction request;

[0026] A determination module, used to determine at least one animation effect algorithm and at least one target animation effect processing logic according to a plurality of component parameters;

[0027] The generation module is used to generate at least one transition animation effect according to multiple component parameters, at least one animation effect algorithm and at least one target animation effect processing logic.

[0028] Optionally, the plurality of component parameters include a component identifier of the target component, image size information and image color information of the component image, and the determination module is specifically used to:

[0029] According to the component identifier, determine the component type of the target component;

[0030] Determine at least one animation effect algorithm corresponding to the target component according to the component type, the preset corresponding relationship and the preset animation effect algorithm library, wherein the preset corresponding relationship is the corresponding relationship between the component type and the animation effect type;

[0031] At least one target animation processing logic is determined in the preset animation processing logic according to the image size information, the image color information and at least one animation effect algorithm.

[0032] Optionally, the determination module is further used for:

[0033] Determine at least one animation effect type corresponding to the target component according to the component type and the preset corresponding relationship;

[0034] At least one animation effect algorithm is determined in a preset animation effect algorithm library according to at least one animation effect type.

[0035] Optionally, generate a module specifically for:

[0036] Processing the component image according to at least one target animation effect processing logic to generate a plurality of transition animation images;

[0037] At least one transition animation effect is generated according to a plurality of transition animation images and at least one animation effect algorithm.

[0038] Optionally, the device further comprises:

[0039] The display module is used to display at least one transition animation effect.

[0040] Optionally, the preset animation effect algorithm library includes at least one of the following: a curtain pulling and closing algorithm, a center magnification algorithm, a line-by-line block descent algorithm, an alternating block rolling algorithm, a vertical bar algorithm, a fade-in and fade-out algorithm, a multi-color fade-in and fade-out algorithm, a diagonal fade-in and fade-out algorithm, a wire drawing algorithm, a random block algorithm, a blinds algorithm, a spiral rotation algorithm, a magnification algorithm, a retraction algorithm, a stretching algorithm, and a rolling curtain algorithm.

[0041] Optionally, the preset animation effect processing logic includes at least one of the following: region transformation matrix processing logic, color transformation matrix processing logic, bitmap instance processing logic, component canvas processing logic, brush processing logic, layer processing logic, line processing logic, path processing logic, block processing logic and compression processing logic.

[0042] According to a third aspect of the present application, an electronic device is provided, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any one of the methods described in the first aspect when executing the computer program.

[0043] According to a fourth aspect of the present application, a readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of any one of the methods in the first aspect are implemented.

[0044] By means of the above technical scheme, the present application provides a component interaction processing method, device, electronic device and readable storage medium. Specifically, by switching the component parameters of the target component corresponding to the interface, at least one animation effect algorithm and at least one target animation effect processing logic of the produced animation effect are obtained, and then the component image is processed using at least one animation effect algorithm and at least one target animation effect processing logic, thereby forming a transition animation effect for playing in the interval between interface transitions. Compared with the prior art, the application can only display the current scene when the interface is switched, and cannot provide visual feedback to the user. If the interface switching time is long, the user may refresh or exit the application. The present application produces at least one animation effect corresponding to the target component according to the component parameters when the application components interact, and then displays at least one animation effect to achieve a smooth transition between component interactions, enrich the picture to attract users, provide visual feedback to users, and effectively improve the user experience.

[0045] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present application. Also, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0047] Figure 1 A schematic diagram of a component interaction processing method provided in an embodiment of the present application is shown;

[0048] Figure 2 A schematic diagram of another component interaction processing method provided in an embodiment of the present application is shown;

[0049] Figure 3 A schematic diagram of the structure of a component interaction processing device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0050] The exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.

[0051] The present application embodiment provides a component interaction processing method, such as Figure 1 As shown, the method includes:

[0052] 101. In response to a component interaction request of a target component, obtain a plurality of component parameters of the target component included in the component interaction request.

[0053] The present application provides a component interaction processing method. In actual applications, when a user uses a video playback application client, when the user wants to enter the interface of interest to watch a video, the user will click on the client to switch the interface. It should be noted that in an interface of an application, different functions, menus, etc. can be regarded as a component. For example, in a video application, the homepage is divided into multiple areas, such as selections, movies, TV series, variety shows, etc. Each area is regarded as a component. There will be a search box on the homepage, and the search box can also be regarded as a component. When the user browses the homepage and finds a movie of interest, the user clicks on the component in the movie area to enter the movie interface. At this time, the user's click operation is received, and the movie interface is loaded for interface switching. However, during the interface switching process, the length of time to load the interface usually depends on the user's current network environment. If the user's current network environment is poor and the loading time is long, the interface will usually be stationary at this time, and visual feedback cannot be provided to the user, so that the user cannot confirm whether the application receives the click operation. When the switch is not completed for a long time, the user may re-operate or directly exit the application, and the user's physical examination is poor, which reduces the user's viscosity. Based on the above problems, this application proposes that when a user performs component interaction operations, the component data of the target component selected by the user is matched, and the corresponding animation effect is produced, and then the animation effect is displayed to the user to provide the user with visual feedback of the interface switching.

[0054] Specifically, when using the application, the user selects the target component of interest and clicks it, receives the component interaction request of the target component, and obtains multiple component parameters of the target component. It can be understood that the target component refers to the component corresponding to the functions, menus, etc. on the interface of the application. For example, when the user browses the homepage of the application, he is interested in "Movie A" displayed in the movie area, and clicks on the movie component to jump to the interface corresponding to "Movie A". Then, the "Movie A" component is the target component. Then, all component parameters of the target component are used as the basic parameters for the subsequent generation of animation effects.

[0055] 102. Determine at least one animation effect algorithm and at least one target animation effect processing logic according to multiple component parameters.

[0056] In this step, the animation effect algorithm is used to generate the final animation effect, and the animation effect processing logic is used to generate the transition image when the components interact. Specifically, during the application development process, for any component set in the interface, multiple animation effects will be matched according to the component type, such as curtain closing, center zooming, alternating block rolling, etc. When the user operates the component on the client to interact with the component, at least one animation effect type corresponding to the target component, as well as at least one animation effect algorithm and at least one target animation effect processing logic for producing the animation effect can be quickly determined based on the component parameters of the target component selected by the user, and then at least one animation effect algorithm and at least one target animation effect processing logic are used to produce animation effects exclusive to the target component, so as to achieve a smooth transition between component interactions and enrich the picture to attract users.

[0057] 103. Generate at least one transition animation effect according to multiple component parameters, at least one animation effect algorithm, and at least one target animation effect processing logic.

[0058] In this step, during the interface conversion process of the application, the waiting time is usually determined by the user's current network status. If the user's current network status is poor, the interface conversion time is long. In order to enrich the picture, multiple types of animation effects are configured for each component in advance. After the user selects the target component corresponding to the program he wants to browse, at least one animation effect algorithm and at least one target animation effect processing logic for producing the corresponding animation effect are determined according to the component parameters of the target component. The component image of the target component can be processed using at least one animation effect algorithm and at least one target animation effect processing logic to form at least one transition effect animation when the interface transitions, which is then loaded and played to achieve the transition effect.

[0059] The component interaction processing method provided in the embodiment of the present application obtains at least one animation effect algorithm and at least one target animation effect processing logic for the produced animation effect by switching the component parameters of the target component corresponding to the interface, and then uses at least one animation effect algorithm and at least one target animation effect processing logic to process the component image, thereby forming a transition animation effect for playing in the interval between interface transitions. Compared with the prior art, the application can only display the current scene when the interface switches, and cannot provide visual feedback to the user. If the interface switching time is long, the user may refresh or exit the application. The present application produces at least one animation effect corresponding to the target component according to the component parameters when the application components interact, and then displays at least one animation effect to achieve a smooth transition between component interactions, enrich the picture to attract users, provide visual feedback to users, and effectively improve the user experience.

[0060] Further, as a refinement and extension of the specific implementation of the above embodiment, in order to fully illustrate the specific implementation process of this embodiment, the embodiment of the present application provides another component interaction processing method, such as Figure 2 As shown, the method includes:

[0061] 201. In response to a component interaction request of a target component, obtain a plurality of component parameters of the target component included in the component interaction request.

[0062] In this step, when using the application, the user selects the target component of interest and clicks it, receives the component interaction request of the target component, and obtains multiple component parameters of the target component. It can be understood that the target component refers to the component corresponding to the functions, menus, etc. on the interface of the application. For example, when the user browses the homepage of the application, he is interested in "Movie A" displayed in the movie area, and clicks on the movie component to jump to the interface corresponding to "Movie A". Then, the "Movie A" component is the target component. Then, all component parameters of the target component are used as the basic parameters for the subsequent generation of animation effects.

[0063] 202. Determine the component type of the target component according to the component identifier.

[0064] In this step, the multiple component parameters of the target component include the component identification of the target component and the image size information of the component image on the target component. Among them, the component identification of the target component refers to the component identity identification, for example, in a video playback application, the search box component, the selected area component, the movie channel component, etc. in the interface. Furthermore, the component image is the content image of the target component, and the component image can be determined according to the component type. Specifically, when the target component is a functional component, such as a search bar, etc., the interface image of the entire current interface can be used as the component image; when the target component is a menu component, such as a movie area component, the movie poster of the movie selected by the user can be used as the component image. During the application development process, when setting all components of the application, multiple animation effects can be configured for each component according to the component type. For example, the image of the functional component is the full-screen image of the current interface. At this time, for visual effects, animation effects such as indentation and spiral rotation can be set for it. However, since the full-screen image is too large, it is not suitable for magnification. Furthermore, for the images of menu-type components, taking the movie area component as an example, since the images of such components are usually small visual area images, such as a movie poster, TV series poster or other promotional images, they can be configured with animation effects such as center enlargement and alternating block rolling to ensure the compatibility between the component and the animation effect. During the use of the application, when there is component interaction and the interface needs to be switched, multiple animation effect types set can be matched according to the component type, and then these types of animation effects can be produced.

[0065] Specifically, when receiving a component interaction request from a user by clicking a target component, the identity of the target component is obtained, and the component type to which the component belongs is determined based on the identity of the component, so as to facilitate subsequent determination of the animation effect type corresponding to the target component based on the component type.

[0066] 203. Determine at least one animation effect algorithm corresponding to the target component according to the component type, the preset corresponding relationship and the preset animation effect algorithm library, wherein the preset corresponding relationship is the corresponding relationship between the component type and the animation effect type.

[0067] In this step, the preset correspondence refers to a pre-set correspondence between a component of any component type in an application and its corresponding animation effect type. According to the preset correspondence, the animation effect type that matches the target component can be determined. Furthermore, the preset animation effect algorithm library contains algorithms of all animation effect types, and the corresponding animation effect is produced by calling the algorithms of the preset animation effect algorithm library.

[0068] Optionally, the preset animation effect algorithm library includes at least one of the following: a curtain closing algorithm, a center magnification algorithm, a line-by-line block descent algorithm, an alternating block tumbling algorithm, a vertical bar algorithm, a fade-in and fade-out algorithm, a multi-color fade-in and fade-out algorithm, a diagonal fade-in and fade-out algorithm, a wire drawing algorithm, a random block algorithm, a blinds algorithm, a spiral rotation algorithm, a magnification algorithm, a retraction algorithm, a stretching algorithm, and a rolling curtain algorithm. By setting the animation effect algorithm library, up to 16 animation effect algorithms are provided, so that the animation effects when the application components interact are extremely rich, and the visual effects of the component interactions are effectively improved. Furthermore, when a new animation effect needs to be added to the application, or when some animation effects that the user does not like need to be deleted, there is no need to change other class library codes. It is only necessary to add or delete the corresponding algorithm class in the preset animation effect algorithm library, thereby improving the adaptability and extensibility of the application animation effect.

[0069] In an embodiment of the present application, optionally, in step 203, that is, based on the component type, the preset correspondence and the preset animation effect algorithm library, at least one animation effect algorithm corresponding to the target component is determined, specifically including: based on the component type and the preset correspondence, determining at least one animation effect type corresponding to the target component; based on at least one animation effect type, determining at least one animation effect algorithm in the preset animation effect algorithm library.

[0070] In this embodiment, after determining the component type of the target component, it is possible to determine the animation effect type of at least one animation effect that matches the target component based on the preset correspondence between the component and the animation effect, and then find the animation effect algorithm for each animation effect type in the preset animation effect algorithm library for subsequent production of the animation effect of the target component.

[0071] 204. Determine at least one target animation processing logic in a preset animation processing logic according to the image size information, the image color information, and at least one animation effect algorithm.

[0072] In this step, the preset animation processing logic is used to perform image processing on all target images. The component parameters also include image size information of the component image, such as the width and height of the image, and the color information of the image. Specifically, after the animation effect algorithm of the target component is determined, for example, the animation effect algorithm is a magnification algorithm, the entire transition animation effect is determined to be that the component image of the target component clicked by the user from the current interface gradually becomes larger to cover the entire interface, and finally jumps to the next interface. At this time, based on the image size information, color information and animation effect algorithm, the image processing method can be determined, and the corresponding target animation processing logic is screened out in the preset animation processing logic to perform image processing on the component image.

[0073] Optionally, the preset animation effect processing logic includes at least one of the following: region transformation matrix processing logic, color transformation matrix processing logic, bitmap instance processing logic, component canvas processing logic, brush processing logic, layer processing logic, line processing logic, path processing logic, block processing logic and compression processing logic.

[0074] Through the above method, the preset animation effect algorithm library and the preset animation effect processing logic for producing animation effects are set in advance. During the component interaction process, the corresponding animation effect algorithm and animation effect processing logic are obtained through the component parameters of the target component, and then a transition animation effect for playback is formed on the client. When the application animation effect is updated, it is only necessary to modify the preset animation effect algorithm library and the preset animation effect processing logic, without changing the library class code, so that the transition animation effect can be configured and updated more flexibly.

[0075] 205. Process the component image according to at least one target animation effect processing logic to generate a plurality of transition animation images.

[0076] 206. Generate at least one transition animation effect according to the multiple transition animation images and at least one animation effect algorithm.

[0077] In step 205 and step 206, at least one target animation effect processing logic is used to perform image processing on the component image, for example, a color transformation matrix processing logic is used to perform color processing on the component image, so as to generate multiple transition animation images. Specifically, when the animation effect type is enlargement, the size of the component is enlarged using the selected target animation effect processing logic to generate transition animation images of multiple sizes. Then, the multiple transition animation images are processed using an animation effect algorithm to form a transition animation effect corresponding to the animation effect type.

[0078] It is understandable that, since each target component may correspond to one or more animation effects, after determining the animation effect algorithm of each animation effect of the target component, at least one corresponding target animation effect processing logic is determined according to each animation effect algorithm and the size and color of the component image. Then, the animation effect algorithm is used to generate multiple transition animation images corresponding to the animation effect algorithm. When the target component corresponds to multiple animation effects, multiple animation effect algorithms are used to sequentially produce multiple transition animation effects.

[0079] 207. Display at least one transition animation effect.

[0080] In this step, when the user uses the application, according to the user's click operation on the target component, at least one transition animation effect corresponding to the target component is formed, and then at least one transition animation effect is played during the component interaction. It should be noted that based on the correspondence between the component type of the target component and the animation effect type, the transition animation effect of the target component finally formed can be one or more. When the transition animation effect is one, the transition animation effect can be directly displayed. When there are multiple transition animation effects, multiple transition animation effects can be randomly displayed. When making the transition animation effect, the duration of the transition animation effect will be controlled. If the user's current network environment is poor and the application component interaction time is long, when any transition animation effect is randomly displayed and reaches the display duration, the next transition animation effect is randomly displayed to improve the flexibility of the transition animation effect display, so as to enrich the user's visual effect and improve the user experience.

[0081] In a specific embodiment, the component interaction method is executed by a component interaction system. The system can be deployed on an application service platform that provides various services in the cloud. Specifically, the component interaction system includes a client call layer, an animation package call facade adapter, and an animation logic processor. Specifically, the client call layer is used to monitor the client component. When the client component calls the "animation guarantee call facade adapter", the client call layer passes multiple component parameters. When the event occurs, it automatically adapts to start displaying the transition animation effect in an independent thread. Further, the animation package calls the facade adapter, which is used to receive component parameters such as the passed component type, and automatically assign animation effects to the target component. Further, the animation logic processor is a general processing class library for providing underlying material support for animation effects, wherein the processing class includes area transformation matrix, color transformation matrix, bitmap (Bitmap) instance processing, component canvas processing, brush processing, layer processing, line processing, path processing, block processing, and compression processing. The algorithms include: curtain closing algorithm, center enlargement algorithm, line-by-line block descent algorithm, alternating block tumbling algorithm, vertical bar algorithm, fade-in and fade-out algorithm, multi-color fade-in and fade-out algorithm, diagonal fade-in and fade-out algorithm, wire drawing algorithm, random block algorithm, blinds algorithm, spiral rotation algorithm, enlargement algorithm, indentation algorithm, stretching algorithm and rolling curtain algorithm. Through the component interaction system, the client can automatically display the transition animation effect according to the component parameters, and the component interaction is rich and colorful without being rigid.

[0082] Further, as Figure 1 For the specific implementation of the method, the present application embodiment provides a component interaction processing device 300, such as Figure 3 As shown, the device comprises:

[0083] An acquisition module 301 is used to respond to a component interaction request of a target component and acquire a plurality of component parameters of the target component included in the component interaction request;

[0084] A determination module 302, for determining at least one animation effect algorithm and at least one target animation effect processing logic according to a plurality of component parameters;

[0085] The generating module 303 is used to generate at least one transition animation effect according to a plurality of component parameters, at least one animation effect algorithm and at least one target animation effect processing logic.

[0086] Optionally, the plurality of component parameters include a component identifier of the target component, image size information and image color information of the component image, and the determination module 302 is specifically configured to:

[0087] According to the component identifier, determine the component type of the target component;

[0088] Determine at least one animation effect algorithm corresponding to the target component according to the component type, the preset corresponding relationship and the preset animation effect algorithm library, wherein the preset corresponding relationship is the corresponding relationship between the component type and the animation effect type;

[0089] At least one target animation processing logic is determined in the preset animation processing logic according to the image size information, the image color information and at least one animation effect algorithm.

[0090] Optionally, the determination module 302 is further configured to:

[0091] Determine at least one animation effect type corresponding to the target component according to the component type and the preset corresponding relationship;

[0092] At least one animation effect algorithm is determined in a preset animation effect algorithm library according to at least one animation effect type.

[0093] Optionally, the generating module 303 is specifically configured to:

[0094] Processing the component image according to at least one target animation effect processing logic to generate a plurality of transition animation images;

[0095] At least one transition animation effect is generated according to a plurality of transition animation images and at least one animation effect algorithm.

[0096] Optionally, the device further comprises:

[0097] The display module 304 is used to display at least one transition animation effect.

[0098] Optionally, the preset animation effect algorithm library includes at least one of the following: a curtain pulling and closing algorithm, a center magnification algorithm, a line-by-line block descent algorithm, an alternating block rolling algorithm, a vertical bar algorithm, a fade-in and fade-out algorithm, a multi-color fade-in and fade-out algorithm, a diagonal fade-in and fade-out algorithm, a wire drawing algorithm, a random block algorithm, a blinds algorithm, a spiral rotation algorithm, a magnification algorithm, a retraction algorithm, a stretching algorithm, and a rolling curtain algorithm.

[0099] Optionally, the preset animation effect processing logic includes at least one of the following: region transformation matrix processing logic, color transformation matrix processing logic, bitmap instance processing logic, component canvas processing logic, brush processing logic, layer processing logic, line processing logic, path processing logic, block processing logic and compression processing logic.

[0100] The component interaction processing device 300 provided in the embodiment of the present application obtains at least one animation effect algorithm and at least one target animation effect processing logic for the produced animation effect by switching the component parameters of the target component corresponding to the interface, and then uses at least one animation effect algorithm and at least one target animation effect processing logic to process the component image, thereby forming a transition animation effect for playing in the interval between interface transitions. Compared with the prior art, the application can only display the current scene when the interface switches, and cannot provide visual feedback to the user. If the interface switching time is long, the user may refresh or exit the application. The present application produces at least one animation effect corresponding to the target component according to the component parameters when the application components interact, and then displays at least one animation effect to achieve a smooth transition between component interactions, enrich the picture to attract users, provide visual feedback to users, and effectively improve the user experience.

[0101] In an exemplary embodiment, the present application further provides an electronic device, including a memory and a processor. The memory stores a computer program, and the processor is used to execute the program stored in the memory and execute the component interaction processing method in the above embodiment.

[0102] In an exemplary embodiment, the present application further provides a readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the component interaction processing method are implemented.

[0103] Through the description of the above implementation methods, those skilled in the art can clearly understand that the present application can be implemented by hardware, or by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.), including a number of instructions for enabling an electronic device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each implementation scenario of the present application.

[0104] Those skilled in the art will appreciate that the accompanying drawings are merely schematic diagrams of a preferred implementation scenario, and the modules or processes in the accompanying drawings are not necessarily required for implementing the present application.

[0105] Those skilled in the art will appreciate that the modules in the device in the implementation scenario can be distributed in the device in the implementation scenario according to the implementation scenario description, or can be changed accordingly and located in one or more devices different from the implementation scenario. The modules in the above implementation scenario can be combined into one module, or can be further split into multiple sub-modules.

[0106] The above application serial numbers are for description only and do not represent the advantages or disadvantages of the implementation scenarios.

[0107] The above disclosure only discloses several specific implementation scenarios of the present application. However, the present application is not limited thereto, and any changes that can be conceived by technicians in this field should fall within the scope of protection of the present application.

Claims

1. A component interaction processing method, characterized in that: include: In response to a component interaction request of a target component, acquiring a plurality of component parameters of the target component included in the component interaction request; Determining at least one animation effect algorithm and at least one target animation effect processing logic according to the plurality of component parameters; At least one transition animation effect is generated according to the multiple component parameters, at least one animation effect algorithm and the at least one target animation effect processing logic.

2. The method according to claim 1, characterized in that: The multiple component parameters include the component identification of the target component, image size information and image color information of the component image, and the step of determining at least one animation effect algorithm and at least one target animation effect processing logic according to the multiple component parameters specifically includes: Determining the component type of the target component according to the component identifier; Determine the at least one animation effect algorithm corresponding to the target component according to the component type, the preset corresponding relationship and the preset animation effect algorithm library, wherein the preset corresponding relationship is a corresponding relationship between the component type and the animation effect type; According to the image size information, the image color information and the at least one animation effect algorithm, the at least one target animation processing logic is determined in the preset animation processing logic.

3. The method according to claim 2, characterized in that The step of determining the at least one animation effect algorithm corresponding to the target component according to the component type, the preset corresponding relationship and the preset animation effect algorithm library specifically includes: Determining at least one animation effect type corresponding to the target component according to the component type and the preset corresponding relationship; According to the at least one animation effect type, the at least one animation effect algorithm is determined in the preset animation effect algorithm library.

4. The method according to claim 2, characterized in that: The step of generating at least one transition animation effect according to the plurality of component parameters, at least one animation effect algorithm and the at least one target animation effect processing logic specifically comprises: Processing the component image according to the at least one target animation effect processing logic to generate a plurality of transition animation images; The at least one transition animation effect is generated according to the multiple transition animation images and the at least one animation effect algorithm.

5. The method according to claim 1, characterized in that After generating at least one transition animation effect according to the plurality of component parameters, at least one animation effect algorithm and the at least one target animation effect processing logic, the method further includes: The at least one transition animation effect is displayed.

6. The method according to any one of claims 1 to 5, characterized in that The preset animation effect algorithm library includes at least one of the following: curtain closing algorithm, center magnification algorithm, line-by-line block descent algorithm, alternating block rolling algorithm, vertical bar algorithm, fade in and fade out algorithm, multi-color fade in and fade out algorithm, diagonal fade in and fade out algorithm, wire drawing algorithm, random block algorithm, blinds algorithm, spiral rotation algorithm, magnification algorithm, retraction algorithm, stretching algorithm and rolling curtain algorithm.

7. The method according to any one of claims 1 to 5, characterized in that The preset animation effect processing logic includes at least one of the following: region transformation matrix processing logic, color transformation matrix processing logic, bitmap instance processing logic, component canvas processing logic, brush processing logic, layer processing logic, line processing logic, path processing logic, block processing logic and compression processing logic.

8. A component interaction processing device, characterized in that: include: an acquisition module, configured to, in response to a component interaction request of a target component, acquire a plurality of component parameters of the target component included in the component interaction request; A determination module, configured to determine at least one animation effect algorithm and at least one target animation effect processing logic according to the plurality of component parameters; A generation module is used to generate at least one transition animation effect according to the multiple component parameters, at least one animation effect algorithm and the at least one target animation effect processing logic.

9. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.