sindresorhus / wallpaper

Manage the desktop wallpaper
MIT License
1.05k stars 92 forks source link

Cross Fade to another image - possible? #61

Closed Iono-9 closed 5 years ago

Iono-9 commented 5 years ago

When invoking, for example,

wallpaper.set('unicorn.jpg');

is it possible to make it so the wallpaper crossfade to another image, not just instantly change?

sindresorhus commented 5 years ago

You didn't mention what OS you need it for. On macOS, it's possible to do it by placing a window at the desktop level filled with the desktop wallpaper, replace the wallpaper, and fade out the window. This creates the cross-fade effect. For other OSes, I have no idea. This is outside the scope of this package regardless.