Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
Add fade-in animation for demo GIFs on load
Maximilian Roosa3057d8a0e9f
diff --git a/docs/sass/custom.scss b/docs/sass/custom.scssindex f3786bc13..c73ec0870 100644--- a/docs/sass/custom.scss+++ b/docs/sass/custom.scss@@ -371,7 +371,16 @@ main {margin-top: 0.25rem;img {+ display: block;min-width: 800px;+ max-width: 100%;+ height: auto;+ // Hide until loaded (JS adds .loaded class) - visibility preserves GIF animation state+ visibility: hidden;++ &.loaded {+ visibility: visible;+ }}}diff --git a/docs/templates/base.html b/docs/templates/base.htmlindex fb46b1ca2..4e5bbd6e1 100644--- a/docs/templates/base.html+++ b/docs/templates/base.html@@ -112,6 +112,18 @@<script src="/code-copy.js" defer></script><script src="/mobile-menu.js" defer></script><script src="//instant.page/5.2.0" type="module" integrity="sha384-jnZyxPjiipYXnSU0ygqeac2q7CVYMbh84q0uHVRRxEtvFPiQYbXWUorga2aqZJ0z"></script>+ <script>+ // Show demo images with fade-in after they load (hides broken-image icon during loading)+ document.addEventListener('DOMContentLoaded', function() {+ document.querySelectorAll('figure.demo img').forEach(function(img) {+ if (img.complete) {+ img.classList.add('loaded');+ } else {+ img.addEventListener('load', function() { img.classList.add('loaded'); });+ }+ });+ });+ </script></head><body>