# AnimateGL > AnimateGL adds WebGL and CSS animations to WordPress (block editor, Elementor, Bricks, Divi 5) and to any web page: entrance animations that play when an element scrolls into view, hover and scroll effects, text effects (typewriter, count-up, text split), animated section backgrounds and more. The free plugin is on wordpress.org; AnimateGL Pro adds the features marked Pro below. Every animation is a set of CSS classes (and for a few settings an attribute) on an element. This file lists all of them, made from the plugin's own controls. ## How to add an animation - Block editor: select the block and pick the animation in its AnimateGL panel, or add the classes in Advanced > Additional CSS class(es). - Elementor, Bricks and Divi 5: the AnimateGL controls in each element's panel (Divi: Advanced tab, Bricks: Style tab). The classes also work in an element's CSS Classes field. - Any other HTML on a site with the plugin, or a page with the AnimateGL JS runtime: add the classes to the element. ## Rules - An entrance plays when the element scrolls into view: the class agl plus the animation's class, such as agl agl-fadeCSS. - A direction goes at the end of the animation's class (agl-slideCSSLeft), and only the directions listed for that animation exist. A direction is the way the element moves: Up rises from below, Left comes in from the right. - Timing classes (agl-in-duration-, agl-in-delay-, ...) change an entrance and do nothing without one. Hover, scroll, loop and text effects work without an entrance unless their "alone" classes say otherwise. - Where a value lists "alone" classes, those are what it gives on an element without an entrance: a WebGL hover effect is agl agl-in-none agl-hover- there. An empty "alone" means it needs an entrance on the same element (a WebGL one for the WebGL scroll effects): timing, triggers, text split and the device settings change an entrance. - CSS animations work on any element. WebGL entrances work on images and other elements (drawn from a snapshot); the WebGL hover and scroll effects are for images with a WebGL entrance or none. - Settings shown as attributes (data-..., style) can't be set as classes: set them in the element's AnimateGL panel or controls. - A Pro class without AnimateGL Pro does nothing: the element shows as it is. Visitors who prefer reduced motion see elements without animation. - Use few, purposeful animations: one entrance per kind of section, 100-200 ms delays between neighbours, a signature effect or two per page. Example: `

` ## Entrance animations | Animation | Classes | Directions | Kind | Edition | | --- | --- | --- | --- | --- | | Default | `agl` | - | - | Free | | Fade | `agl agl-fadeCSS` | none, Left, Right, Up, Down | CSS | Free | | Zoom In | `agl agl-zoomInCSS` | none, Left, Right, Up, Down | CSS | Free | | Zoom Out | `agl agl-zoomOutCSS` | none, Left, Right, Up, Down | CSS | Free | | Wipe | `agl agl-wipeCSS` | none, Left, Right, Up, Down | CSS | Free | | Slide | `agl agl-slideCSS` | none, Left, Right, Up, Down | CSS | Free | | Blur | `agl agl-blurCSS` | none, Left, Right, Up, Down | CSS | Free | | Focus | `agl agl-focusCSS` | none, Left, Right, Up, Down | CSS | Free | | Flip | `agl agl-flipCSS` | none, Left, Right, Up, Down | CSS | Free | | Fold | `agl agl-foldCSS` | none, Left, Right, Up, Down | CSS | Free | | Rotate | `agl agl-rotateCSS` | none, Left, Right, Up, Down | CSS | Free | | Roll | `agl agl-rollCSS` | none, Left, Right, Up, Down | CSS | Free | | Skew | `agl agl-skewCSS` | none, Left, Right, Up, Down | CSS | Free | | Pop | `agl agl-popCSS` | none, Left, Right, Up, Down | CSS | Free | | Fade | `agl agl-fade` | none, Left, Right, Up, Down, Light, Dark, TopLeft, TopRight, BottomLeft, BottomRight, Circle, CircleTopLeft, CircleTopRight, CircleBottomLeft, CircleBottomRight, Mask | WebGL | Free | | Flip | `agl agl-flip` | none, Left, Right, Up, Down | WebGL | Free | | Slide | `agl agl-slide` | none, Left, Right, Up, Down | WebGL | Free | | Stretch | `agl agl-stretch` | none, Left, Right, Up, Down | WebGL | Free | | Bend | `agl agl-bend` | none, Left, Right, Up, Down | WebGL | Free | | Peel | `agl agl-peel` | none, Left, Right, Up, Down | WebGL | Free | | Zoom In | `agl agl-zoomIn` | none, Left, Right, Up, Down | WebGL | Free | | Zoom Out | `agl agl-zoomOut` | none, Left, Right, Up, Down | WebGL | Free | | Glitch | `agl agl-glitch` | - | WebGL | Free | | Assemble | `agl agl-assemble` | none, Left, Right, Up, Down, In, Out | WebGL | Pro | | Tile flip | `agl agl-tileFlip` | none, Left, Right, Up, Down, In, Out | WebGL | Pro | | Materialize | `agl agl-materialize` | none, Left, Right, Up, Down, In, Out | WebGL | Pro | | Vortex | `agl agl-vortex` | none, Left, Right, Up, Down, In, Out | WebGL | Pro | | Murmuration | `agl agl-murmuration` | none, Left, Right, Up, Down, In, Out | WebGL | Pro | | Square | `agl agl-squareCSSCenter` | Center, Left, Right, Up, Down, TopLeft, TopRight, BottomLeft, BottomRight | CSS | Pro | | Circle | `agl agl-circleCSSCenter` | Center, Left, Right, Up, Down, TopLeft, TopRight, BottomLeft, BottomRight | CSS | Pro | | Line | `agl agl-lineCSSHorizontal` | Horizontal, Vertical | CSS | Pro | ### Directions Added to the end of the animation's class (`agl-fadeCSS` + `Left` = `agl-fadeCSSLeft`). Each animation has only the directions in its row above: `agl-glitchLeft` doesn't exist. A direction is the way the element moves: Up rises from below. - `Left`: Left (Free) - `Right`: Right (Free) - `Up`: Up (Free) - `Down`: Down (Free) - `In`: In (Assemble, Tile flip, Materialize, Vortex, Murmuration) (Pro) - `Out`: Out (Assemble, Tile flip, Materialize, Vortex, Murmuration) (Pro) - `Light`: Light (Fade WebGL) (Pro) - `Dark`: Dark (Fade WebGL) (Pro) - `Circle`: Circle (Fade WebGL) (Pro) - `CircleTopLeft`: Circle from top left (Fade WebGL) (Pro) - `CircleTopRight`: Circle from top right (Fade WebGL) (Pro) - `CircleBottomLeft`: Circle from bottom left (Fade WebGL) (Pro) - `CircleBottomRight`: Circle from bottom right (Fade WebGL) (Pro) - `Mask`: Mask (Fade WebGL) (Pro) - `TopLeft`: Top left (Fade WebGL, Square, Circle) (Pro) - `TopRight`: Top right (Fade WebGL, Square, Circle) (Pro) - `BottomLeft`: Bottom left (Fade WebGL, Square, Circle) (Pro) - `BottomRight`: Bottom right (Fade WebGL, Square, Circle) (Pro) - `Center`: Center (Square, Circle) (Pro) - `Horizontal`: Horizontal (Line) (Pro) - `Vertical`: Vertical (Line) (Pro) ## Settings and effects Each setting with its values and the classes or attributes they add. ### Duration - from 0 to 3000 ms in steps of 100, default 1000 ms: `agl-in-duration-`; needs an entrance ### Delay - from 0 to 5000 ms in steps of 100, default 0 ms: `agl-in-delay-`; needs an entrance ### Distance - from 0 to 5 in steps of 0.01, default 1: `agl-in-distance-`; needs an entrance ### Repeat - On: `agl-in-repeat`; needs an entrance ### Lock to scrollbar - On: `agl-in-lockToScrollbar`; needs an entrance ### Easing A spring easing sets its own duration. - Linear: `agl-in-easing-linear`; needs an entrance - easeOutSine: `agl-in-easing-easeOutSine`; needs an entrance - easeInSine: `agl-in-easing-easeInSine`; needs an entrance - easeInOutSine: `agl-in-easing-easeInOutSine`; needs an entrance - easeOutQuad: `agl-in-easing-easeOutQuad`; needs an entrance - easeInQuad: `agl-in-easing-easeInQuad`; needs an entrance - easeInOutQuad: `agl-in-easing-easeInOutQuad`; needs an entrance - easeOutCubic: `agl-in-easing-easeOutCubic`; needs an entrance - easeInCubic: `agl-in-easing-easeInCubic`; needs an entrance - easeInOutCubic: `agl-in-easing-easeInOutCubic`; needs an entrance - easeOutExpo: `agl-in-easing-easeOutExpo`; needs an entrance - easeInExpo: `agl-in-easing-easeInExpo`; needs an entrance - easeInOutExpo: `agl-in-easing-easeInOutExpo`; needs an entrance - easeOutBack: `agl-in-easing-easeOutBack`; needs an entrance - easeInOutBack: `agl-in-easing-easeInOutBack`; needs an entrance - easeInBack: `agl-in-easing-easeInBack`; needs an entrance - easeOutElastic: `agl-in-easing-easeOutElastic`; needs an entrance - easeOutBounce: `agl-in-easing-easeOutBounce`; needs an entrance - Spring, soft: `agl-in-easing-spring-soft`; needs an entrance - Spring, bouncy: `agl-in-easing-spring-bouncy`; needs an entrance - Spring, stiff: `agl-in-easing-spring-stiff`; needs an entrance - Steps, 5: `agl-in-easing-steps-5`; needs an entrance - Steps, 10: `agl-in-easing-steps-10`; needs an entrance ### Mask (Pro) Fade WebGL, Mask: the element appears where the mask is dark first and where it is light last. - Ink: `data-agl-fade-mask="ink"` - Brush: `data-agl-fade-mask="brush"` - Noise: `data-agl-fade-mask="noise"` - Image: `data-agl-fade-mask=""` ### Mask image (Pro) Black and white works best. It covers the element, as a background image would. An image from another domain needs CORS headers, or the element fades by its own brightness. - Image: `data-agl-fade-mask=""` ### Start (Pro) - On page load: `agl-trigger-load`; needs an entrance - On click: `agl-trigger-click`; needs an entrance - On hover: `agl-trigger-hover`; needs an entrance - When a class is added: `agl-trigger-class-`; needs an entrance - After another element finishes: `agl-after-`; needs an entrance ### Element ID or class name (Pro) On click or hover: empty plays again on clicks or hovers on this element, an element ID waits for that element. When a class is added: the class name. After another element finishes: the CSS ID (Advanced tab) of the animated element to wait for; without one on the page, this element plays on scrolling into view. - Text: `agl-trigger-click-` ### Stagger inner elements (ms) (Pro) Animates the inner elements one after another, this many ms apart, instead of the whole element. 0: off. - from 0 to 1000 in steps of 50, default 0: `agl-stagger-`; needs an entrance ### Split text (CSS animations) (Pro) - Words: `agl-split-words`; needs an entrance - Letters: `agl-split-letters`; needs an entrance - Lines: `agl-split-lines`; needs an entrance ### Reveal from behind an edge (Pro) Each part is hidden outside its own place, so it rises, slides or turns in from behind an edge, as in video titles. Slide and Fade from below work best. - On: `agl-split-mask`; needs an entrance ### Animate on mobile (Pro) - Off: `agl-off-mobile`; needs an entrance ### Animate on tablet (Pro) - Off: `agl-off-tablet`; needs an entrance ### Animate on desktop (Pro) - Off: `agl-off-desktop`; needs an entrance ### Play (Pro) Once per visitor is remembered in the browser (localStorage), which in the EU may need consent. - Once per browser session: `agl-once-session-`; needs an entrance - Once per visitor: `agl-once-visitor-`; needs an entrance ### While scrolling After the entrance. Skew leans with the scroll speed. Parallax, zoom, fade, rotate, blur and 3D tilt follow where the element is on the screen. These work on any element. Bend, wave, RGB shift, glitch and scatter are for images with a WebGL animation: scatter breaks the image into tiles as it leaves the top of the screen. Off for visitors who prefer reduced motion. - Skew: `agl-scroll-skew` - Parallax: `agl-scroll-parallax` (Pro) - Parallax sideways: `agl-scroll-slide` (Pro) - Zoom: `agl-scroll-zoom` (Pro) - Fade: `agl-scroll-fade` (Pro) - Rotate: `agl-scroll-rotate` (Pro) - Blur: `agl-scroll-blur` (Pro) - 3D tilt: `agl-scroll-tilt` (Pro) - Bend (WebGL): `agl-scroll-bend`; needs an entrance (Pro) - Wave (WebGL): `agl-scroll-wave`; needs an entrance (Pro) - RGB shift (WebGL): `agl-scroll-rgb`; needs an entrance (Pro) - Glitch (WebGL): `agl-scroll-glitch`; needs an entrance (Pro) - Scatter (WebGL): `agl-scroll-scatter`; without an entrance: `agl-tile-50` (Pro) ### Strength (%) (Pro) - from 25 to 200 % in steps of 25, default 100 %: `agl-scroll-strength-` ### Hover effect While the mouse is over the element, after the entrance. The effects without "(WebGL)" work on any element: colour under the mouse, spotlight, sharp under the mouse and before and after keep it grey, dark or blurred until the mouse shows it. The WebGL effects are for images, without an animation or with a WebGL one. Mouse only: to preview it on a phone, turn on "Follow a finger on touch screens" in the Settings tab of the AnimateGL page. Off for visitors who prefer reduced motion. - Tilt: `agl-hover-tilt` - Grow: `agl-hover-grow` - Lift: `agl-hover-lift` - Colour under the mouse: `agl-hover-css-reveal` (Pro) - Spotlight: `agl-hover-css-spotlight` (Pro) - Sharp under the mouse: `agl-hover-css-focus` (Pro) - Before and after: `agl-hover-css-split` (Pro) - Zoom in (WebGL): `agl-hover-zoom`; without an entrance: `agl` `agl-in-none` `agl-hover-zoom` (Pro) - Bulge (WebGL): `agl-hover-bulge`; without an entrance: `agl` `agl-in-none` `agl-hover-bulge` (Pro) - RGB shift (WebGL): `agl-hover-rgb`; without an entrance: `agl` `agl-in-none` `agl-hover-rgb` (Pro) - Light (WebGL): `agl-hover-light`; without an entrance: `agl` `agl-in-none` `agl-hover-light` (Pro) - Liquid (WebGL): `agl-hover-liquid`; without an entrance: `agl` `agl-in-none` `agl-hover-liquid` (Pro) - Ripple (WebGL): `agl-hover-ripple`; without an entrance: `agl` `agl-in-none` `agl-hover-ripple` (Pro) - Drag (WebGL): `agl-hover-drag`; without an entrance: `agl` `agl-in-none` `agl-hover-drag` (Pro) - Pixel smear (WebGL): `agl-hover-pixels`; without an entrance: `agl` `agl-in-none` `agl-hover-pixels` (Pro) - Glitch (WebGL): `agl-hover-glitch`; without an entrance: `agl` `agl-in-none` `agl-hover-glitch` (Pro) - Colour under the mouse (WebGL): `agl-hover-reveal`; without an entrance: `agl` `agl-in-none` `agl-hover-reveal` (Pro) - Spotlight (WebGL): `agl-hover-spotlight`; without an entrance: `agl` `agl-in-none` `agl-hover-spotlight` (Pro) - Sharp under the mouse (WebGL): `agl-hover-focus`; without an entrance: `agl` `agl-in-none` `agl-hover-focus` (Pro) - Mosaic reveal (WebGL): `agl-hover-mosaic`; without an entrance: `agl` `agl-in-none` `agl-hover-mosaic` (Pro) - Colour trail (WebGL): `agl-hover-trail`; without an entrance: `agl` `agl-in-none` `agl-hover-trail` (Pro) - Before and after (WebGL): `agl-hover-split`; without an entrance: `agl` `agl-in-none` `agl-hover-split` (Pro) - Image swap (WebGL): `agl-hover-swap`; without an entrance: `agl` `agl-in-none` `agl-hover-swap` (Pro) - Tiles push (WebGL): `agl-hover-tilesPush`; without an entrance: `agl` `agl-in-none` `agl-hover-tilesPush` (Pro) - Tiles lift (WebGL): `agl-hover-tilesLift`; without an entrance: `agl` `agl-in-none` `agl-hover-tilesLift` (Pro) - Tiles scatter (WebGL): `agl-hover-tilesScatter`; without an entrance: `agl` `agl-in-none` `agl-hover-tilesScatter` (Pro) ### Hover image (Pro) Image swap: replaces the image while the mouse is over it (it zooms in without one). Colour under the mouse, Spotlight, Sharp under the mouse, Mosaic reveal and Colour trail: shown around the mouse, with the image as it is elsewhere. Before and after: shown left of the mouse. The same for the effects without "(WebGL)", on any element. - Image: `data-agl-hover-image=""` ### Animated background (Pro) A moving WebGL background behind the content, in three colours. It runs only while the element is on screen, as one still frame for visitors who prefer reduced motion, and shows as a still gradient (or the element's own background) where WebGL is off. Only on: container, section, div-block, flexbox, block, div, row. - Flow: `agl-bg-flow` - Blobs: `agl-bg-blobs` - Waves: `agl-bg-waves` - Aurora: `agl-bg-aurora` - Grain: `agl-bg-grain` - Mesh: `agl-bg-mesh` ### Background colour 1 (Pro) Empty: the theme's primary, secondary and base colours. Waves, Blobs and Aurora use the third as the base. Only on: container, section, div-block, flexbox, block, div, row. - Color: `style="--agl-bg-1:;"` ### Background colour 2 (Pro) Only on: container, section, div-block, flexbox, block, div, row. - Color: `style="--agl-bg-2:;"` ### Background colour 3 (Pro) Only on: container, section, div-block, flexbox, block, div, row. - Color: `style="--agl-bg-3:;"` ### Background on phones (Pro) Only on: container, section, div-block, flexbox, block, div, row. - Full: `agl-bg-phone-full` - Still frame: `agl-bg-phone-still` - Off (still gradient): `agl-bg-phone-hidden` ### Overlay colour (Pro) Over the background, so text on it stays readable. Only on: container, section, div-block, flexbox, block, div, row. - Color: `style="--agl-bg-overlay:;--agl-bg-overlay-strength:0.8;"` ### Overlay strength (%) (Pro) Only on: container, section, div-block, flexbox, block, div, row. - from 0 to 80 % in steps of 5, default 0 %: `style="--agl-bg-overlay:;--agl-bg-overlay-strength:0.8;"` ### Loop (Pro) Repeats for as long as the element is on screen, after the entrance: pulse and float slowly, wobble, shake, heartbeat and swing in bursts with a pause between them. Works on any element, with the scroll and hover effects. Off for visitors who prefer reduced motion. - Pulse: `agl-loop-pulse` - Float: `agl-loop-float` - Wobble: `agl-loop-wobble` - Shake: `agl-loop-shake` - Heartbeat: `agl-loop-heartbeat` - Swing: `agl-loop-swing` ### Tile size (Pro) Smaller tiles are more of them. Very large images and phones get larger tiles, to keep it smooth. - from 1 to 50 px in steps of 1, default 1 px: `agl-tile-` ### Count up the numbers Each number in the element counts up from 0 when it comes into view, or with its entrance, and ends as written: 1,250 or 98.6%. Visitors who prefer reduced motion see the numbers as written. - On: `agl-count` ### Type out the text The text is typed a character at a time behind a caret when the element comes into view, or with its entrance. Not with count-up numbers on the same element. Visitors who prefer reduced motion see the text as written. - On: `agl-typewriter` ## Links - [Use AnimateGL with AI](https://animategl.com/docs/ai/): this reference as a page, with example prompts - [Docs](https://animategl.com/docs/) - [Entrance animations](https://animategl.com/entrance-effects/), [Hover effects](https://animategl.com/hover-effects/), [Scroll effects](https://animategl.com/scroll-effects/): every effect live - [AnimateGL Pro](https://animategl.com/pro/) and [Pricing](https://animategl.com/pricing/) - [Free plugin on wordpress.org](https://wordpress.org/plugins/animategl/)