Scene Transitions
If you want to buy me a coffee 
Allows GM to make simple transitions to show players before navigating to new screen. Can be used for narrative effect. Can now be used with macros to create transitionless Transitions. And journal entries can now be used to generate a Transition.
NOTE: If you are a javascript developer and not a typescript developer, you can just use the javascript files under the dist folder
Installation
It's always easiest to install modules from the in game add-on browser.
To install this module manually:
- Inside the Foundry "Configuration and Setup" screen, click "Add-on Modules"
- Click "Install Module"
- In the "Manifest URL" field, paste the following url:
https://raw.githubusercontent.com/p4535992/foundryvtt-scene-transitions/master/src/module.json
- Click 'Install' and wait for installation to complete
- Don't forget to enable the module in game using the "Manage Module" button
libwrapper
This module uses the libwrapper library like a dependency. It is a hard dependency and it is recommended for the best experience and compatibility with other modules.
socketLib
This module uses the socketLib library like a dependency. It is a hard dependency and it is recommended for the best experience and compatibility with other modules.
Feature
Use the context menu on the navigator or directory to 'Create Transition'
Add background image, text, and configure to your liking and save. When you want to play it, bring up context menu and press 'Play Transition'
Transition will play and begin preloading scene. Scene will activate underneath transition.
Use the textbox sourcecode editor to add custom html and override default css.
Api
/**
* Transition.macro(options, showMe)
*/
game.modules.get('scene-transitions').api.macro({
sceneID: false,
content:"TEST MACRO",
fontColor:'#ffffff',
fontSize:'28px',
bgImg:'', // pass any relative or absolute image or video url here.
bgPos:'center center',
bgSize:'cover',
bgColor:'#333333',
bgOpacity:0.7,
fadeIn: 400, //how long to fade in
delay:5000, //how long for transition to stay up
fadeOut: 400, //how long to fade out
audio: "", //path to audio file
skippable:true, //Allows players to skip transition with a click before delay runs out.
gmHide: true, // hide the transistion on other windows logged in as a GM
gmEndAll: true, // when the GM clicks to end the transition - end for everyone
showUI: false, // Show the User Interface elements to all players allowing them to interact with character sheets etc
}, true ) //show to the triggering user
To play a transition without a scene activation, simple pass false
as the sceneID in the data object.