Complete GSAP animation library for MHM Services. 55 professional scroll-triggered animations using simple CSS classes. Works seamlessly with Elementor and the MHM Web Brand Kit.
Essential entrance animations for any element. These are your go-to animations for most content.
mhm-fade-upFade in while moving up from below
mhm-fade-downFade in while moving down from above
mhm-fade-leftFade in while moving from the left
mhm-fade-rightFade in while moving from the right
mhm-fade-inSimple opacity fade (no movement)
mhm-scale-inScale up from 92% to 100%
mhm-scale-upScale up with fade and vertical movement
mhm-blur-inBlur to sharp focus transition
mhm-rotate-inRotate while fading in
mhm-flip-in3D flip entrance effect
Apply these to parent containers to animate child elements in sequence.
mhm-stagger-childrenStaggers all direct children
mhm-stagger-fadeChildren fade in with stagger
mhm-stagger-scaleChildren scale in with stagger
Advanced text effects that animate individual characters, words, or lines. Requires SplitText plugin to be enabled.
mhm-text-revealReveal text from behind a mask
mhm-text-charsAnimate each character individually
mhm-text-wordsAnimate each word individually
mhm-text-linesAnimate each line individually
mhm-text-scrambleScramble to final text (ScrambleText plugin)
mhm-typewriterTypewriter effect (TextPlugin)
Stroke drawing effects for SVG paths. Requires DrawSVG plugin to be enabled.
<svg> elements or containers with SVG inside.
mhm-draw-lineDraw SVG stroke from start to end
mhm-draw-reverseDraw SVG stroke from end to start
mhm-draw-centerDraw SVG stroke from center outward
Advanced scroll-linked animations including parallax and pinning.
mhm-parallax-slowSlow parallax scroll effect (0.3x speed)
mhm-parallax-mediumMedium parallax scroll (0.5x speed)
mhm-parallax-fastFast parallax scroll (0.7x speed)
mhm-pinPin element during scroll
mhm-scrubLink animation to scroll position
Professional image reveal effects and transitions.
mhm-image-glideImage glides into view
mhm-image-revealImage reveals from behind mask
mhm-image-zoomImage zooms in on scroll
mhm-image-curtainCurtain reveal effect
Hover effects and interactive elements.
mhm-hover-liftLift up on hover
mhm-hover-growGrow on hover
mhm-hover-glowGlow effect on hover
mhm-magneticMagnetic cursor effect (Draggable plugin)
Unique animations for attention-grabbing elements.
mhm-counterAnimated number counter (use data-mhm-count-to="100")
mhm-progressAnimated progress bar fill
mhm-bounceContinuous bounce effect
mhm-shakeShake for attention
mhm-pulseContinuous pulse effect
Cinematic zoom and pan effects for images (apply to <img> elements).
<img> elements. They create slow, cinematic zoom and pan movements
perfect for hero sections and portfolios.
mhm-kenburnsClassic Ken Burns zoom + pan
mhm-kenburns-topZoom toward top
mhm-kenburns-bottomZoom toward bottom
mhm-kenburns-leftZoom toward left
mhm-kenburns-rightZoom toward right
mhm-kenburns-top-leftZoom toward top-left corner
mhm-kenburns-top-rightZoom toward top-right corner
mhm-kenburns-bottom-leftZoom toward bottom-left corner
mhm-kenburns-bottom-rightZoom toward bottom-right corner
Animated background position shifts for background images.
background-position property. Apply to elements with
background-image set. Works beautifully on hero sections and full-width containers.
mhm-bg-pan-leftPan background to the left
mhm-bg-pan-rightPan background to the right
mhm-bg-pan-topPan background upward
mhm-bg-pan-bottomPan background downward
mhm-bg-pan-horizontalHorizontal pan left to right
mhm-bg-pan-verticalVertical pan top to bottom
mhm-bg-pan-diagonalDiagonal pan effect
Dynamic color and gradient animations.
mhm-color-changeAnimate between colors on scroll
mhm-gradient-shiftShift gradient position
Fine-tune any animation using data attributes.
| Attribute | Purpose | Values | Example |
|---|---|---|---|
data-mhm-trigger |
When to trigger animation | scroll, load | data-mhm-trigger="load" |
💡 Important: By default, animations trigger on scroll-in.
Use data-mhm-trigger="load" to make animations play immediately on page load.
All demos on this reference page use "load" trigger so you can see them without scrolling.
|
|||
data-mhm-delay |
Delay before animation starts (seconds) | 0.1, 0.2, 0.5, etc. | data-mhm-delay="0.3" |
data-mhm-duration |
Animation duration (seconds) | 0.5, 1, 1.5, etc. | data-mhm-duration="1.2" |
data-mhm-distance |
Movement distance (pixels) | 30, 50, 100, etc. | data-mhm-distance="80" |
data-mhm-once |
Animate only once? | true, false | data-mhm-once="true" |
data-mhm-stagger |
Stagger delay between children (seconds) | 0.05, 0.1, 0.2, etc. | data-mhm-stagger="0.15" |
data-mhm-start |
ScrollTrigger start position | top 80%, center, etc. | data-mhm-start="top 90%" |
data-mhm-ease |
GSAP easing function | power2.out, elastic, bounce | data-mhm-ease="elastic" |
data-mhm-count-to |
Target number for counter | Any number | data-mhm-count-to="5000" |
data-mhm-markers |
Show ScrollTrigger debug markers | true, false | data-mhm-markers="true" |
<div class="mhm-fade-up">
This will fade up when scrolled into view
</div>
<div class="mhm-fade-up" data-mhm-trigger="load">
This will fade up immediately when page loads
</div>
<div class="mhm-scale-in"
data-mhm-trigger="load"
data-mhm-duration="1.5"
data-mhm-delay="0.3">
Slow scale in with delay on page load
</div>
<div class="mhm-stagger-fade"
data-mhm-trigger="load"
data-mhm-stagger="0.2">
<div>Item 1</div>
<div>Item 2</div>
<div>Item 3</div>
</div>
mhm-fade-up