CN109992178A - Control method, device, storage medium and the electronic device of target element - Google Patents
Control method, device, storage medium and the electronic device of target element Download PDFInfo
- Publication number
- CN109992178A CN109992178A CN201810002854.1A CN201810002854A CN109992178A CN 109992178 A CN109992178 A CN 109992178A CN 201810002854 A CN201810002854 A CN 201810002854A CN 109992178 A CN109992178 A CN 109992178A
- Authority
- CN
- China
- Prior art keywords
- target element
- component
- animation
- client
- target
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
- Processing Or Creating Images (AREA)
Abstract
The invention discloses a kind of control method of target element, device, storage medium and electronic devices.Wherein, this method comprises: securing component control instruction, wherein the target element that component control instruction is used to indicate in control client shows the corresponding target element animation of object run;In response to component control instruction, target element animation is loaded;It is the movement of one or more component by target element animated transition;Control target element executes the movement of one or more component.The present invention, which solves, cannot achieve to the technical issues of component is runed in client.
Description
Technical field
The present invention relates to electronic fields, in particular to a kind of control method of target element, device, storage medium
And electronic device.
Background technique
Component animation is the important component of terminal technology, can be realized user interface abundant under its support
(User Interface, referred to as UI) effect, brings user's interactive experience of brilliance.But the prior art cannot achieve
Specific animation effect is imposed to wherein component using after publication, this causes many component animation effects abundant that can not run,
It can only be issued with application, seriously affect Product Experience.The prior art can be realized end by view animation or attribute animation
Hold the animation effect of component.Under current process, the implementation of component animation is since designer provides effect, to application hair
Cloth ends, and whole process just terminates after the completion of application publication, can not apply designer's newly designed animation to component again
Effect, therefore seriously affected using the rich of itself, limit the characteristic and interactive experience of product.
For above-mentioned problem, currently no effective solution has been proposed.
Summary of the invention
The embodiment of the invention provides a kind of control method of target element, device, storage medium and electronic devices, so that
It is few to solve to cannot achieve to the technical issues of component is runed in client.
According to an aspect of an embodiment of the present invention, a kind of control method of target element is provided, comprising: securing component
Control instruction, wherein the target element that the component control instruction is used to indicate in control client shows that object run is corresponding
Target element animation;In response to the component control instruction, the target element animation is loaded;By the target element animation
Be converted to the movement of one or more component;It controls the target element and executes one or more of component movements.
According to another aspect of an embodiment of the present invention, a kind of control device of target element is additionally provided, comprising: obtain mould
Block is used for securing component control instruction, wherein the component control instruction is used to indicate the target element exhibition in control client
Show the corresponding target element animation of object run;Loading module, for loading the target in response to the component control instruction
Component animation;Conversion module, for being the movement of one or more component by the target element animated transition;Control module,
One or more of component movements are executed for controlling the target element.
According to another aspect of an embodiment of the present invention, a kind of storage medium is additionally provided, which is characterized in that the storage is situated between
Computer program is stored in matter, wherein the computer program is arranged to execute described in any of the above-described when operation
Method.
According to another aspect of an embodiment of the present invention, a kind of electronic device, including memory and processor are additionally provided,
It is characterized in that, computer program is stored in the memory, and the processor is arranged to hold by the computer program
Method described in row any of the above-described.
In embodiments of the present invention, using securing component control instruction, wherein component control instruction is used to indicate control visitor
Target element in the end of family shows the corresponding target element animation of object run;In response to component control instruction, target group is loaded
Part animation;It is the movement of one or more component by target element animated transition;Control target element executes one or more
The mode of component movement indicates the target element target element animation to be shown by component control instruction, in response to obtaining
The component control instruction load target element animation arrived, converts thereof into the movement of one or more component, and control target
Component executes the movement of these components, so that target element can show different animation effects for different object runs,
So as to run the animation effect that target element is shown, the animation effect of the component displaying in client is reached more
Add purpose abundant, to realize the technical effect runed component in client, and then solves and cannot achieve pair
The technical issues of component is runed in client.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair
Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is a kind of schematic diagram of the control method of optional target element according to an embodiment of the present invention;
Fig. 2 is a kind of application environment schematic diagram of the control method of optional target element according to an embodiment of the present invention;
Fig. 3 is a kind of schematic diagram of the control method of optional target element of optional embodiment according to the present invention;
Fig. 4 is the signal of the control method of the optional target element of another kind of optional embodiment according to the present invention
Figure;
Fig. 5 is a kind of schematic diagram of the control device of optional target element according to an embodiment of the present invention;
Fig. 6 is a kind of application scenarios schematic diagram of the control method of optional target element according to an embodiment of the present invention;
And
Fig. 7 is a kind of schematic diagram of optional electronic device according to an embodiment of the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention
Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only
The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people
The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work
It encloses.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, "
Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way
Data be interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to illustrating herein or
Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover
Cover it is non-exclusive include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to
Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product
Or other step or units that equipment is intrinsic.
According to an aspect of an embodiment of the present invention, a kind of control method of target element is provided, as shown in Figure 1, should
Method includes:
S102, securing component control instruction, wherein component control instruction is used to indicate the target element in control client
Show the corresponding target element animation of object run;
S104 loads target element animation in response to component control instruction;
Target element animated transition is the movement of one or more component by S106;
S108, control target element execute the movement of one or more component.
Optionally, in the present embodiment, the control method of above-mentioned target element can be applied to terminal as shown in Figure 2
In 202 hardware environment constituted.As shown in Fig. 2, client 204 is installed in terminal 202,204 securing component of client
Control instruction, wherein the target element that component control instruction is used to indicate in control client 204 shows that object run is corresponding
Target element animation, client 204 loads target element animation in response to component control instruction, and target element animation is turned
It is changed to the movement of one or more component, control target element executes the movement of one or more component.
Optionally, in the present embodiment, the control method of above-mentioned target element can be, but not limited to be applied to client
In the scene runed of component in.Wherein, above-mentioned client can be, but not limited to as various types of applications, for example,
It is line educational applications, instant messaging application, community space application, game application, shopping application, browser application, financial application, more
Media application etc..Specifically, can be, but not limited to be applied to carry out the component in client in above-mentioned instant messaging application
In the scene of operation, or can with but be not limited to be applied in above-mentioned game application run the component in client
In scene, component in client is runed with realizing.Above-mentioned is only a kind of example, does not do any limit to this in the present embodiment
It is fixed.
Optionally, in the present embodiment, target element can be any one of client element.Such as: interface, column
Table, menu, icon etc..
Optionally, in the present embodiment, object run can be, but not limited to include: clicking operation, drag operation, sliding behaviour
Work, zoom operations etc..The object for being performed object run can not be target element, be also possible to target element, at this
It is not construed as limiting in embodiment.
Such as: to be performed the object of object run as target element, which is chatting for instant communication client
For its interface, as shown in figure 3, object run is to click chat interface, target element animation is chat interface shake, then
After client detects that user carries out clicking operation to chat interface, client, which is got, is used to indicate control chat interface displaying
The component control instruction of jitter effect, client end response is in the animation of component control instruction load chat interface shake, by this
Animated transition is five components movements, comprising: chat interface is deviated to offset, chat interface on the left of screen to screen top, chatted
Offset, chat interface return to center Screen to offset, chat interface below screen on the right side of heaven screen-oriented, and client control is chatted
Its interface executes above-mentioned five movements, then the animation effect of chat interface shake is shown on the screen of client.
In another example, using be performed the object of object run as in client other elements (such as: chat circle
Sketch drawing mark in face), for the target element is the information input frame in instant communication client chat interface, such as Fig. 4 institute
To show, object run is to click microphone icon, and target element animation becomes microphone after being rotated by 360 ° for information input frame, then
After client detects that user session sketch drawing mark carries out clicking operation, client, which is got, is used to indicate control information input frame rotation
Become the component control instruction of microphone after three-sixth turn, client end response is rotated in the component control instruction load information input frame
The animated transition is eight component movements, comprising: information input frame rotates counterclockwise to by the animation for becoming microphone after 360 degree
45 degree of positions, information input frame rotate counterclockwise to 90 degree of positions, information input frame rotates counterclockwise to 135 degree of positions, information
Input frame rotates counterclockwise to 180 degree position, information input frame rotates counterclockwise to 225 degree of positions, information input frame is counterclockwise
Rotate to 270 degree of positions, information input frame rotates counterclockwise to 315 degree of positions, information input frame becomes microphone icon, client
It controls information input frame and executes above-mentioned eight movements, then shown on the screen of client after information input frame is rotated by 360 °
Become the animation effect of microphone.
Optionally, in the present embodiment, component movement can be, but not limited to include the attribute information of component, component animation
Information etc..Such as: the movement of control assembly executive module can be, but not limited to be that control assembly is translated, rotated, scaled
The movement for changing component coordinate can also be in control assembly display change transparency, change brightness, change contrast, show
Animation shows the animation effects such as image.
Optionally, in the present embodiment, it can be, but not limited to establish component movement carrying in the client for target element
Unit, and load bearing unit is acted come the load of performance objective component animation, conversion and control assembly executive module by the component
The operation of movement.
Optionally, in the present embodiment, target element animation can be, but not limited to be got from server, can also
With but be not limited to be locally stored in client.The developer of client can to the component animation stored in client into
The operations such as row modification, replacement, and be saved on server, client can be periodically by the component of the new version stored on server
Animation is locally downloading to be stored or is replaced original version.Alternatively, client can also be in each securing component animation
When query service device on the presence or absence of update version, if there is update, then pulled from server, if do not updated,
It is loaded directly into the component animation being locally stored.
Optionally, in the present embodiment, the process converted to target element animation can be, but not limited to be to target
Target element animated transition is by the operations such as component animation verified, parsed, operation, conversion and modification by aforesaid operations
Matrix information is acted, which can carry out operation with component coordinate to the position of control assembly.
As it can be seen that through the above steps, component control instruction indicates the target element target element animation to be shown, response
Target element animation is loaded in the component control instruction got, converts thereof into the movement of one or more component, and control
Target element processed executes the movement of these components, so that target element can show different move for different object runs
Effect is drawn, so as to run the animation effect that target element is shown, has reached the dynamic of the component displaying in client
Effect purpose more abundant is drawn, to realize the technical effect runed component in client, and then solves nothing
The technical issues of component in client is runed in method realization.
As a kind of optional scheme, in response to component control instruction, loading target element animation includes:
S1, the object run mark carried in securing component control instruction, wherein object run is identified for identifying target
Operation;
S2, from corresponding relationship operation mark and component animation in search object run and identify corresponding target element
Animation;
S3 loads target element animation in the client.
Optionally, in the present embodiment, the target behaviour for identifying object run can be carried in component control instruction
Make a check mark, by object run mark from corresponding relationship operation mark and component animation in find target element dynamic
It draws, and loads the target element animation in the client.
In an optional embodiment, operation mark and component animation with corresponding relationship are with as shown in Table 1
Form stores in the client, and the object run carried in the component control instruction that client is got is identified as ID-2, then objective
It is animation file that family end finds the corresponding target element animation of object run mark ID-2 from corresponding relationship indicated by table 1
2, and the animation file 2 is loaded into client.
Table 1
Operation | Operation mark | Component animation |
Operation 1 | ID-1 | Animation file 1 |
Operation 2 | ID-2 | Animation file 2 |
Operation 3 | ID-3 | Animation file 3 |
It is that the movement of one or more component includes: by target element animated transition as a kind of optional scheme
S1 obtains one or more action element and the corresponding movement of each action element from target element animation
Time;
S2 determines that one or more component acts according to action element and actuation time, wherein each component movement packet
Include one or more action element and actuation time with corresponding relationship.
Optionally, in the present embodiment, component movement in include action element and action element corresponding actuation time,
The actuation time is used to indicate displaying time of the action element in target element animation, i.e. one or more component movement is
Control the ordinal relation between each movement and each movement that target element executes.
In an optional embodiment, each component movement can be referred to as movement, and movement attached bag includes movement
Effect unit (i.e. action element) and time shaft (i.e. actuation time) two parts, action effect unit can indicate translation, scaling,
The action effects such as rotation, transparency, time shaft can indicate the time relationship between action effect.
Optionally, in the present embodiment, one can be executed according to the time sequencing of actuation time by control target element
A or multiple action elements usually control target element and execute the movement of one or more component.
As a kind of optional scheme, each action element includes: attribute information and/or animation information, wherein attribute letter
Breath is used to indicate the characteristic attribute of target element, and animation information is used to indicate the animation played on target element, controls target
It includes following one that component, which executes action element:
S1, control target element show attribute information;
S2 shows animation information on target element;
S3, control target element shows attribute information, and shows animation information on target element simultaneously.
Optionally, in the present embodiment, attribute information can be, but not limited to include the coordinate information, component of component display
In information (such as: the information such as transparency, brightness, contrast, color), component text information (such as: the font of text, sample
Formula, font size) etc..
Optionally, in the present embodiment, animation information can be, but not limited to include the video shown on component, image etc.
Information.
As a kind of optional scheme, securing component control instruction includes:
S1, detection log in the object run that the account number of client executes the target object in client;
S2, from the target element corresponding with object run is obtained in component of the operation with corresponding relationship;
S3 is based on target element formation component control instruction.
Optionally, in the present embodiment, it can have between the component in operation and client executed in client pair
It should be related to, such as: for the same object in client, different operations can control different components and execute different groups
Part animation.Client can according to detecting the object run executed to target object in client on the client, from
Target element, and formation component control instruction are obtained in operation and component with corresponding relationship, in instruction control client
Target element show the corresponding target element animation of object run.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of
Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because
According to the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know
It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules is not necessarily of the invention
It is necessary.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation
The method of example can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but it is very much
In the case of the former be more preferably embodiment.Based on this understanding, technical solution of the present invention is substantially in other words to existing
The part that technology contributes can be embodied in the form of software products, which is stored in a storage
In medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, calculate
Machine, server or network equipment etc.) execute method described in each embodiment of the present invention.
Other side according to an embodiment of the present invention additionally provides a kind of for implementing the controlling party of above-mentioned target element
The control device of the target element of method, as shown in figure 5, the device includes:
1) module 52 is obtained, is used for securing component control instruction, wherein component control instruction is used to indicate control client
In target element show the corresponding target element animation of object run;
2) loading module 54, for loading target element animation in response to component control instruction;
3) conversion module 56, for being the movement of one or more component by target element animated transition;
4) control module 58 execute the movement of one or more component for controlling target element.
Optionally, in the present embodiment, the control device of above-mentioned target element can be applied to terminal as shown in Figure 2
In 202 hardware environment constituted.As shown in Fig. 2, client 204 is installed in terminal 202,204 securing component of client
Control instruction, wherein the target element that component control instruction is used to indicate in control client 204 shows that object run is corresponding
Target element animation, client 204 loads target element animation in response to component control instruction, and target element animation is turned
It is changed to the movement of one or more component, control target element executes the movement of one or more component.
Optionally, in the present embodiment, the control device of above-mentioned target element can be, but not limited to be applied to client
In the scene runed of component in.Wherein, above-mentioned client can be, but not limited to as various types of applications, for example,
It is line educational applications, instant messaging application, community space application, game application, shopping application, browser application, financial application, more
Media application etc..Specifically, can be, but not limited to be applied to carry out the component in client in above-mentioned instant messaging application
In the scene of operation, or can with but be not limited to be applied in above-mentioned game application run the component in client
In scene, component in client is runed with realizing.Above-mentioned is only a kind of example, does not do any limit to this in the present embodiment
It is fixed.
Optionally, in the present embodiment, target element can be any one of client element.Such as: interface, column
Table, menu, icon etc..
Optionally, in the present embodiment, object run can be, but not limited to include: clicking operation, drag operation, sliding behaviour
Work, zoom operations etc..The object for being performed object run can not be target element, be also possible to target element, at this
It is not construed as limiting in embodiment.
Such as: to be performed the object of object run as target element, which is chatting for instant communication client
For its interface, as shown in figure 3, object run is to click chat interface, target element animation is chat interface shake, then
After client detects that user carries out clicking operation to chat interface, client, which is got, is used to indicate control chat interface displaying
The component control instruction of jitter effect, client end response is in the animation of component control instruction load chat interface shake, by this
Animated transition is five components movements, comprising: chat interface is deviated to offset, chat interface on the left of screen to screen top, chatted
Offset, chat interface return to center Screen to offset, chat interface below screen on the right side of heaven screen-oriented, and client control is chatted
Its interface executes above-mentioned five movements, then the animation effect of chat interface shake is shown on the screen of client.
In another example, using be performed the object of object run as in client other elements (such as: chat circle
Sketch drawing mark in face), for the target element is the information input frame in instant communication client chat interface, such as Fig. 4 institute
To show, object run is to click microphone icon, and target element animation becomes microphone after being rotated by 360 ° for information input frame, then
After client detects that user session sketch drawing mark carries out clicking operation, client, which is got, is used to indicate control information input frame rotation
Become the component control instruction of microphone after three-sixth turn, client end response is rotated in the component control instruction load information input frame
The animated transition is eight component movements, comprising: information input frame rotates counterclockwise to by the animation for becoming microphone after 360 degree
45 degree of positions, information input frame rotate counterclockwise to 90 degree of positions, information input frame rotates counterclockwise to 135 degree of positions, information
Input frame rotates counterclockwise to 180 degree position, information input frame rotates counterclockwise to 225 degree of positions, information input frame is counterclockwise
Rotate to 270 degree of positions, information input frame rotates counterclockwise to 315 degree of positions, information input frame becomes microphone icon, client
It controls information input frame and executes above-mentioned eight movements, then shown on the screen of client after information input frame is rotated by 360 °
Become the animation effect of microphone.
Optionally, in the present embodiment, component movement can be, but not limited to include the attribute information of component, component animation
Information etc..Such as: the movement of control assembly executive module can be, but not limited to be that control assembly is translated, rotated, scaled
The movement for changing component coordinate can also be in control assembly display change transparency, change brightness, change contrast, show
Animation shows the animation effects such as image.
Optionally, in the present embodiment, it can be, but not limited to establish component movement carrying in the client for target element
Unit, and load bearing unit is acted come the load of performance objective component animation, conversion and control assembly executive module by the component
The operation of movement.
Optionally, in the present embodiment, target element animation can be, but not limited to be got from server, can also
With but be not limited to be locally stored in client.The developer of client can to the component animation stored in client into
The operations such as row modification, replacement, and be saved on server, client can be periodically by the component of the new version stored on server
Animation is locally downloading to be stored or is replaced original version.Alternatively, client can also be in each securing component animation
When query service device on the presence or absence of update version, if there is update, then pulled from server, if do not updated,
It is loaded directly into the component animation being locally stored.
Optionally, in the present embodiment, the process converted to target element animation can be, but not limited to be to target
Target element animated transition is by the operations such as component animation verified, parsed, operation, conversion and modification by aforesaid operations
Matrix information is acted, which can carry out operation with component coordinate to the position of control assembly.
As it can be seen that component control instruction indicates the target element target element animation to be shown, response by above-mentioned apparatus
Target element animation is loaded in the component control instruction got, converts thereof into the movement of one or more component, and control
Target element processed executes the movement of these components, so that target element can show different move for different object runs
Effect is drawn, so as to run the animation effect that target element is shown, has reached the dynamic of the component displaying in client
Effect purpose more abundant is drawn, to realize the technical effect runed component in client, and then solves nothing
The technical issues of component in client is runed in method realization.
As a kind of optional scheme, loading module includes:
1) first acquisition unit, the object run mark for being carried in securing component control instruction, wherein object run
Mark is for identifying object run;
2) searching unit, for from corresponding relationship operation mark and component animation in search object run mark pair
The target element animation answered;
3) loading unit, for loading target element animation in the client, wherein component movement load bearing unit is for broadcasting
Put target element animation.
Optionally, in the present embodiment, the target behaviour for identifying object run can be carried in component control instruction
Make a check mark, by object run mark from corresponding relationship operation mark and component animation in find target element dynamic
It draws, and loads the target element animation in the client.
In an optional embodiment, operation mark and component animation with corresponding relationship are with as shown in Table 2
Form stores in the client, and the object run carried in the component control instruction that client is got is identified as ID-2, then objective
It is animation file that family end finds the corresponding target element animation of object run mark ID-2 from corresponding relationship indicated by table 2
2, and the animation file 2 is loaded into client.
Table 2
Operation | Operation mark | Component animation |
Operation 1 | ID-1 | Animation file 1 |
Operation 2 | ID-2 | Animation file 2 |
Operation 3 | ID-3 | Animation file 3 |
As a kind of optional scheme, conversion module includes:
1) second acquisition unit, for obtaining one or more action element from target element animation and each moving
Make element corresponding actuation time;
2) determination unit, for determining that one or more component acts according to action element and actuation time, wherein every
A component movement includes one or more action element and actuation time with corresponding relationship.
Optionally, in the present embodiment, component movement in include action element and action element corresponding actuation time,
The actuation time is used to indicate displaying time of the action element in target element animation, i.e. one or more component movement is
Control the ordinal relation between each movement and each movement that target element executes.
In an optional embodiment, each component movement can be referred to as movement, and movement attached bag includes movement
Effect unit (i.e. action element) and time shaft (i.e. actuation time) two parts, action effect unit can indicate translation, scaling,
The action effects such as rotation, transparency, time shaft can indicate the time relationship between action effect.
Optionally, in the present embodiment, one can be executed according to the time sequencing of actuation time by control target element
A or multiple action elements usually control target element and execute the movement of one or more component.
As a kind of optional scheme, each action element includes: attribute information and/or animation information, wherein attribute letter
Breath is used to indicate the characteristic attribute of target element, and animation information is used to indicate the animation played on target element, control unit
Including following one:
1) the first control subelement shows attribute information for controlling target element;
2) the second control subelement, for showing animation information on target element;
3) third controls subelement, shows attribute information for controlling target element, and show on target element simultaneously
Animation information.
Optionally, in the present embodiment, attribute information can be, but not limited to include the coordinate information, component of component display
In information (such as: the information such as transparency, brightness, contrast, color), component text information (such as: the font of text, sample
Formula, font size) etc..
Optionally, in the present embodiment, animation information can be, but not limited to include the video shown on component, image etc.
Information.
As a kind of optional scheme, obtaining module includes:
1) detection unit, for detecting the target behaviour for logging in the account number of client and executing to the target object in client
Make;
2) third acquiring unit, for from corresponding relationship operation with the corresponding target of object run is obtained in component
Component;
3) generation unit, for being based on target element formation component control instruction.
Optionally, in the present embodiment, it can have between the component in operation and client executed in client pair
It should be related to, such as: for the same object in client, different operations can control different components and execute different groups
Part animation.Client can according to detecting the object run executed to target object in client on the client, from
Target element, and formation component control instruction are obtained in operation and component with corresponding relationship, in instruction control client
Target element show the corresponding target element animation of object run.
The application environment of the embodiment of the present invention can be, but not limited to referring to the application environment in above-described embodiment, the present embodiment
In this is repeated no more.The embodiment of the invention provides the optional tools of one kind of the control method for implementing above-mentioned target element
Body application example.
As a kind of optional embodiment, the control method of above-mentioned target element can be, but not limited to be applied to such as Fig. 6 institute
In the scene controlled target element shown.Component animation is the important component of terminal technology, the energy under its support
It enough realizes UI effect abundant, brings user's interactive experience of brilliance.But the prior art cannot achieve using right after issuing
Wherein component imposes the operation of specific animation effect, this causes many component animation effects abundant that can not run, Zhi Nengsui
Using issuing together, Product Experience is seriously affected.In face of this difficult point, this embodiment introduces component movement load bearing unit and
Act the concept of son.
Component movement load bearing unit be intended to complete to operation movement content management, including load, verification, parsing, operation,
Conversion, modification etc., movement until obtaining component movement.It acts this sub concept and refers to the characterization obtained by matrix operation
The element, including translation, scaling, rotation and transparency of most basic movement that component can carry out and other effects unit and time shaft list
Member.Mapping relations are established by the way that component and component are acted load bearing unit, it will be able to be carried component movement load bearing unit
Elemental motion effect binding time axis united application provides more abundant, good user's body on the terminal assembly after publication
It tests.
As shown in fig. 6, creation component acts load bearing unit and establishes mapping relations with target element, is acted and carried by component
Unit loads newly-designed target element animation.After loaded, to the verification of target element animation information row, parsing, operation, turn
It changes and modifies, through the above steps can be movement matrix information by the animated transition designed, which can sit with component
Mark carries out operation to control position, display effect of target element etc..Generation movement, movement attached bag include action effect unit
And time shaft two parts, action effect unit is for indicating that the action effects such as translation, scaling, rotation, transparency, time shaft are used
To indicate the time relationship between effect.In conjunction with action effect unit and time shaft, formation component animation effect simultaneously acts on target
Component controls the coordinate of target element.Aforesaid way is used, so that the publication of component animation can be touched up to user, promotes interaction body
It tests.
Above-mentioned technical proposal expands the component animation effect that original one-pass molding, publication can not change, and meets
The operation demand of component animation, application publication after still can control assembly player module animation, enrich application effect, improve
Interactivity, and then promote user experience.
Another aspect according to an embodiment of the present invention additionally provides a kind of for implementing the control of above-mentioned target element
Electronic device, as shown in fig. 7, the electronic device includes: one or more (only showing one in figure) processor 702, memory
704, sensor 706, encoder 708 and transmitting device 710 are stored with computer program in the memory, the processor quilt
It is set as executing the step in any of the above-described embodiment of the method by computer program.
Optionally, in the present embodiment, above-mentioned electronic device can be located in multiple network equipments of computer network
At least one network equipment.
Optionally, in the present embodiment, above-mentioned processor can be set to execute following steps by computer program:
S1, securing component control instruction, wherein component control instruction is used to indicate the target element exhibition in control client
Show the corresponding target element animation of object run;
S2 loads target element animation in response to component control instruction;
Target element animated transition is the movement of one or more component by S3;
S4, control target element execute the movement of one or more component.
Optionally, it will appreciated by the skilled person that structure shown in Fig. 7 is only to illustrate, electronic device can also
To be smart phone (such as Android phone, iOS mobile phone), tablet computer, palm PC and mobile internet device
The terminal devices such as (Mobile Internet Devices, MID), PAD.Fig. 7 it does not cause to the structure of above-mentioned electronic device
It limits.For example, electronic device may also include more or less component (such as network interface, display device than shown in Fig. 7
Deng), or with the configuration different from shown in Fig. 7.
Wherein, memory 702 can be used for storing software program and module, such as the target element in the embodiment of the present invention
Control method and the corresponding program instruction/module of device, the software journey that processor 704 is stored in memory 702 by operation
Sequence and module realize the control method of above-mentioned target element thereby executing various function application and data processing.It deposits
Reservoir 702 may include high speed random access memory, can also include nonvolatile memory, as one or more magnetic storage fills
It sets, flash memory or other non-volatile solid state memories.In some instances, memory 702 can further comprise relative to place
The remotely located memory of device 704 is managed, these remote memories can pass through network connection to terminal.The example packet of above-mentioned network
Include but be not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Above-mentioned transmitting device 710 is used to that data to be received or sent via a network.Above-mentioned network specific example
It may include cable network and wireless network.In an example, transmitting device 710 includes a network adapter (Network
Interface Controller, NIC), can be connected by cable with other network equipments with router so as to interconnection
Net or local area network are communicated.In an example, transmitting device 710 is radio frequency (Radio Frequency, RF) module,
For wirelessly being communicated with internet.
Wherein, specifically, memory 702 is for storing target element animation and application program.
The embodiments of the present invention also provide a kind of storage medium, computer program is stored in the storage medium, wherein
The computer program is arranged to execute the step in any of the above-described embodiment of the method when operation.
Optionally, in the present embodiment, above-mentioned storage medium can be set to store by executing based on following steps
Calculation machine program:
S1, securing component control instruction, wherein component control instruction is used to indicate the target element exhibition in control client
Show the corresponding target element animation of object run;
S2 loads target element animation in response to component control instruction;
Target element animated transition is the movement of one or more component by S3;
S4, control target element execute the movement of one or more component.
Optionally, storage medium is also configured to store for executing step included in the method in above-described embodiment
Computer program, this is repeated no more in the present embodiment.
Optionally, in the present embodiment, those of ordinary skill in the art will appreciate that in the various methods of above-described embodiment
All or part of the steps be that the relevant hardware of terminal device can be instructed to complete by program, the program can store in
In one computer readable storage medium, storage medium may include: flash disk, read-only memory (Read-Only Memory,
ROM), random access device (Random Access Memory, RAM), disk or CD etc..
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
If the integrated unit in above-described embodiment is realized in the form of SFU software functional unit and as independent product
When selling or using, it can store in above-mentioned computer-readable storage medium.Based on this understanding, skill of the invention
Substantially all or part of the part that contributes to existing technology or the technical solution can be with soft in other words for art scheme
The form of part product embodies, which is stored in a storage medium, including some instructions are used so that one
Platform or multiple stage computers equipment (can be personal computer, server or network equipment etc.) execute each embodiment institute of the present invention
State all or part of the steps of method.
In the above embodiment of the invention, it all emphasizes particularly on different fields to the description of each embodiment, does not have in some embodiment
The part of detailed description, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed client, it can be by others side
Formula is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of the unit, and only one
Kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or
It is desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or discussed it is mutual it
Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of unit or module
It connects, can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered
It is considered as protection scope of the present invention.
Claims (14)
1. a kind of control method of target element characterized by comprising
Securing component control instruction, wherein the target element that the component control instruction is used to indicate in control client is shown
The corresponding target element animation of object run;
In response to the component control instruction, the target element animation is loaded;
It is the movement of one or more component by the target element animated transition;
It controls the target element and executes one or more of component movements.
2. the method according to claim 1, wherein loading the target in response to the component control instruction
Component animation includes:
Obtain the object run mark carried in the component control instruction, wherein the object run mark is for identifying
State object run;
From with corresponding relationship operation mark and component animation in search the object run and identify the corresponding target group
Part animation;
The target element animation is loaded in the client.
3. according to the method described in claim 2, it is characterized in that, being one or more by the target element animated transition
Component acts
One or more action element is obtained from the target element animation and each action element is corresponding dynamic
Make the time;
One or more of component movements are determined according to the action element and the actuation time, wherein each described
Component movement includes one or more action element and actuation time with corresponding relationship.
4. according to the method described in claim 3, it is characterized in that, control the target element execute it is one or more of
Component acts
It controls the target element and executes one or more of action elements according to the time sequencing of the actuation time.
5. according to the method described in claim 4, it is characterized in that, each action element includes: attribute information and/or moves
Draw information, wherein the attribute information is used to indicate the characteristic attribute of the target element, and the animation information is used to indicate
The animation played on the target element, controlling the target element and executing the action element includes following one:
It controls the target element and shows the attribute information;
The animation information is shown on the target element;
It controls the target element and shows the attribute information, and show the animation information on the target element simultaneously.
6. the method according to any one of claims 1 to 5, which is characterized in that securing component control instruction includes:
Detection logs in the object run that the account number of the client executes the target object in the client;
From with corresponding relationship operation and component in obtain the corresponding target element of the object run;
The component control instruction is generated based on the target element.
7. a kind of control device of target element characterized by comprising
Module is obtained, securing component control instruction is used for, wherein the component control instruction is used to indicate in control client
Target element shows the corresponding target element animation of object run;
Loading module, for loading the target element animation in response to the component control instruction;
Conversion module, for being the movement of one or more component by the target element animated transition;
Control module executes one or more of component movements for controlling the target element.
8. device according to claim 7, which is characterized in that the loading module includes:
First acquisition unit, for obtaining the object run carried in the component control instruction mark, wherein the target behaviour
It makes a check mark for identifying the object run;
Searching unit, for from corresponding relationship operation mark and component animation in search object run mark and correspond to
The target element animation;
Loading unit, for loading the target element animation in the client, wherein the component acts load bearing unit
For playing the target element animation.
9. device according to claim 8, which is characterized in that the conversion module includes:
Second acquisition unit, for obtaining one or more action element and each described from the target element animation
Action element corresponding actuation time;
Determination unit, for determining that one or more of components act according to the action element and the actuation time,
Wherein, each component movement includes one or more action element and actuation time with corresponding relationship.
10. device according to claim 9, which is characterized in that the control module includes:
Control unit, it is one or more according to the time sequencing execution of the actuation time for controlling the target element
A action element.
11. device according to claim 10, which is characterized in that each action element includes:
Attribute information and/or animation information, wherein the attribute information is used to indicate the characteristic attribute of the target element, institute
It states animation information and is used to indicate the animation played on the target element, described control unit includes following one:
First control subelement shows the attribute information for controlling the target element;
Second control subelement, for showing the animation information on the target element;
Third controls subelement, shows the attribute information for controlling the target element, and simultaneously in the target element
The upper display animation information.
12. device according to any one of claims 7 to 11, which is characterized in that the acquisition module includes:
Detection unit, for detecting the mesh for logging in the account number of the client and executing to the target object in the client
Mark operation;
Third acquiring unit, for from corresponding relationship operation and component in obtain the corresponding mesh of the object run
Mark component;
Generation unit, for generating the component control instruction based on the target element.
13. a kind of storage medium, which is characterized in that be stored with computer program in the storage medium, wherein the computer
Program is arranged to execute method described in any one of claim 1 to 6 when operation.
14. a kind of electronic device, including memory and processor, which is characterized in that be stored with computer journey in the memory
Sequence, the processor are arranged to execute side described in any one of claim 1 to 6 by the computer program
Method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810002854.1A CN109992178B (en) | 2018-01-02 | 2018-01-02 | Control method and device of target component, storage medium and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810002854.1A CN109992178B (en) | 2018-01-02 | 2018-01-02 | Control method and device of target component, storage medium and electronic device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109992178A true CN109992178A (en) | 2019-07-09 |
CN109992178B CN109992178B (en) | 2023-09-26 |
Family
ID=67128289
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810002854.1A Active CN109992178B (en) | 2018-01-02 | 2018-01-02 | Control method and device of target component, storage medium and electronic device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109992178B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113687815A (en) * | 2021-09-07 | 2021-11-23 | 网易(杭州)网络有限公司 | Method and device for processing multi-component dynamic effect in container, electronic equipment and storage medium |
CN114546568A (en) * | 2022-02-25 | 2022-05-27 | 重庆紫光华山智安科技有限公司 | Page element drag and drop method and device, electronic equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102007486A (en) * | 2007-03-26 | 2011-04-06 | 郑相国 | Program designed master animation and method for producing thereof |
CN102289339A (en) * | 2010-06-21 | 2011-12-21 | 腾讯科技(深圳)有限公司 | Method and device for displaying expression information |
US20150038203A1 (en) * | 2012-01-27 | 2015-02-05 | Golfzon Co., Ltd. | System and method for providing ball game |
CN106250046A (en) * | 2016-08-10 | 2016-12-21 | 北京金山安全软件有限公司 | Praise processing method and device and terminal equipment |
CN107204031A (en) * | 2017-04-27 | 2017-09-26 | 腾讯科技(深圳)有限公司 | Information displaying method and device |
CN107294838A (en) * | 2017-05-24 | 2017-10-24 | 腾讯科技(深圳)有限公司 | Animation producing method, device, system and the terminal of social networking application |
-
2018
- 2018-01-02 CN CN201810002854.1A patent/CN109992178B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102007486A (en) * | 2007-03-26 | 2011-04-06 | 郑相国 | Program designed master animation and method for producing thereof |
CN102289339A (en) * | 2010-06-21 | 2011-12-21 | 腾讯科技(深圳)有限公司 | Method and device for displaying expression information |
US20150038203A1 (en) * | 2012-01-27 | 2015-02-05 | Golfzon Co., Ltd. | System and method for providing ball game |
CN106250046A (en) * | 2016-08-10 | 2016-12-21 | 北京金山安全软件有限公司 | Praise processing method and device and terminal equipment |
CN107204031A (en) * | 2017-04-27 | 2017-09-26 | 腾讯科技(深圳)有限公司 | Information displaying method and device |
CN107294838A (en) * | 2017-05-24 | 2017-10-24 | 腾讯科技(深圳)有限公司 | Animation producing method, device, system and the terminal of social networking application |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113687815A (en) * | 2021-09-07 | 2021-11-23 | 网易(杭州)网络有限公司 | Method and device for processing multi-component dynamic effect in container, electronic equipment and storage medium |
CN113687815B (en) * | 2021-09-07 | 2024-03-15 | 网易(杭州)网络有限公司 | Method and device for processing dynamic effects of multiple components in container, electronic equipment and storage medium |
CN114546568A (en) * | 2022-02-25 | 2022-05-27 | 重庆紫光华山智安科技有限公司 | Page element drag and drop method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109992178B (en) | 2023-09-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104584513B (en) | Select the apparatus and method for sharing the device of operation for content | |
CN103460170B (en) | Graphic user interface with customizing navigation | |
CN105933211B (en) | The sharing method and client and system of a kind of game data | |
CN108156523A (en) | The interactive approach and device that interactive video plays | |
CN110809175B (en) | Video recommendation method and device | |
CN111282268B (en) | Plot showing method, plot showing device, plot showing terminal and storage medium in virtual environment | |
CN104395882A (en) | Creation and context-aware presentation of customized emoticon item sets | |
CN103797761B (en) | Communication method, client, and terminal | |
CN103412748B (en) | Display control method, the apparatus and system of the user interface of embedded platform | |
CN107122175A (en) | Interface creating method and device | |
CN106502644A (en) | Direct broadcasting room electronics present gives display effect control method, device and equipment | |
CN107952242A (en) | A kind of terminal software experiential method, terminal and computer-readable recording medium | |
CN111158924B (en) | Content sharing method and device, electronic equipment and readable storage medium | |
CN110399583A (en) | Page display method, device, electronic equipment and storage medium | |
CN106951220A (en) | The method and apparatus of data processing | |
CN108228444A (en) | A kind of test method and device | |
CN109391848A (en) | A kind of interactive advertisement system | |
CN107180115A (en) | The exchange method and system of robot | |
CN109992178A (en) | Control method, device, storage medium and the electronic device of target element | |
CN108810132A (en) | Cartoon display method, device, terminal, server and storage medium | |
CN106209584B (en) | User information processing method, client and server Internet-based | |
CN108401173A (en) | Interactive terminal, method and the computer readable storage medium of mobile live streaming | |
CN106878783A (en) | A kind of method and device of lookup equipment | |
CN105903191A (en) | Data processing method and system across terminals | |
KR102184162B1 (en) | System and method for producing reactive webtoons |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |