Taking the Resize Lesson
With the Resize lesson, you can create an animation that is responsive to the size of the screen. For example, when you resize your browser window, the composition resizes too. You can make the Stage and individual elements responsive to the screen size by changing their units from pixels (fixed) to percentage (adjustable). In addition, you can change the relative change position to any corner of an element. Instead of testing changes to your composition in your browser, you can quickly check them on the Stage in Edge Animate.
Take the Resize Lesson
From the Welcome screen under Getting Started or the Lessons panel, click the Resize lesson tile to start it.
The Welcome screen closes, Edge Animate creates a new Untitled project, and the Lessons panel displays the start of the lesson.
Click the Click to open the sample link.
The resize_start.html file opens, displaying an animation.
- Click the File menu, and then click Preview In Browser or press Ctrl+Enter (Win) or +Return (Mac).
Resize the browser window to see how it responds.
The animation doesn’t respond to changes in the windows size.
Click the Close button to exit your browser.
- Click the Next Step link to % resize the Stage (Step 2 of 8).
- In the Elements panel, select the Stage <div> element.
In the Properties panel, point to the units for W, and then change from pixels (px) to percentage (%).
- Click the File menu, and then click Preview In Browser or press Ctrl+Enter (Win) or +Return (Mac).
Resize the browser window to see how it responds, and then click the Close button to exit.
The Stage fills the width of the browser with its light blue background to the right of the animation.
- Click the Next Step link to % resize on the Stage (Step 3 of 8).
Move the Stage adjustment handle on the top ruler back and forth to preview, and then return it to its original position at 800 px.
- Click the Next Step link to % resize object’s location on the Stage (Step 4 of 8).
- In the Elements panel, select the Text1 <div> element.
- Hold down Shift, and then select the Text2 <div> element.
- In the Properties panel, point to the units for X, and then change from pixels (px) to percentage (%).
Move the Stage adjustment handle on the top ruler back and forth to preview, and then return it to its original position at 800 px.
The text boxes adjust as the Stage is resized.
- Click the Next Step link to resize objects of the parents (Step 5 of 8).
- In the Elements panel, select the red_ribbon <div> element.
- In the Properties panel, point to the units for W, and then change from pixels (px) to percentage (%).
Move the Stage adjustment handle on the top ruler back and forth to preview, and then return it to its original position at 800 px.
Click the Next Step link to resize the relative position of objects their parents (Step 6 of 8).
By default, objects are positions relative to the upper-left corner of their parent. You can change the relative position to any corner using the Coordinate Space Picker in the Properties panel.
- In the Elements panel, select the panel_bg <div> element.
- In the Properties panel, select the Bottom Right square in the Coordinate Space Picker.
- Point to the units for W, and then change from pixels (px) to percentage (%).
- In the Elements panel, select the panel1 <div> element.
Hold down Shift, and then select the panel3 <div> element.
This selects panel1, panel2, and panel3.
- In the Properties panel, select the Bottom Right square in the Coordinate Space Picker.
- Point to the units for W, and then change from pixels (px) to percentage (%).
Move the Stage adjustment handle on the top ruler back and forth to preview, and then return it to its original position at 800 px.
This keeps the blue panel and the animated text relative to the right side of the Stage.
- Click the Next Step link to apply layout presets to objects (Step 7 of 8).
- In the Elements panel, select the FremontCycles <div> element.
In the Properties panel, click the Layout Presets button, click the Center Background Image preset, and then click Apply.
Move the Stage adjustment handle on the top ruler back and forth to preview, and then return it to its original position at 800 px.
This makes the element resize on both X and Y axis while keeping the image centered.
- Click the Next Step link to set resize constraints of objects their parents (Step 8 of 8).
- In the Elements panel, select the Stage <div> element.
- In the Properties panel, set the Min W value to 650 px.
- Click Max W, and then deselect None.
Set the Max W value to 1280 px.
- Click the File menu, and then click Preview In Browser or press Ctrl+Enter (Win) or +Return (Mac).
Resize the browser window to see how it responds, and then click the Close button to exit.
This keeps the size range of the composition between 650 px and 1280 px.
The lesson is complete.
- Click the File menu, click Save, navigate to a folder, create a folder, enter a name for the composition, and then click Save.