diff --git a/PersonalWebsite/Components/TerminalCommand.razor b/PersonalWebsite/Components/TerminalCommand.razor index 7a48a8c..583b7c5 100644 --- a/PersonalWebsite/Components/TerminalCommand.razor +++ b/PersonalWebsite/Components/TerminalCommand.razor @@ -1,9 +1,5 @@ 

> @TypedCommand - @if (ShowCursor) - { - - }

@code { @@ -12,7 +8,6 @@ [Parameter] public EventCallback OnAnimationComplete { get; set; } private string TypedCommand { get; set; } = ""; - private bool ShowCursor { get; set; } protected override async Task OnInitializedAsync() { @@ -32,11 +27,7 @@ await Task.Delay(50); } - ShowCursor = true; - StateHasChanged(); - await Task.Delay(200); - ShowCursor = false; await OnAnimationComplete.InvokeAsync(); } } \ No newline at end of file diff --git a/PersonalWebsite/Components/TerminalCursor.razor.css b/PersonalWebsite/Components/TerminalCursor.razor.css index b0cfd10..f4602f5 100644 --- a/PersonalWebsite/Components/TerminalCursor.razor.css +++ b/PersonalWebsite/Components/TerminalCursor.razor.css @@ -1,8 +1,8 @@ .terminal-cursor { opacity: 1; - -webkit-animation: blink 0.7s infinite; - -moz-animation: blink 0.7s infinite; - animation: blink 0.7s infinite; + -webkit-animation: blink 0.8s infinite; + -moz-animation: blink 0.8s infinite; + animation: blink 0.8s infinite; } @keyframes blink {