private void OnBackgrndImageLoaded(object sender, FFImageLoading.Forms.CachedImageEvents.FinishEventArgs e) { if (Shell.Current.CurrentState.Location.OriginalString != "//Login") { return; } imageLoaded = true; ChevronSL.FadeTo(1, 500, Easing.CubicOut); BackgrndImage.FadeTo(1, 500, Easing.CubicOut); LogoImage.TranslateTo(0, 80, 750, Easing.CubicInOut); }
private void PanGestureRecognizer_PanUpdated(object sender, PanUpdatedEventArgs e) { if (animationStarted) { return; } if (LogoImage.TranslationY > -50 && LogoImage.TranslationY <= 0) { LogoImage.TranslationY += e.TotalY; if (LogoImage.TranslationY > 0) { LogoImage.TranslationY = 0; } return; } animationStarted = true; Animating?.Invoke(); MaterialFrame.FadeTo(0.99, 160u * (uint)InputSL.Children.Count, Easing.CubicInOut); // Opacity 1.0 causes text above to become blurred? LogoImage.TranslateTo(0, Height * -0.35d, 400, Easing.CubicOut); TitleSL.FadeTo(1, 600, Easing.CubicInOut); TitleSL.TranslateTo(0, 0, 600, Easing.CubicInOut); ChevronSL.FadeTo(0, 100, Easing.CubicOut); EmailEntry.IsEnabled = PasswordEntry.IsEnabled = PasswordConfirmationEntry.IsEnabled = true; int t = 0; foreach (VisualElement v in InputSL.Children) { t += 160; v.TranslationX = -v.Width; Device.StartTimer(TimeSpan.FromMilliseconds(t), () => { if (!_signUp) { if (v == Button) { v.TranslateTo(0, -(PasswordConfirmationSL.Height + 4), 400, Easing.SinOut); v.FadeTo(1, 400, Easing.SinOut); return(false); } else if (v == PasswordConfirmationSL) { v.TranslateTo(0, 0, 400, Easing.SinOut); return(false); } } v.TranslateTo(0, 0, 400, Easing.SinOut); v.FadeTo(1, 400, Easing.SinOut); return(false); }); } ThemeEngine.RefreshTheme(); // Set nav colours to what they should be on android }
private async Task AnimateLoginStart() { await Task.Run(() => { LoginEntry.FadeTo(0, 500, Easing.Linear); PasswordEntry.FadeTo(0, 500, Easing.Linear); LoginButton.FadeTo(0, 500, Easing.Linear); }); await LogoImage.TranslateTo(0, 50, 1000, Easing.Linear); while ((BindingContext as LoginPageViewModel).Busy) { await LogoImage.FadeTo(1, 600); await LogoImage.FadeTo(0, 600); } }
private void PanGestureRecognizer_PanUpdated(object sender, PanUpdatedEventArgs e) { if (animationStarted) { return; } if (LogoImage.TranslationY > -50 && LogoImage.TranslationY <= 0) { LogoImage.TranslationY += e.TotalY; if (LogoImage.TranslationY > 0) { LogoImage.TranslationY = 0; } return; } animationStarted = true; Animating?.Invoke(); MaterialFrame.FadeTo(0.99, 160u * (uint)ButtonSL.Children.Count, Easing.CubicInOut); // Opacity 1.0 causes text above to become blurred? LogoImage.TranslateTo(0, Height * -0.35d, 400, Easing.CubicOut); TitleSL.FadeTo(1, 600, Easing.CubicInOut); TitleSL.TranslateTo(0, 0, 600, Easing.CubicInOut); ChevronSL.FadeTo(0, 100, Easing.CubicOut); int t = 0; foreach (Frame f in ButtonSL.Children) { t += 160; f.TranslationX = -f.Width; Device.StartTimer(TimeSpan.FromMilliseconds(t), () => { f.TranslateTo(0, 0, 400, Easing.SinOut); f.FadeTo(1, 400, Easing.SinOut); return(false); }); } ThemeEngine.RefreshTheme(); // Set nav colours to what they should be on android }
private void AppInfoAnimation(object sender, ElapsedEventArgs e) { Device.BeginInvokeOnMainThread(async() => { if (App.Animation) { #region 앱 정보 await AppIconImage.FadeTo(1, 1500, Easing.SpringIn); await Task.Delay(250); await AppNameText.FadeTo(1, 1000, Easing.SpringIn); Device.BeginInvokeOnMainThread(() => { AppVersionText.Text = "v" + App.Version; AppVersionText.TranslationX -= 60; AppVersionText.Opacity = 1; }); await AppVersionText.TranslateTo(1, 0, 1000, Easing.BounceOut); #endregion await Task.Delay(100); await Line1.FadeTo(1, 250, Easing.SpringIn); await Task.Delay(100); #region 사용 된 프레임워크 텍스트 await FrameworkText.FadeTo(1, 1000, Easing.SpringIn); #endregion await Task.Delay(500); #region Xamarin 텍스트 로고 Device.BeginInvokeOnMainThread(() => { TextLogoImage.Opacity = 1; TextLogoImage.TranslationX += 250; }); _ = TextLogoImage.TranslateTo(-50, 0, 1500, Easing.BounceIn); _ = TextLogoImage.TranslateTo(1, 0, 500, Easing.BounceOut); #endregion #region Xamarin 로고 Device.BeginInvokeOnMainThread(() => { LogoImage.Opacity = 1; LogoImage.TranslationX -= 100; }); _ = LogoImage.TranslateTo(100, 0, 1500, Easing.BounceIn); _ = LogoImage.TranslateTo(1, 0, 500, Easing.BounceOut); #endregion await Task.Delay(1000); await Line2.FadeTo(1, 250, Easing.SpringIn); await Task.Delay(100); #region 개발자 텍스트 await DevelopmentText.FadeTo(1, 1000, Easing.SpringIn); await Task.Delay(250); await Developer1LText.FadeTo(1, 250, Easing.SpringIn); await Task.Delay(100); await Developer1Text.FadeTo(1, 750, Easing.SpringOut); await Task.Delay(100); await Developer2LText.FadeTo(1, 250, Easing.SpringIn); await Task.Delay(100); await Developer2Text.FadeTo(1, 750, Easing.SpringOut); await Task.Delay(100); await Developer3LText.FadeTo(1, 250, Easing.SpringIn); await Task.Delay(100); await Developer3Text.FadeTo(1, 750, Easing.SpringOut); #endregion } else { AppIconImage.Opacity = 1; AppNameText.Opacity = 1; AppVersionText.Text = "v" + App.Version; AppVersionText.Opacity = 1; Line1.Opacity = 1; FrameworkText.Opacity = 1; TextLogoImage.Opacity = 1; LogoImage.Opacity = 1; Line2.Opacity = 1; DevelopmentText.Opacity = 1; Developer1LText.Opacity = 1; Developer1Text.Opacity = 1; Developer2LText.Opacity = 1; Developer2Text.Opacity = 1; Developer3LText.Opacity = 1; Developer3Text.Opacity = 1; } }); }