Optional
__fixOptional
canWhether to preload images automatically.
true
Optional
canWhether to preload videos automatically.
false
Optional
containerThe container for the preloader. You can pass a CSS selector string,
an HTML element, or set it to false
if you only need the preloader callbacks.
'#v-preloader'
Optional
forceIf true
and the animated progress is less than 1
, a timeline will automatically complete the progress when nearing the end. If false
, progress will continue using linear interpolation until it completes.
500
Optional
lerpThe amount of linear interpolation to apply to the loading progress. If set to false
, no interpolation will be used, and the progress will update instantly.
0.1
Optional
preloadThe selector for custom resources to be preloaded. These elements should have properties such as isLoaded
, isComplete
, or the attribute data-is-loaded
(from 0 to 1 or a boolean) for tracking loading status.
Custom elements may also use the data-load-count
attribute to indicate their weight.
'.js-preload'
Optional
preloadA class name that can be added to elements (such as images, videos, or custom resources) that should be ignored during the preload process.
'js-preload-ignore'
Optional
resourcesThe default number of resources to preload. This can be incremented using custom logic.
0
Static properties for a component. These properties remain constant throughout the lifecycle of the component. This interface extends IStaticProps, inheriting the static properties defined for modules.