I'd like to achieve the same opening/closing animations as macOS' notifications center, basically having it slide from a side.
Is it possible to do this using electron?
I think it is possible. Electron has everything you need for it:
win.setPosition(x, y[, animate])
, win.setSize(width, height[, animate])
, win.hide()
and win.show()
is all you need to animate the windowscreen
and Display
will help you put the window in the correct positionInitial state:
Opening:
Closing:
The content of the window is then just CSS and JS magic, to make it look good.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With