Skip to content

Commit

Permalink
Reduced animation on startup (#1227)
Browse files Browse the repository at this point in the history
* Reduced animation on startup

* updated CSS
  • Loading branch information
veler authored Jun 18, 2024
1 parent 1ce0c0a commit fb096f8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
16 changes: 12 additions & 4 deletions src/app/dev/DevToys.Blazor/Pages/SubPages/ToolGroup.razor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,18 @@
0% {
background-position: 0px 196px; // The height of the hero image
}
100% {
background-position: 0px 150px;
}
}

@keyframes hero-bg-scrolling {
0% {
background-position: 0px 196px; // The height of the hero image
}
100% {
background-position: 0px 150px;
}
}

.hero {
Expand Down Expand Up @@ -38,10 +44,12 @@
transform: rotateX(15deg) rotateZ(-15deg) skewX(15deg);
transform-style: preserve-3d;
// Animation
-webkit-animation: hero-bg-scrolling 20s infinite;
animation: hero-bg-scrolling 20s infinite;
-webkit-animation-timing-function: linear;
animation-timing-function: linear;
-webkit-animation: hero-bg-scrolling 2s;
animation: hero-bg-scrolling 2s;
-webkit-animation-timing-function: cubic-bezier(.7,1,.8,1);
animation-timing-function: cubic-bezier(.7,1,.8,1);
-webkit-animation-fill-mode: forwards;
animation-fill-mode: forwards;
}

&-title {
Expand Down
2 changes: 1 addition & 1 deletion src/app/dev/DevToys.Blazor/wwwroot/css/devtoys.g.css

Large diffs are not rendered by default.

0 comments on commit fb096f8

Please sign in to comment.