Important notes!
This is a core component available on all pages, which you can apply to any element that can have a custom class. You can add custom classes to most modules in Act3 in the Wrapper › Identifiers › Custom class field.
Many modules also include similar fields for specific elements, such as link/button classes, item classes in a repeater, etc. These fields can also be used to add scrolling animations. And we plan to add more of these fields to other elements where it makes sense.
You can also add classes to rich text elements in Advanced › Source code, like this:
<h1 class="reveal">Hello World!</h1>
To apply a scrolling animation to a module or element, add the required reveal
class. This alone will apply the default scrolling animation and may be enough for most elements:
However, if you want to change the direction or type of your animation, you can also add one of the preset animation classes from the list below. For example, an element that should animate towards the right will have these classes applied:
reveal reveal--right
Here are all the available classes:
reveal--up
reveal--down
reveal--left
reveal--right
reveal--zoom
By default, once an element has been revealed, it will stay that way even if you scroll away and return to it later. It will not animate again. However, if you want the animation to run every time the element appears in view again, you can add this class to your element: reveal--rerun
. For example:
reveal reveal--up reveal--rerun
You can specify a custom duration for the animation with a class like this: reveal--duration-400
, where 400
is the duration in milliseconds (ms). Example:
reveal reveal--up reveal--rerun reveal--duration-400
Similarly, if you want the animation to delay for a moment (usually when you want elements in a group to appear one after the other), you can add a class like this: reveal--delay-300
, where 300
is the delay in milliseconds (ms). Example:
reveal reveal--up reveal--rerun reveal--delay-300
To apply an easing function to your animation, you can use a class like this: reveal--timing-ease-in-out
, where ease-in-out
can be replaced with your desired easing value. For example:
reveal reveal--up reveal--rerun reveal--delay-300 reveal--timing-ease-in
Sometimes you may want the animation to start only after a certain portion of the element has entered the viewport. In that case, you can use the reveal--offset-100
class, where 100
is the number of pixels the element needs to be inside the viewport before the animation starts. For example:
reveal reveal--up reveal--rerun reveal--offset-100