B4X Store
jdashboardUI / Core & Utilities / janimations
Core & Utilities

janimations

Static helpers for view transitions and visual feedback.

Search all jdashboardUI docs
Source
jdashboardUI.b4xlib · Public API only
Store language: en

JDashboardUI · Complete API guide · B4J/JavaFX · October 30, 2026 source bundle

Animations for form validation, panel transitions, click feedback and visual effects.

Illustrative component mockup for janimations

Illustrative documentation mockup, not an exact control screenshot.

What it does and when to use it

Animations for form validation, panel transitions, click feedback and visual effects.

Initialization and practical examples

The example demonstrates the available operations. Root, where used, refers to an existing B4XView. Example image files must actually be included in the project's Files folder.

' Form validation
janimations.ShakeView(txtName, 6dip, 350)
janimations.HighlightView(txtName, xui.Color_Red, 450)

' Color effects for a text view
janimations.FadeTextColorAsync(lblStatus, xui.Color_Green, 400)
janimations.FadeTextColorAndBackAsync(lblStatus, xui.Color_Red, 650)

' Show, hide, and move panels
janimations.FadeIn(PnlDetails, 300)
janimations.FadeOut(PnlDetails, 250)
janimations.SlideDown(PnlDetails, 300)
janimations.SlideUp(PnlDetails, 300)
janimations.SlideLeft(PnlDetails, 300)

' Ripple and decorative actions
janimations.RippleEffectFromCenter(PnlButton, xui.Color_White, 450)
janimations.RippleWaveEffect(PnlButton, xui.Color_Cyan, 800, 3)
janimations.SetCircleClip(AvatarView)
janimations.Jump(PnlButton)

Complete public API reference

This module exposes 13 public methods/accessors in the inspected version. All declarations, including variants, getters/setters and Designer lifecycle hooks, appear below.

Exact source declaration Purpose
HighlightView(View As B4XView, color As Int, animationDuration As Int) Temporarily changes a view color then restores it.
FadeTextColorAsync(targetView As B4XView, targetColor As Int, duration As Int) Animates text color to a target.
FadeTextColorAndBackAsync(targetView As B4XView, targetColor As Int, duration As Int) Animates text color and restores it.
ShakeView(View As B4XView, Magnitude As Int, Duration As Int) Shakes a view through rotations; Magnitude controls strength.
FadeOut(View As B4XView, Duration As Int) Gradually reduces opacity.
FadeIn(View As B4XView, Duration As Int) Gradually increases opacity.
SetCircleClip(pnl As B4XView) Applies a circular clipping mask.
SlideDown(View As B4XView, Duration As Int) Slides the view down.
SlideUp(View As B4XView, Duration As Int) Slides the view up.
SlideLeft(View As B4XView, Duration As Int) Slides the view left.
RippleEffectFromCenter(Parent As B4XView, Color As Int, Duration As Int) Expands a ripple from the center.
RippleWaveEffect(Parent As B4XView, Color As Int, Duration As Int, WaveCount As Int) Creates multiple ripple waves; WaveCount determines the count.
Jump(TargetView As B4XView) Runs a brief jump animation.

B4X properties: read/write access

Public getX/setX members correspond to standard B4X Control.X property syntax when their signatures are property-compatible. Use multi-argument members as methods.

Property Access
— —

Public fields

No additional public instance fields are declared.

Designer properties

This module declares no custom Designer properties.

Events

This module declares no custom public events.

Lifecycle, compatibility and limitations

This is a StaticCode module: call it directly without Initialize. Durations use milliseconds; avoid simultaneously starting conflicting transitions.

DesignerCreateView and Base_Resize, where listed, are Custom View lifecycle hooks managed by B4J. Normally you should not call them manually. When adding the view through the Designer, do not initialize the same instance again.

API conventions

  • All signatures and argument types come from the inspected source bundle.
  • B4XView denotes an XUI view, B4XFont an XUI font, and Object an arbitrary value.
  • Variable names in samples are illustrative: use those from your actual project.
  • Source review was performed; no real B4J compilation was performed in this environment.