The animate()
method is able to animate changes made to any CSS style property that has a numeric value, with the exception of colors and background-positions
. In this example, we'll create a content viewer that shows different panels of content by sliding them in and out of view using the animate()
method.
This type of widget is commonly used on portfolio or showcase sites and is an attractive way to show a lot of content without cluttering a single page. In this example, we'll be animating the element's position.