CN114372161A - Slide animation preview method, device and medium thereof - Google Patents
Slide animation preview method, device and medium thereof Download PDFInfo
- Publication number
- CN114372161A CN114372161A CN202210032223.0A CN202210032223A CN114372161A CN 114372161 A CN114372161 A CN 114372161A CN 202210032223 A CN202210032223 A CN 202210032223A CN 114372161 A CN114372161 A CN 114372161A
- Authority
- CN
- China
- Prior art keywords
- animation
- time
- previous
- starting
- acquiring
- 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
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/40—Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
- G06F16/44—Browsing; Visualisation therefor
- G06F16/447—Temporal browsing, e.g. timeline
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/40—Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
- G06F16/48—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
- G06F16/489—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using time information
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Multimedia (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Library & Information Science (AREA)
- Processing Or Creating Images (AREA)
Abstract
The application discloses a method, a device and a medium for previewing a slide animation, which aims at the problem that in the current animation previewing mode, the time axis of each animation stage is independent, and when the animation is complex, the total duration of the animation cannot be well controlled by a user due to excessive animation stages, and provides the method for previewing the slide animation, which comprises the following steps: acquiring all animation data of the current slide except the trigger animation; if the current mode is a sequential mode, and the sequential mode is a mode that the time axes of all animation stages have a sequential relation, determining the starting time and the ending time of all animations according to animation data, wherein the ending time of the previous animation stage is the starting time of the next animation stage; the total duration is obtained from the value of the ending time of the last animation stage, so that the problem that the user cannot well grasp the total duration of the animation is solved.
Description
Technical Field
The present application relates to the technical field of slide animation playback, and in particular, to a method, an apparatus, and a medium for previewing a slide animation.
Background
In actual office, slide presentations are more and more commonly used, animation is used as a core function of the slide presentations, the effect becomes better and better in recent development, the animation which can be produced is more and more complex, the setting of animation time is more and more important, in order to better assist users in producing animation effects, in a preview mode of the slide presentations, starting conditions are used as differences and are divided into different animation stages, the animation in each animation stage is displayed on an animation window in a time axis mode, and the user can conveniently view animation time design of each stage.
In the current animation preview mode, the time axis of each animation stage is independent, when the animation is complex, the total duration of the animation cannot be well controlled by a user due to excessive animation stages, and the animation is correspondingly designed.
Therefore, those skilled in the art need a slide animation preview method, which solves the problem that in the current preview mode, the time axis of each animation stage is independent, and the total duration of the animation cannot be intuitively displayed to the user, so that the use experience of the user is affected.
Disclosure of Invention
The application aims to provide a slide animation previewing method, a slide animation previewing device and a slide animation previewing medium, and the problem that in the existing animation pane, the time axis of each animation stage is independent, the total duration of the animation cannot be intuitively displayed to a user, and therefore the use experience of the user is influenced is solved.
In order to solve the above technical problem, the present application provides a method for previewing a slide show, including: acquiring all animation data of the current slide except the trigger animation; if the current mode is a sequential mode, and the sequential mode is a mode that the time axes of all animation stages have a sequential relation, determining the starting time and the ending time of all animations according to animation data, wherein the ending time of the previous animation stage is the starting time of the next animation stage; the total duration is derived from the value of the end time of the last animation phase.
Preferably, if the current mode is a parallel mode and the parallel mode is a mode in which time axes of the animation phases are independent, the method further includes: and determining the starting time and the ending time of the animation according to the animation data, wherein the starting time of different animation phases is 0.
Preferably, determining the start time of the animation from the animation data comprises: acquiring a reference time of a current animation, wherein when a starting condition is started simultaneously with a previous animation, acquiring a starting time of the animation, which is started when the previous starting condition is a single click or started after the previous animation, as the reference time; when the starting condition is started after the previous animation, acquiring the ending time of the previous animation, if the starting condition of the previous animation is the same as the previous animation, continuously acquiring the ending time of the previous animation until the starting condition is not the ending time of the animation started at the same time as the previous animation, and taking the last ending time of the acquired ending times as a reference time; when the starting condition is starting when clicking, acquiring the ending time of the previous animation stage as the reference time, and if the previous animation stage does not exist, the reference time is 0; the starting time of the current animation is obtained by the sum of the reference time and the delay data of the current animation, wherein the delay data is contained in the animation data.
Preferably, determining the start time of the animation from the animation data comprises: acquiring a reference time of a current animation, wherein when a starting condition is started simultaneously with a previous animation, acquiring a starting time of the animation, which is started when the previous starting condition is a single click or started after the previous animation, as the reference time; when the starting condition is started after the previous animation, acquiring the ending time of the previous animation, if the starting condition of the previous animation is the same as the previous animation, continuously acquiring the ending time of the previous animation until the starting condition is not the ending time of the animation started at the same time as the previous animation, and taking the last ending time of the acquired ending times as a reference time; when the starting condition is starting when clicking, the reference time is 0; the starting time of the current animation is obtained by the sum of the reference time and the delay data of the current animation, wherein the delay data is contained in the animation data.
Preferably, determining the end time of each animation from the animation data comprises: acquiring the starting time of the animation; judging whether the animation has animation text attributes according to the animation data, if so, determining a first moment according to the delay attributes of letters or words, the number of characters in the elements and the animation duration moment of the animation text attributes, and if not, taking the animation duration moment as the first moment; judging whether the animation has a turning attribute according to the animation data, if so, acquiring a second moment, wherein the second moment is twice of the first moment, and if not, taking the first moment as the second moment; judging whether the animation has the repetition frequency attribute according to the animation data, if so, acquiring a third moment, wherein the third moment is the product of the second moment and the repetition frequency, and if not, taking the second moment as the third moment; and acquiring the end time, wherein the end time is the sum of the start time and the third time.
Preferably, the method further comprises the following steps: generating time bars of each animation according to the starting time and the ending time; the time bar is displayed on the animation pane.
Preferably, the time bars are displayed on the animation pane in a preset scale so that all time bars can be displayed on the animation pane at the same time.
In order to solve the above technical problem, the present application further provides a slide show preview apparatus, including: the animation data acquisition module is used for acquiring all animation data of the current slide except the trigger animation; an animation time determining module, configured to determine a start time and an end time of each animation according to animation data if the current mode is a sequential mode, and the sequential mode is a mode in which time axes of the animation stages have a sequential relationship, where the end time of a previous animation stage is the start time of a next animation stage; and the total duration determining module is used for obtaining the total duration from the value of the ending time of the last animation stage.
In order to solve the above technical problem, the present application further provides a slide show preview apparatus, including: a memory for storing a computer program; a processor for implementing the steps of a slide show preview method as described above when executing a computer program.
To solve the above technical problem, the present application further provides a computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when being executed by a processor, the computer program implements the steps of the slide animation preview method.
According to the method for previewing the slide animation, all animation stages are used as a whole to determine time according to the set sequence, the ending time of the previous animation stage is the starting time of the next animation stage, so that the total time for playing all the animations is obtained, the situation that when the animations are complex due to the fact that the animation stages all use independent time shafts at present, the user cannot well grasp the total time of the animations is avoided, and the use experience of the user is further improved.
The slide animation preview device and the computer readable storage medium provided by the application correspond to the method, and the effect is the same as the effect.
Drawings
In order to more clearly illustrate the embodiments of the present application, the drawings needed for the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings can be obtained by those skilled in the art without inventive effort.
FIG. 1 is a flow chart of a slide show preview method according to the present invention;
FIG. 2 is a schematic view of an animation pane in sequential mode according to the present invention;
FIG. 3 is a schematic view of an animation pane in a parallel mode according to the present invention;
FIG. 4 is a block diagram of a slide show preview device according to the present invention;
fig. 5 is a block diagram of another slide show preview apparatus according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without any creative effort belong to the protection scope of the present application.
The core of the application is to provide a slide animation preview method, a slide animation preview device and a slide animation preview medium.
In order that those skilled in the art will better understand the disclosure, the following detailed description will be given with reference to the accompanying drawings.
In an actual slide design, there is usually a certain requirement for the overall time of the slide show, and besides the factors such as characters and space, the animation time is also an important factor that affects the slide show time, and with the development of slide technology, the animation can become more complex in design, and at this time, it is more difficult for the user to grasp the overall time of the animation, so as shown in fig. 1, the present application provides a slide animation preview method, including:
s101: acquiring all animation data of the current slide except the trigger animation;
s102: if the current mode is a sequential mode, and the sequential mode is a mode that the time axes 11 of all animation stages have a sequential relationship, determining the starting time and the ending time of all animations according to animation data, wherein the ending time of the previous animation stage is the starting time of the next animation stage;
s103: the total duration 13 is obtained from the value of the end time of the last animation phase.
It should be noted that, since the trigger animation is to control the effects such as the appearance or disappearance of elements in a page by setting the elements in a slide accordingly, the starting conditions of the trigger animation are different from the three starting conditions of the normal animation and are greatly affected by non-deterministic factors, the time of the trigger animation is not counted in the preview. In addition, the ending time of the animation phase is the ending time of the animation which is in the animation phase and is finally ended, the animations are sequenced according to the adding sequence, the animations can be adjusted in sequencing through dragging or other operations after being added, the animation phase comprises one or more animations, from the beginning of the animation with one starting condition of clicking to the end of the previous animation with the next starting condition of clicking, one animation phase only comprises the animation with one starting condition of clicking, and the sequencing is the same as the sequencing of the animations.
Meanwhile, the animation data mentioned in the present embodiment includes, but is not limited to, delay data, animation text attribute, animation duration, flip attribute, and repetition number attribute. Wherein, the animation text attribute can further comprise: delay attributes, number of characters, etc.
Regarding the starting conditions of the animation, which are divided into three types, namely, clicking, simultaneously with the previous animation, and after the previous animation, the starting conditions are that the animation at the clicking is controlled by the user in the actual playing, when the user clicks the mouse, the animation is played, it is noted that only one starting condition at a time is that the animation at the clicking is played, the playing sequence is determined by the arrangement sequence of the animation, which is well known by those skilled in the art, and the description of the embodiment is omitted; the starting condition is that when the animation which is simultaneously played with the previous animation is played in the actual playing depends on the previous animation, and when the previous animation starts to be played, the animation is played simultaneously; the starting condition is that when the animation after the last animation is played in the actual playing is also dependent on the last animation, and when the last animation is played, the animation is played.
It should be noted that another mode different from the sequential mode mentioned in the present embodiment is a parallel mode, and the two modes are different in that: the time axis 11 of each animation phase of the sequential mode is arranged in sequence according to the sequence of the animation phases, namely the ending time of the previous animation phase is the starting time of the next animation phase; the time axes 11 of the animation phases of the parallel mode are independent of each other, and the start time of each animation phase is 0.
According to the slide animation previewing method, the time shaft 11 of each animation stage is sequentially connected, namely the end time of the previous animation stage is the start time of the next animation stage, so that the total playing time of the current slide is equal to the end time of the last animation stage, the total playing time 13 of the animation can be obtained by obtaining the end time of the last animation stage, a user can better perform corresponding adjustment on animation design according to the playing time of the animation, and the use experience of the user is further enhanced.
In the slide design, the user sometimes needs to design the animation phase in a targeted manner, and in this case, the user attaches more importance to the time attribute of each animation phase, so this embodiment provides a preferable solution to the above embodiment: if the current mode is a parallel mode and the parallel mode is a mode in which the time axes 11 of the animation phases are independent, the method further comprises the following steps:
s104: and determining the starting time and the ending time of the animation according to the animation data, wherein the starting time of different animation phases is 0.
It is easily understood that after all the animation data of the current slide except the trigger animation is acquired, the present embodiment and the above embodiments have a judgment on the current mode, and if the current mode is the sequential mode, the step S102 of the above embodiments is entered, and if the current mode is the parallel mode, the step S104 of the present embodiment is entered. The embodiment of how to determine the current mode and switch the mode is not limited in this embodiment, and a preferred scheme is as follows: when entering the preview mode, after acquiring all animation data of the current slide except the trigger animation, selecting the current mode, wherein the modes are divided into a sequential mode and a parallel mode, if the user selects the sequential mode, the step S102 is entered, and if the user selects the parallel mode, the step S104 is entered.
The advantages of this embodiment are: when the user looks more heavily at the time attribute of the individual animation stage, the parallel mode can be entered during the animation preview, so that the time attribute of the individual animation stage when the time axis 11 is independent is obtained, and the experience of the user is further improved.
As can be seen from the above, the above embodiment does not limit the specific implementation manner of obtaining the start time and the end time of the animation, so this embodiment provides a preferred implementation manner, and further describes the slide animation preview method provided by the present application.
S201: when the current mode is the sequential mode, determining the starting time of the animation according to the animation data comprises the following steps:
acquiring a reference time of a current animation, wherein when a starting condition is started simultaneously with a previous animation, acquiring a starting time of the animation, which is started when the previous starting condition is a single click or started after the previous animation, as the reference time; when the starting condition is started after the previous animation, acquiring the ending time of the previous animation, if the starting condition of the previous animation is the same as the previous animation, continuously acquiring the ending time of the previous animation until the starting condition is not the ending time of the animation started at the same time as the previous animation, and taking the last ending time of the acquired ending times as a reference time; when the starting condition is starting when clicking, acquiring the ending time of the previous animation stage as the reference time, and if the previous animation stage does not exist, the reference time is 0;
when the current mode is the parallel mode, determining the starting moment of the animation according to the animation data comprises the following steps:
s202: acquiring a reference time of a current animation, wherein when a starting condition is started simultaneously with a previous animation, acquiring a starting time of the animation, which is started when the previous starting condition is a single click or started after the previous animation, as the reference time; when the starting condition is started after the previous animation, acquiring the ending time of the previous animation, if the starting condition of the previous animation is the same as the previous animation, continuously acquiring the ending time of the previous animation until the starting condition is not the ending time of the animation started at the same time as the previous animation, and taking the last ending time of the acquired ending times as a reference time; when the starting condition is starting when clicking, the reference time is 0;
after step S201 or step S202 ends, the process proceeds to step S203.
S203: the starting time of the current animation is obtained by the sum of the reference time and the delay data of the current animation, wherein the delay data is contained in the animation data.
The embodiment provides specific implementation schemes for determining the starting time of the animation in the sequential mode or the parallel mode respectively, so that a user can obtain the starting time of the animation, the animation can be better designed correspondingly, and the experience of the user is further improved.
In addition to the embodiment for obtaining the starting time of the animation provided in the above embodiment, the embodiment also provides a preferred embodiment for obtaining the ending time of the animation, which includes:
s204: acquiring the starting time of the animation;
s205: judging whether the animation has animation text attributes or not according to the animation data, if so, determining a first duration according to the animation text attributes and delay attributes of letters or words, the number of characters in elements and the animation duration, and if not, taking the animation duration as the first duration;
s206: judging whether the animation has a turning attribute according to the animation data, if so, acquiring a second time length, wherein the second time length is twice of the first time length, and if not, taking the first time length as the second time length;
s207: judging whether the animation has the repetition frequency attribute according to the animation data, if so, acquiring a third time length, wherein the third time length is the product of the second time length and the repetition frequency, and if not, taking the second time length as the third time length;
s208: and acquiring the end time, wherein the end time is the sum of the start time and the third time length.
It is easy to understand that, in this embodiment, the ending time of the animation is obtained by summing the starting time of the animation and the third time duration, but no matter whether the current mode is the parallel mode or the sequential mode, the playing time duration of the animation, that is, the third time duration, is not affected, and the playing time duration of the animation is determined by the animation data. The end time of one animation phase is the end time of the animation that ends after the animation phase.
According to the specific implementation scheme for obtaining the ending time of the animation, the starting time of the current animation is obtained first, the playing time of the current animation is obtained according to the animation data, and the ending time is obtained according to the sum of the starting time and the playing time, so that a user can better design the animation correspondingly, and the experience is further improved.
In practical applications, when the animation is more and more complex, it is not intuitive enough to provide the user with the start time, the end time and the total duration 13, and this embodiment further provides a preferred embodiment for better grasping the time attribute of the animation, and the method further includes:
s209: generating time bars 12 of each animation according to the starting time and the ending time;
s210: the time bar 12 is displayed on the animation pane 10.
It should be noted that the animation pane 10 mentioned in this embodiment is a window that pops up when the user enters the preview mode, and is used for displaying all animations of the current slide, including but not limited to start condition, start time, end time, and other information.
In addition, the specific display form of the time bar 12, such as shape, size, and color, is not limited in this embodiment, and can be freely selected according to the actual situation, but generally, the time bar 12 should be rectangular and distributed on the time axis 11, and the time bars 12 of different animations are not displayed in an overlapping manner.
To better illustrate the embodiment provided by this example, as shown in fig. 2 and fig. 3, fig. 2 is a schematic view of an animation pane in a sequential mode, and fig. 3 is a schematic view of an animation pane in a parallel mode, including: animation pane 10, time axis 11, time bar 12, total duration 13, and mode selection drop down menu 14. For the sake of easy comparison and understanding, all the attributes of the animations in fig. 2 and 3 are the same at the time of setting, and only the modes for previewing are different, one is a sequential mode and the other is a parallel mode. It will also be readily appreciated that to avoid confusion in labeling as in fig. 2 and 3, only one time bar 12 of an animation is labeled, and in fact, the time bars 12 of the other animations are all of the same nature as the labeled time bars 12.
The advantages of this embodiment over the above embodiments are: the time bar 12 of the animation is generated according to the starting time and the ending time of the animation and is displayed on the animation pane 10, so that the time attribute of the animation is more visually and clearly displayed to a user, the user can better grasp the time attribute of the animation, and the use experience of the user in animation design is further improved.
The above embodiment provides a preferred embodiment, the time bar 12 of the animation is generated according to the starting time and the ending time of the animation, and is displayed on the animation pane 10, but the specific display manner of the time bar 12 is not limited, so this embodiment provides a preferred embodiment: the time bar 12 is displayed on the animation pane 10 at a preset scale so that all of the time bars 12 can be displayed on the animation pane 10 at the same time.
It is easy to understand that the display manner of the time bar 12 in this embodiment is only a preferred scheme, and after the time bar 12 is displayed on the animation pane 10 according to the preset scale, the user may also zoom the scale of the time bar 12 through a zoom button or other manners, which is not limited in this embodiment.
The advantages of this embodiment over the above embodiments are: the time bars 12 are displayed on the animation pane 10 according to a preset proportion, and the proportion can simultaneously display all the time bars 12 on the animation pane 10, so that a user can simultaneously obtain the information of the time bars 12 of all animations, and the experience of the user is further improved.
In the above embodiments, a detailed description is given for a slide show preview method, and the present application also provides a corresponding embodiment of a slide show preview apparatus. It should be noted that the present application describes the embodiments of the apparatus portion from two perspectives, one from the perspective of the function module and the other from the perspective of the hardware.
As shown in fig. 4, the present embodiment provides a slide show preview apparatus including:
the animation data acquisition module 21 is used for acquiring all animation data of the current slide except the trigger animation;
an animation time determination module 22, configured to determine a start time and an end time of each animation according to animation data if the current mode is a sequential mode, and the sequential mode is a mode in which the time axes 11 of the animation stages have a sequential relationship, where the end time of a previous animation stage is the start time of a next animation stage;
a total duration determination module 23 for determining the total duration 13 from the value of the end time of the last animation phase.
Since the embodiments of the apparatus portion and the method portion correspond to each other, please refer to the description of the embodiments of the method portion for the embodiments of the apparatus portion, which is not repeated here.
Fig. 5 is a block diagram of a slide show preview apparatus according to another embodiment of the present application, and as shown in fig. 5, the slide show preview apparatus includes: a memory 30 for storing a computer program;
a processor 31 for implementing the steps of a slide show preview method as described in the above embodiments when executing the computer program.
The slide animation preview device provided by the embodiment may include, but is not limited to, a smart phone, a tablet computer, a notebook computer, or a desktop computer.
The processor 31 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 31 may be implemented in at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 31 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 31 may be integrated with a Graphics Processing Unit (GPU) which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, the processor 31 may further include an Artificial Intelligence (AI) processor for processing computational operations related to machine learning.
Memory 30 may include one or more computer-readable storage media, which may be non-transitory. Memory 30 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 30 is at least used for storing the computer program 301, wherein after being loaded and executed by the processor 31, the computer program can implement the relevant steps of a slide show preview method disclosed in any of the foregoing embodiments. In addition, the resources stored by the memory 30 may also include an operating system 302, data 303, and the like, and the storage may be transient storage or permanent storage. Operating system 302 may include Windows, Unix, Linux, etc. Data 303 may include, but is not limited to, a slide animation preview method, etc.
In some embodiments, a slide show preview device may further include a display screen 32, an input-output interface 33, a communication interface 34, a power source 35, and a communication bus 36.
Those skilled in the art will appreciate that the structure shown in FIG. 5 does not constitute a limitation of a slide show preview device and may include more or fewer components than those shown.
The slide show preview device provided by the embodiment of the application comprises a memory and a processor, wherein when the processor executes a program stored in the memory, the processor can realize the following method: a slide animation preview method.
Finally, the application also provides a corresponding embodiment of the computer readable storage medium. The computer-readable storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps as set forth in the above-mentioned method embodiments.
It is to be understood that if the method in the above embodiments is implemented in the form of software functional units and sold or used as a stand-alone product, it can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium and executes all or part of the steps of the methods described in the embodiments of the present application, or all or part of the technical solutions. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The method, apparatus and medium for previewing a slide show provided by the present application are described in detail above. The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Claims (10)
1. A slide show animation preview method, comprising:
acquiring all animation data of the current slide except the trigger animation;
if the current mode is a sequential mode, and the sequential mode is a mode in which the time axes of all animation stages have a sequential relationship, determining the starting time and the ending time of all animations according to the animation data, wherein the ending time of the previous animation stage is the starting time of the next animation stage;
the total duration is derived from the value of the end time of the last of the animation phases.
2. A method for previewing a slide show according to claim 1, wherein if the current mode is a parallel mode, and the parallel mode is a mode in which the time axes of the animation phases are independent, further comprising:
and determining the starting time and the ending time of the animation according to the animation data, wherein the starting time of different animation stages is 0.
3. A slide show animation preview method as claimed in claim 1, wherein said determining the start time of the animation from the animation data comprises:
acquiring a reference time of the current animation, wherein when the starting condition is started simultaneously with the previous animation, the starting time of the animation, which is started when the previous starting condition is single click or started after the previous animation, is acquired as the reference time; when the starting condition is started after the previous animation, acquiring the ending time of the previous animation, if the starting condition of the previous animation is the same as the previous animation, continuously acquiring the ending time of the previous animation until the ending time of the animation, the starting condition of which is not the same as the previous animation, is acquired, and taking the last ending time of the acquired ending times as the reference time; when the starting condition is that the animation is started when clicking, acquiring the ending time of the previous animation stage as the reference time, and if the animation stage is not the previous animation stage, the reference time is 0;
and obtaining the starting time of the current animation according to the sum of the reference time and the delay data of the current animation, wherein the delay data is contained in the animation data.
4. A slide show animation preview method as claimed in claim 2, wherein said determining the start time of the animation from the animation data comprises:
acquiring a reference time of the current animation, wherein when the starting condition is started simultaneously with the previous animation, the starting time of the animation, which is started when the previous starting condition is single click or started after the previous animation, is acquired as the reference time; when the starting condition is started after the previous animation, acquiring the ending time of the previous animation, if the starting condition of the previous animation is the same as the previous animation, continuously acquiring the ending time of the previous animation until the ending time of the animation, the starting condition of which is not the same as the previous animation, is acquired, and taking the last ending time of the acquired ending times as the reference time; when the starting condition is starting when clicking, the reference time is 0;
and obtaining the starting time of the current animation according to the sum of the reference time and the delay data of the current animation, wherein the delay data is contained in the animation data.
5. A slide show animation preview method as claimed in claim 1, wherein the determining of the end time of each animation based on the animation data comprises:
acquiring the starting time of the animation;
judging whether the animation has animation text attributes or not according to the animation data, if so, determining a first duration according to the animation text attributes and delay attributes of letters or words, the number of characters in elements and animation duration, and if not, taking the animation duration as the first duration;
judging whether the animation has a turning attribute according to the animation data, if so, acquiring a second time length, wherein the second time length is twice of the first time length, and if not, taking the first time length as the second time length;
judging whether the animation has a repetition frequency attribute according to the animation data, if so, acquiring a third time length, wherein the third time length is the product of the second time length and the repetition frequency, and if not, taking the second time length as the third time length;
and acquiring the ending time, wherein the ending time is the sum of the starting time and the third duration.
6. A slide show animation preview method as claimed in any one of claims 1 to 5, further comprising:
generating time bars of the animations according to the starting time and the ending time;
displaying the time bar on an animation pane.
7. A slide show animation preview method as claimed in claim 6, wherein the time bars are displayed on the animation pane in a preset scale so that all of the time bars can be displayed on the animation pane at the same time.
8. A slide show animation preview device, comprising:
the animation data acquisition module is used for acquiring all animation data of the current slide except the trigger animation;
an animation time determining module, configured to determine a start time and an end time of each animation according to the animation data if a current mode is a sequential mode, and the sequential mode is a mode in which time axes of the animation stages have a sequential relationship, where the end time of a previous animation stage is the start time of a next animation stage;
a total duration determination module for determining a total duration from a value of the end time of the last animation phase.
9. A slide show animation preview device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of a slide show preview method according to any of claims 1 to 7 when executing said computer program.
10. A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, implements the steps of a slide animation preview method according to any one of claims 1 to 7.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210032223.0A CN114372161B (en) | 2022-01-12 | 2022-01-12 | A slide animation preview method, device and medium thereof |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210032223.0A CN114372161B (en) | 2022-01-12 | 2022-01-12 | A slide animation preview method, device and medium thereof |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN114372161A true CN114372161A (en) | 2022-04-19 |
| CN114372161B CN114372161B (en) | 2024-11-08 |
Family
ID=81144199
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202210032223.0A Active CN114372161B (en) | 2022-01-12 | 2022-01-12 | A slide animation preview method, device and medium thereof |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN114372161B (en) |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20120139924A1 (en) * | 2010-12-03 | 2012-06-07 | International Business Machines Corporation | Dynamic adaption of animation timeframes within a complex graphical user interface |
| CN113902609A (en) * | 2021-03-17 | 2022-01-07 | 广州市保伦电子有限公司 | Method and device for smoothly rendering control animation based on OpenGL embedded device |
-
2022
- 2022-01-12 CN CN202210032223.0A patent/CN114372161B/en active Active
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20120139924A1 (en) * | 2010-12-03 | 2012-06-07 | International Business Machines Corporation | Dynamic adaption of animation timeframes within a complex graphical user interface |
| CN113902609A (en) * | 2021-03-17 | 2022-01-07 | 广州市保伦电子有限公司 | Method and device for smoothly rendering control animation based on OpenGL embedded device |
Non-Patent Citations (2)
| Title |
|---|
| SANG-WON GHYME 等: "A simplified deformation for real-time 3D character animation", 《VRST \'00: PROCEEDINGS OF THE ACM SYMPOSIUM ON VIRTUAL REALITY SOFTWARE AND TECHNOLOGY》, 31 October 2000 (2000-10-31), pages 175, XP058226660, DOI: 10.1145/502390.502423 * |
| 李光仲 等: "一种将PPT课件制作为课程视频资源的方法——以《医用物理学实验》课程为例", 《中国医学教育技术》, 24 July 2018 (2018-07-24), pages 386 - 389 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN114372161B (en) | 2024-11-08 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11383162B2 (en) | Voice skill game editing method, apparatus, device and readable storage medium | |
| CN108776565B (en) | Animation display method and device, electronic equipment and storage medium | |
| CN105005429B (en) | A kind of method and terminal of terminal display picture | |
| JP2014532207A (en) | Processing method by computer | |
| CN110764849A (en) | Rendering method and device for user interface, client device and electronic device | |
| WO2014171964A1 (en) | Deferred placement prompt | |
| WO2006067711A2 (en) | Method and device for displaying animated buttons | |
| EP4607326A1 (en) | Method and apparatus for special effect interaction, device, and storage medium | |
| CN114296853A (en) | Control method and device of dynamic desktop, storage medium and electronic device | |
| EP4171006B1 (en) | Previewing method and apparatus for effect application, and device and storage medium | |
| CN113051493A (en) | Application program display method and device, storage medium and terminal | |
| CN112099690B (en) | Page scaling method, device, terminal and storage medium | |
| CN104965694A (en) | Information processing method and terminal | |
| CN110727385B (en) | Desktop icon arrangement method, device, electronic device and storage medium | |
| CN105739771B (en) | A display interface management method, device and terminal | |
| CN116594730A (en) | Wallpaper replacement method and system and electronic equipment | |
| CN114372161A (en) | Slide animation preview method, device and medium thereof | |
| CN113134234B (en) | Information display method, device, terminal and storage medium | |
| CN107491311B (en) | Method, system and computer device for generating page file | |
| CN111125201A (en) | Menu dotting method and device | |
| CN107239212B (en) | Method and device for presenting segmentation selection view and user terminal | |
| CN105511729B (en) | A kind of page switching control method and mobile terminal | |
| US20160110328A1 (en) | Display Method And Electronic Device | |
| CN110322537B (en) | Slide transition animation editing method and related device | |
| CN114415887B (en) | Document content processing method and device |
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 |