Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

96
Vistas
How would I deliver a smooth animation to the left when closing down a window in electron?

I'm currently making an app in Electron. What i would like to do is decrease the width of the browser window so it has a nice smooth animation when closing it down.

From what I've seen online people say to use the setSize method which I've done, however i need to slow this down a bit. Is there a way to reference the window in CSS/give the window an Id so i can set up some keyframes? (im still learning CSS and Javascript)

Javascript Code:

function closeWindow()
{
  const sidebar = remote.BrowserWindow.getFocusedWindow();
  sidebar.setSize(0,80, true);
  sidebar.setPosition(0, -700, true)
}

Thankyou

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda