@threlte/extras
Version:
Utilities, abstractions and plugins for your Threlte apps
24 lines (23 loc) • 435 B
JavaScript
/**
* # EXPERIMENTAL
*
* **This plugin is experimental and may change or be removed.**
*
* Marks a transition as global.
*
* @example
*
* ```svelte
* <script>
* import { global } from '@threlte/extras'
* import { fade } from './transitions'
* </script>
*
* <T.Mesh transition={global(fade)} />
* ```
*/
export const global = (transition) => {
return Object.assign(transition, {
global: true
});
};