Using Animation in Your Web

Animate/Modify A Page Element

You can apply Dynamic HTML (DHTML) animation effects to just about anything on a page — text, paragraphs, pictures, buttons, marquees, and so on — and tie the effect to a trigger event, such as clicking a mouse, pointing a mouse, loading a page, and so on. You can create an animation that makes text fly in from the right when the page is loaded, as in the following example:

  1. Select the page element you want to animate, and then click Dynamic HTML Effects on the Format menu.

    The DHTML Effects toolbar is displayed.

  2. In the On box, click the down arrow, and then select the event that will trigger the animation:

    Note   The events listed in the On box depend on the type of page element you selected.

  3. In the Apply box, click the down arrow, and then select the type of animation effect you want to occur:

    Note   The effects listed in the Apply box depend on the type of page element you selected, and on the type of event you selected in step 2. 

  4. In the Choose Settings box, click the down arrow, and then choose the settings for the effect:

    Note    The settings listed in the Choose Settings box depend on the type of page element you selected and the type of effect you selected in the Apply box.

Tips

Highlight animated elements on the Normal tab in Page view

When you're editing a page on the Normal tab in Page view, you can turn on highlighting beneath page elements that use Dynamic HTML (DHTML) animations or effects, such as text that flies off the page or an image that changes when a site visitor clicks it. You can then see at a glance which page elements use DHTML animation or effects.

  1. On the View menu, point to Toolbars, and then click DHTML Effects if it is not already checked.
  2. On the DHTML Effects toolbar, click Highlight DHTML Effects

Tips

Remove animation from a page element

If you've applied Dynamic HTML (DHTML) animation or special effects to a page element, you can easily remove the animation without removing the page element. For example, if you've created an animation in which a paragraph flies off the page to the left when clicked, you can remove the animation but leave the paragraph intact.

Tips

Animate menus

You can use animation to open menus. When you click or point to the name of a menu, that menu can "unfold" from top to bottom and left to right, "slide" from top to bottom, or randomly use either effect.

Create a transition effect for a page or web

You can create special effects that are displayed when a site visitor enters or leaves your site, or browses to or from a specific page. For example, this page uses a "vertical blinds" effect that lasts 5 seconds when a visitor browses to it the first time. By applying transition effects consistently and judiciously throughout your web, you can create slide-show-style presentations with professional-looking transitions between pages.

  1. In Page view, open the page for which you want to display the transition effect. On the Format menu, click Page Transition.
  2. In the Event box, click the the event that will trigger the transition effect. For example, click Page enter to display the transition effect when a site visitor browses to the page for the first time.
  3. In the Transition effect box, click the type of transition effect to use when the page is displayed or exited.

    Tip  

  4. In the Duration box, type the amount of time that you want the transition effect to last.

Tip

Add a video

You can add a video to your page. You can add any type of video that can be played by the Windows Media Player.

  1. In Page view, position the insertion point where you want to insert a video.
  2. On the Insert menu, point to Picture, and then click Video.
  3. If the video clip file is not in a web, click the File button .
  4. Browse to the video file and select it.

Tip   If Microsoft Internet Explorer is installed on your computer, you can click the Preview tab to preview the video.

Note   Some Web browsers do not support video.