Repository navigation
perf: Flip-Flap und Liquid-Morph flüssig machen - #32
Merged
Merged
Conversation
Flip-Flap: - Flips laufen über element.animate() statt Klassenwechsel + void offsetWidth (erzwang pro Flip ein synchrones Layout, ~1,5 ms → ~0,13 ms) - Klappen werden nur während des Flips erzeugt (5 statt 9 Knoten je Kachel) - Kartenbeschreibungen sind Klartext mit Clip-Reveal statt einer Kachel je Buchstabe (hub: 1861 → 378 Kacheln, 17k → 3,9k DOM-Knoten) - contain: layout style auf den Kacheln Liquid-Morph: - Metaball-Hintergrund wird auf einem kleinen Canvas (~22k Pixel) berechnet statt mit einem Vollbild-SVG-Filter (Blur + Farbmatrix) pro Frame - drop-shadow-Filter auf den animierten Überschriften entfernt Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Contributor
|
✅ Preview ist live Preview: https://malte9799.github.io/games/previews/claude-flap-liquid-perf/ Commit: |
…'-Labels .fl-bar span:nth-child(2) traf auch die untere Kachelhälfte (.b) und färbte sie braun (auf Mobil wurde sie sogar ausgeblendet). Jetzt nur noch direkte Kinder der Leiste. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Beim Hover wird der Titel breiter (wdth 62 → 150) und passte nicht mehr neben die Beschreibung, die Flex-Zeile brach um. Ab 641px bricht sie nicht mehr um, die Beschreibung schrumpft stattdessen (Ellipsis). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Die Designs Flip-Flap und Liquid-Morph ruckeln stark.
Ursachen und Fixes
Flip-Flap
void offsetWidthein synchrones Layout erzwungen (~1,5 ms). Bei vollem Board blockierte das den Main-Thread ~2,7 s. Jetzt Web Animations API: ~0,13 ms pro Flip, komplettes Board in ~50 ms.contain: layout styleauf den Kacheln.Liquid-Morph
drop-shadow-Filter auf den animierten Überschriften entfernt.Getestet
pnpm buildläuft. Visuell geprüft (Screenshot Liquid).🤖 Generated with Claude Code