altmp / altv-issues

Issues and roadmap for alt:V project
93 stars 17 forks source link

CEF fadeIn/fadeOut #1642

Open TheGodlyLuzer opened 1 year ago

TheGodlyLuzer commented 1 year ago

Description of the problem

Creating smooth webview transitions is not that easy, therefore something like native.doScreenFadeOut(1000); for webviews would be great.

//Adds smooth transition 
native.doScreenFadeOut(1000);
webview.FadeOut(1000);

This would be a clean way for simple UI transitions

Desired solution for the problem

FadeIn function, with duration parameter: webview.FadeIn(duration: 1000);

FadeOut function, with duration parameter: webview.FadeOut(duration: 1000);

The funtions simply decrease the opacity of the webview over the given duration

Alternatives you considered

No response

Additional context

No response

Version

No response

FabianTerhorst commented 1 year ago

Will probably never happen, because we recommend single cef instance.