Skip to content

Commit

Permalink
scale3d for GPU
Browse files Browse the repository at this point in the history
  • Loading branch information
damongolding committed Oct 15, 2024
1 parent 8f35a81 commit be498a6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions views/views_home.templ
Original file line number Diff line number Diff line change
Expand Up @@ -118,29 +118,29 @@ func imageZoomKeyframes(zoomAmount int) string {
<style>
@keyframes image-zoom-in {
from {
transform: scale(1);
transform: scale3d(1,1,1);
transform-origin: center;
}
to {
transform: scale(%.2f);
transform: scale3d(%.2f,%.2f,%.2f);
transform-origin: bottom left;
}
}
@keyframes image-zoom-out {
from {
transform: scale(%.2f);
transform: scale3d(%.2f,%.2f,%.2f);
transform-origin: top right;
}
to {
transform: scale(1);
transform: scale(1,1,1);
transform-origin: center;
}
}
</style>`, zoom, zoom)
</style>`, zoom, zoom, zoom, zoom, zoom, zoom)
}

func customCss(css []byte) string {
Expand Down
10 changes: 5 additions & 5 deletions views/views_home_templ.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit be498a6

Please sign in to comment.