customAnimations
Centralized custom animations for the SDK components.
Details
Attribute: custom-animations
Type: string | CustomAnimations
Default value: undefined
Morphology
provider.customAnimations = {
sdkProvider: { loading: '/assets/anim/loading.json' },
};Description
JSON or object with animation paths (Lottie, GIF, MP4) shared between facephi-sdk-provider, facephi-selphi-widget, facephi-selphid-widget and other children. The configuration can be partial: components without a defined value use their default animations.
Considerations
If you define the same animation here and in a direct prop (e.g. loadingAnimation), customAnimations takes priority. Invalid values are reported in the console.
Additional information
Available structure:
sdkProvider
loading(string): Provider loading animation.
fileUploader
loadingFile(string): File loading animation.
qr
Selphi(string): Desktop preview during Selphi capture on mobile.selphid(string): Desktop preview during SelphID capture on mobile.fileUploader(string): Desktop preview during file upload on mobile.
Selphi
loading(string): Selphi loading animation.tutorial(string[]): Tutorial animations.initialTip(object): Selphi previous tip animation.mobile(string): Previous tip in mobile view.desktop(string): Previous tip in desktop view.
selphid
loading(string): SelphID loading animation.tutorial(string[]): Tutorial animations.initialTip(object): SelphID previous tip animation.mobile(string): Previous tip in mobile view.desktop(string): Previous tip in desktop view.
Example
Last updated