Home > Articles > Home & Office Computing

  • Print
  • + Share This
This chapter is from the book

This chapter is from the book

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

  • 01yellow_circle.jpg 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.

  • 02yellow_circle.jpg Click the Click to open the sample link.

    The resize_start.html file opens, displaying an animation.

  • 03yellow_circle.jpg Click the File menu, and then click Preview In Browser or press Ctrl+Enter (Win) or apple.jpg+Return (Mac).
  • 04yellow_circle.jpg Resize the browser window to see how it responds.

    The animation doesn’t respond to changes in the windows size.

  • 05yellow_circle.jpg Click the Close button to exit your browser.

  • 06yellow_circle.jpg Click the Next Step link to % resize the Stage (Step 2 of 8).
  • 07yellow_circle.jpg In the Elements panel, select the Stage <div> element.
  • 08yellow_circle.jpg In the Properties panel, point to the units for W, and then change from pixels (px) to percentage (%).

  • 09yellow_circle.jpg Click the File menu, and then click Preview In Browser or press Ctrl+Enter (Win) or apple.jpg+Return (Mac).
  • 10yellow_circle.jpg 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.

  • 11yellow_circle.jpg Click the Next Step link to % resize on the Stage (Step 3 of 8).
  • 12yellow_circle.jpg 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.

  • 13yellow_circle.jpg Click the Next Step link to % resize object’s location on the Stage (Step 4 of 8).
  • 14yellow_circle.jpg In the Elements panel, select the Text1 <div> element.
  • 15yellow_circle.jpg Hold down Shift, and then select the Text2 <div> element.
  • 16yellow_circle.jpg In the Properties panel, point to the units for X, and then change from pixels (px) to percentage (%).
  • 17yellow_circle.jpg 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.

  • 18yellow_circle.jpg Click the Next Step link to resize objects of the parents (Step 5 of 8).
  • 19yellow_circle.jpg In the Elements panel, select the red_ribbon <div> element.
  • 20yellow_circle.jpg In the Properties panel, point to the units for W, and then change from pixels (px) to percentage (%).
  • 21yellow_circle.jpg 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.

  • 22yellow_circle.jpg 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.

  • 23yellow_circle.jpg In the Elements panel, select the panel_bg <div> element.
  • 24yellow_circle.jpg In the Properties panel, select the Bottom Right square in the Coordinate Space Picker.
  • 25yellow_circle.jpg Point to the units for W, and then change from pixels (px) to percentage (%).
  • 26yellow_circle.jpg In the Elements panel, select the panel1 <div> element.
  • 27yellow_circle.jpg Hold down Shift, and then select the panel3 <div> element.

    This selects panel1, panel2, and panel3.

  • 28yellow_circle.jpg In the Properties panel, select the Bottom Right square in the Coordinate Space Picker.
  • 29yellow_circle.jpg Point to the units for W, and then change from pixels (px) to percentage (%).
  • 30yellow_circle.jpg 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.

  • 31yellow_circle.jpg Click the Next Step link to apply layout presets to objects (Step 7 of 8).
  • 32yellow_circle.jpg In the Elements panel, select the FremontCycles <div> element.
  • 33yellow_circle.jpg In the Properties panel, click the Layout Presets button, click the Center Background Image preset, and then click Apply.

  • 34yellow_circle.jpg 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.

  • 35yellow_circle.jpg Click the Next Step link to set resize constraints of objects their parents (Step 8 of 8).
  • 36yellow_circle.jpg In the Elements panel, select the Stage <div> element.
  • 37yellow_circle.jpg In the Properties panel, set the Min W value to 650 px.
  • 38yellow_circle.jpg Click Max W, and then deselect None.
  • 39yellow_circle.jpg Set the Max W value to 1280 px.

  • 40yellow_circle.jpg Click the File menu, and then click Preview In Browser or press Ctrl+Enter (Win) or apple.jpg+Return (Mac).
  • 41yellow_circle.jpg 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.

  • 42yellow_circle.jpg Click the File menu, click Save, navigate to a folder, create a folder, enter a name for the composition, and then click Save.
  • + Share This
  • 🔖 Save To Your Account