first commit
This commit is contained in:
8
node_modules/motion-dom/dist/es/view/utils/get-layer-info.mjs
generated
vendored
Normal file
8
node_modules/motion-dom/dist/es/view/utils/get-layer-info.mjs
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
function getViewAnimationLayerInfo(pseudoElement) {
|
||||
const match = pseudoElement.match(/::view-transition-(old|new|group|image-pair)\((.*?)\)/);
|
||||
if (!match)
|
||||
return null;
|
||||
return { layer: match[2], type: match[1] };
|
||||
}
|
||||
|
||||
export { getViewAnimationLayerInfo };
|
||||
Reference in New Issue
Block a user