Mission Control Dashboard - Initial implementation
This commit is contained in:
17
node_modules/motion-dom/dist/es/utils/mix/visibility.mjs
generated
vendored
Normal file
17
node_modules/motion-dom/dist/es/utils/mix/visibility.mjs
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
const invisibleValues = new Set(["none", "hidden"]);
|
||||
/**
|
||||
* Returns a function that, when provided a progress value between 0 and 1,
|
||||
* will return the "none" or "hidden" string only when the progress is that of
|
||||
* the origin or target.
|
||||
*/
|
||||
function mixVisibility(origin, target) {
|
||||
if (invisibleValues.has(origin)) {
|
||||
return (p) => (p <= 0 ? origin : target);
|
||||
}
|
||||
else {
|
||||
return (p) => (p >= 1 ? target : origin);
|
||||
}
|
||||
}
|
||||
|
||||
export { invisibleValues, mixVisibility };
|
||||
//# sourceMappingURL=visibility.mjs.map
|
||||
Reference in New Issue
Block a user