Consider a text element "Hello" displayed on an ellipse element.
The Actions pop-up window has been redesigned to be more designer-friendly. The enhanced Actions editor reduces the need to code, making it easier to add interactivity. The new Actions editor is now more approachable for designers to create precision animations, optimizing time, and effort. You can add objects and configure Javascript actions to create event-based elements in your animation.
The new Actions editor visually guides you through the various steps in assigning actions to targets. Actions editor allows you to add Javascript event-based actions and select the targets in the same window.
Adding actions to the elements is now a simple 2-step process with the new code editor:
Note: When you click Stage, there might be a subcategory for Symbols if your composition contains symbols. For more information on symbols, see Create nested animations with symbols.
The actions are grouped into the following categories:
To know more about how to add actions to an element, let us look at the following example.
Consider a text element "Hello" displayed on an ellipse element.
To change the text, click {} adjacent to the text element in the timeline. Select 'click'.
The corresponding Javascript code is displayed in the code editor. Change the "New Text" field to "Hello World" in the code.
Close the code pop-up window. Press Ctrl + Enter to view the changes. The text appears as "Hello World".
Actions editor also provides the following enhancements to help you create rich animations faster and easier:
In the Actions editor, click '+' adjacent to My Snippets, and then click one of the following options:
Click to enter your own code and save it as a snippet. When you click this option, a code window appears. Type your code, click Save, and then enter a name for the snippet.
Click to save the selected portion of the code as a snippet. Enter a name for the snippet in the Actions editor (For example - MySnippet_1). You can select this code snippet to add action to the respective element.
Sign in to your account