I’ve been on about 3 forums so far, and no ones really replied back to me. Does anyone here know if you can animate browser windows in electron? I’m creating an application and what i would like to do is slide a frameless window from the left of the screen.
Below is the code i have so far for my frameless window.
`function horizontalWindow()
{
sidebar = new BrowserWindow({height:0, width:0, transparent:true, frame:false, titleBarStyle: ‘none’, resizable: false, webPreferences: { nodeIntegration: true,
contextIsolation: false, enableRemoteModule: true}})
sidebar.loadFile(‘sidebar.html’)
sidebar.setPosition(0, 100, true)
sidebar.setSize(1300, 80, true)
sidebar.setMenuBarVisibility(false)
sidebar.setAlwaysOnTop(true, ‘floating’)
}
`
if this is possible does anyone know which methods will need to be used? at the moment the window just “pops up” on screen
Thankyou!