O'Reilly logo

Moodle JavaScript Cookbook by Alastair Hole

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 8. Animating Components

In this chapter, we will cover:

  • Fading in an element
  • Fading out an element
  • Scrolling an element
  • Resizing an element
  • Animating with Easing
  • Moving an element along a straight path
  • Moving an element along a curved path
  • Changing an element's color
  • Sequencing multiple animations

Introduction

In this chapter, we will look at how to bring elements on our pages to life with the use of animation. You must take a rational approach when it comes to where and when to add animation into your pages. Try to keep the use of animation only to situations where it will benefit the users' experience, and avoid bombarding them with animations that serve no purpose.

Animation can provide beneficial effects in a range of situations such as easing ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required