Skip to main content

Animations

Animations bring your popup to life with smooth transitions and eye-catching effects. XBuilder integrates Animate.css for a wide variety of animation options.

Animation Types​

Entry Animations​

How the popup appears:

  • Fade in
  • Slide in
  • Zoom in
  • Bounce in
  • And many more

Exit Animations​

How the popup disappears:

  • Fade out
  • Slide out
  • Zoom out
  • Bounce out
  • And many more

Hover/Interactive Animations​

Effects on user interaction:

  • Button hover effects
  • Element transitions
  • Attention effects

Entry Animations​

Fade Animations​

AnimationEffect
fadeInFade from transparent
fadeInDownFade + slide from top
fadeInUpFade + slide from bottom
fadeInLeftFade + slide from left
fadeInRightFade + slide from right

Slide Animations​

AnimationEffect
slideInDownSlide from top
slideInUpSlide from bottom
slideInLeftSlide from left
slideInRightSlide from right

Zoom Animations​

AnimationEffect
zoomInScale from small
zoomInDownZoom + from top
zoomInUpZoom + from bottom

Bounce Animations​

AnimationEffect
bounceInBounce into view
bounceInDownBounce from top
bounceInUpBounce from bottom
bounceInLeftBounce from left
bounceInRightBounce from right

Special Entry​

AnimationEffect
flipInXFlip horizontal
flipInYFlip vertical
rotateInRotate into view
rollInRoll into view
lightSpeedInLeftSpeed effect

Exit Animations​

Fade Out​

AnimationEffect
fadeOutFade to transparent
fadeOutDownFade + slide down
fadeOutUpFade + slide up
fadeOutLeftFade + slide left
fadeOutRightFade + slide right

Slide Out​

AnimationEffect
slideOutDownSlide to bottom
slideOutUpSlide to top
slideOutLeftSlide to left
slideOutRightSlide to right

Zoom Out​

AnimationEffect
zoomOutScale to small
zoomOutDownZoom + to bottom
zoomOutUpZoom + to top

Bounce Out​

AnimationEffect
bounceOutBounce out
bounceOutDownBounce to bottom
bounceOutUpBounce to top

Animation Settings​

Duration​

How long the animation takes:

ValueSpeed
200msVery fast
300msFast
500msNormal
700msSlow
1000msVery slow

Delay​

Time before animation starts:

Delay: 0ms (immediate)
Delay: 200ms (slight pause)
Delay: 500ms (noticeable pause)

Easing​

Animation timing function:

EasingEffect
easeDefault, natural
ease-inSlow start
ease-outSlow end
ease-in-outSlow start and end
linearConstant speed

Configuring Animations​

  1. Go to Design tab
  2. Find Animation section
  3. Select Entry animation
  4. Select Exit animation
  5. Configure duration

Element Animations​

Some elements support animations:

  1. Select element
  2. Go to Style section
  3. Find Animation settings
  4. Configure hover/transition effects

Attention Animations​

Use for drawing focus to elements:

AnimationEffect
bounceBouncing motion
flashFlashing visibility
pulsePulsing scale
rubberBandStretchy bounce
shakeHorizontal shake
swingSwinging motion
tadaAttention combo
wobbleWobbling motion
jelloJello-like movement
heartBeatHeartbeat pulse

Using Attention Animations​

Good for:

  • CTA buttons
  • Important notices
  • Interactive elements
  • Onboarding hints

Use sparingly to avoid annoying users.

Hover Effects​

Button Hover​

Common hover animations:

  • Color change (transition)
  • Scale up slightly
  • Shadow increase
  • Background shift

Example CSS:

.button {
transition: all 0.3s ease;
}

.button:hover {
transform: scale(1.05);
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

Element Hover​

For images and cards:

  • Subtle scale
  • Shadow increase
  • Color overlay
  • Transform effects

Transition Effects​

CSS Transitions​

For smooth property changes:

transition: property duration easing;
transition: all 0.3s ease;
transition: background-color 0.2s ease;

Transition Properties​

Common transitioned properties:

  • opacity
  • transform
  • background-color
  • box-shadow
  • border-color

Animation Best Practices​

Performance​

  1. Use transform and opacity — GPU accelerated
  2. Avoid animating layout — No width/height animations
  3. Short durations — 200-500ms is ideal
  4. Reduce on mobile — Simpler is faster

User Experience​

  1. Purposeful — Animation should have meaning
  2. Not excessive — Don't animate everything
  3. Consistent — Same animations for same actions
  4. Respect preferences — Honor prefers-reduced-motion

Accessibility​

@media (prefers-reduced-motion: reduce) {
* {
animation-duration: 0.01ms !important;
transition-duration: 0.01ms !important;
}
}

XBuilder respects reduced motion preferences.

Common Patterns​

Modal Entry​

Animation: fadeIn or zoomIn
Duration: 300ms
Easing: ease-out

Slide-in Panel​

Animation: slideInRight
Duration: 400ms
Easing: ease-out

Floating Bar​

Animation: slideInDown
Duration: 300ms
Easing: ease-out

Toast/Notification​

Entry: fadeInUp
Exit: fadeOutUp
Duration: 200ms

Matching Entry/Exit​

EntryMatching Exit
fadeInfadeOut
slideInDownslideOutUp
slideInRightslideOutRight
zoomInzoomOut
bounceInbounceOut

Troubleshooting​

Animation not playing:

  • Check animation is selected
  • Verify duration > 0
  • Clear cache
  • Test in different browser

Animation too slow/fast:

  • Adjust duration
  • Try different easing
  • Reduce complexity

Animation janky:

  • Use transform/opacity only
  • Reduce complexity
  • Check device performance

Animation repeating:

  • Check animation-iteration-count
  • Verify trigger settings
  • Look for JavaScript conflicts
  • Layout — Position affects animation direction
  • Responsive — Adjust animations per device