Animations

The Animation feature in Greyd allows users to add CSS-based animations to almost any block in the block editor — both WordPress Core and Greyd blocks. It integrates natively and is accessible via the right-hand sidebar of each block.

Screenshot showing the add animation  panel in the block sidebar, explained in the previous paragraph.

To use it, open the block editor and select any block such as a paragraph, heading, image, or group. In the sidebar, scroll down and open the Animation panel. From there, you can add a new animation or edit/delete an existing one.

Clicking Add Animation opens a modal with a real-time preview. Hovering over the preview plays the animation based on your current configuration.

Animation Configuration

Screenshot of animation configuration, with each option described in the next paragraphs.

The modal contains three rows, each defining a key aspect of the animation:

Action — What should happen?

This section defines the core behavior of the animation.

  • Hide / Show: Use effects like Fade In (Show) / Out (Hide), from Up / Down / Left / Right, or no effect.
  • Change Color: Transition text and background colors. Unselected properties remain static.
  • Move Horizontally / Vertically: Define initial and final positions in px, %, em, rem, vw, or vh.
  • Scale: Animate scaling between 0 and ~3. A value of 1 means 100%. Choose the scale origin (e.g. center, top-left).
  • Rotate: Rotate elements between two angles (e.g. 0° to 180°) by defining an initial and final state.
  • Filter: Apply effects like Blur, Brightness, Contrast, Grayscale, Invert, Saturate, Sepia with initial and final state.
  • Custom: Enter numeric CSS-like properties (e.g. scale: 0.8) in initial and final states. Values must exist in both states and match in order.

Trigger — When should it happen?

This section defines what event starts the animation.

  • Hover: On mouse hover.
  • Click: On mouse click.
  • On Scroll: Animation starts when the element enters the viewport. You can define the start point as a screen percentage (e.g. 50%) or use a fixed scroll offset in pixels. It can be triggered in both directions.
  • Parent Hover / Click: Triggers when a parent element is hovered or clicked. The parent can be selected via dropdown or a selector (anchor or class).
  • While Scrolling: Animates the element continuously between two scroll positions. You can use negative or over 100% values to trigger before/after visibility.
  • On Page Load: Triggers the animation as soon as the page loads. Can be set to loop.

Transition — How should it animate?

This section defines the animation’s timing and easing behavior.

  • Transition Type: Choose from Ease, Ease-In, Ease-Out, Ease-In-Out, or Linear.
  • Duration: Animation length in milliseconds (0–3000ms).
  • Delay: Optional delay before the animation starts in milliseconds.

Once configured, click Save to apply the animation, Cancel to discard, or Reset to revert changes.

Block Compatibility

The Animation feature works with nearly all blocks in the editor. Exceptions include:

  • Query
  • Post Template
  • Spacer
  • Popover
  • Conditional Content

Background Animation Support

Screenshot of background animations, explained in the next paragraph.

Some blocks also support animations specifically for their background. This allows animating background images without affecting inner content.

  • Columns
  • Cover
  • Content Box

Video

You are currently viewing a placeholder content from Vimeo. To access the actual content, click the button below. Please note that doing so will share data with third-party providers.

More Information