@vectoriox/iox-ui 5.72.0 → 5.72.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -6265,7 +6265,7 @@ function revealFromOf(params) {
|
|
|
6265
6265
|
}
|
|
6266
6266
|
function clipFrames(params, inlineSign = 1) {
|
|
6267
6267
|
const from = revealFromOf(params);
|
|
6268
|
-
return [{ clipPath: revealClipPath(0, from, inlineSign) }, { clipPath: revealClipPath(SHOWN_PERCENT, from, inlineSign) }];
|
|
6268
|
+
return [{ opacity: 1, clipPath: revealClipPath(0, from, inlineSign) }, { opacity: 1, clipPath: revealClipPath(SHOWN_PERCENT, from, inlineSign) }];
|
|
6269
6269
|
}
|
|
6270
6270
|
const INLINE_FROMS = new Set([SceneRevealFrom.Start, SceneRevealFrom.End]);
|
|
6271
6271
|
/**
|
|
@@ -6305,6 +6305,10 @@ function keyframeStyleEntries(frame) {
|
|
|
6305
6305
|
function entrancePreStateStyle(type, params) {
|
|
6306
6306
|
if (!ENTRANCE_ACTION_TYPES.has(type))
|
|
6307
6307
|
return {};
|
|
6308
|
+
// Hidden by opacity until it plays: a fully clipped element does not intersect anything, so its first frame as a
|
|
6309
|
+
// pre-state would mean "Enter viewport" never fires and it stays hidden for good.
|
|
6310
|
+
if (type === RevealActionType.Clip)
|
|
6311
|
+
return { opacity: '0' };
|
|
6308
6312
|
return Object.fromEntries(keyframeStyleEntries(buildInteractionKeyframes(type, params)?.[0]));
|
|
6309
6313
|
}
|
|
6310
6314
|
/** Triggers that play an entrance by themselves — the page loading or arriving, the element scrolling into view. */
|