Repository navigation
Add 3D coin flip animation with front and back faces - #29
Merged
Merged
Conversation
Replace the flat 2D spin in TheHero with a 3D rotateY flip that alternates between the obverse (Naturklubben emblem) and reverse (1 BRAL · Loshult 2025) photos of the real coin. Uses preserve-3d + backface-visibility on two stacked .coin-face layers plus a conic-gradient rim to hide the seam. Honors prefers-reduced-motion. Image paths: public/img/coin-front.jpg and public/img/coin-back.jpg. https://claude.ai/code/session_01TM8D2VY6RXiE8qwMZeLXrE
The GitHub web-UI renames had turned both files into 2-byte text stubs while the real binaries stayed only in history. Overwrite the stubs with the actual PNGs pulled from the upload commits: coin-front.png ← NATURKLUBBEN emblem (obverse) coin-back.png ← 1 BRAL · LOSHULT · 2025 (reverse) https://claude.ai/code/session_01TM8D2VY6RXiE8qwMZeLXrE
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.
Summary
Replaced the static coin image with an interactive 3D coin flip animation that rotates to show both the obverse and reverse sides of the One Bral coin.
Key Changes
@keyframes coinflipfor continuous 360° rotation around the Y-axis with a 9-second cycle.coin-flip-scenewith 3D perspective and.coin-flipcontainer withpreserve-3dtransform style.coin-faceelements for front and back withbackface-visibility: hiddento show only the visible side during rotation.coin-rimwith a conic gradient and radial mask to hide the seam where the two faces meetprefers-reduced-motionmedia query to disable animation for users who prefer reduced motioncoinFrontandcoinBackimage imports instead of a single coin imageImplementation Details
-webkit-backface-visibility,-webkit-mask)https://claude.ai/code/session_01TM8D2VY6RXiE8qwMZeLXrE