feat: enable 3D enhancement on hero/open MyAbacus modes
Added delightful 3D mode to the hero and open states of MyAbacus: - Glossy heaven beads + satin earth beads for premium feel - Dramatic lighting for impact - Wood grain texture on golden frame - Hover parallax enabled for interactive depth - Only applies to hero/open modes (not button mode) The giant hero abacus on the home page now has satisfying material rendering and interactive parallax effects. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
cc96802df8
commit
37e330f26e
|
|
@ -235,6 +235,25 @@ export function MyAbacus() {
|
|||
animated={isOpen || isHeroMode}
|
||||
customStyles={isHeroMode ? structuralStyles : trophyStyles}
|
||||
onValueChange={setAbacusValue}
|
||||
// 3D Enhancement - delightful mode for hero and open states
|
||||
enhanced3d={isOpen || isHeroMode ? 'delightful' : undefined}
|
||||
material3d={
|
||||
isOpen || isHeroMode
|
||||
? {
|
||||
heavenBeads: 'glossy',
|
||||
earthBeads: 'satin',
|
||||
lighting: 'dramatic',
|
||||
woodGrain: true,
|
||||
}
|
||||
: undefined
|
||||
}
|
||||
physics3d={
|
||||
isOpen || isHeroMode
|
||||
? {
|
||||
hoverParallax: true,
|
||||
}
|
||||
: undefined
|
||||
}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue