protected async Task OnWindowResizeAsync() { if (!In && Placement != Placement.Bottom && Placement != Placement.End) { await SlideHelper.SetSlideTranslateValueAsync(Placement, RefBack.Current); } }
protected override async Task OnAfterUpdateAsync() { await base.OnAfterUpdateAsync(); if (!In) { await SlideHelper.SetSlideTranslateValueAsync(Placement, RefBack.Current); } }
protected async Task HandleExitAsync(IReference refback) { var transition = CreateTransition("transform", GetExitDuration(), TransitionDelay, TransitionEasing.EasingSharp); var styles = new Dictionary <string, object> { { "transition", transition }, { "webkitTransition", transition } }; await DomHelpers.SetStyleAsync(refback.Current, styles, trigger : true); await SlideHelper.SetSlideTranslateValueAsync(Placement, refback.Current); OnExit?.Invoke(refback); }
protected async Task HandleEnterAsync(IReference refback, bool appear) { await SlideHelper.SetSlideTranslateValueAsync(Placement, refback.Current); OnEnter?.Invoke(refback, appear); }