Skip to content

Commit f61039f

Browse files
committed
fix(atlas): replace framer-motion steps(1) easing with CSS animation
- framer-motion doesn't accept steps(1) as a string easing type - Swap the motion.span blinking caret for a plain span with CSS @Keyframes - Visual behavior identical; no more runtime error on mount
1 parent f4bb79f commit f61039f

1 file changed

Lines changed: 16 additions & 5 deletions

File tree

src/pages/project-pages/AtlasProjectPage.jsx

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -598,6 +598,14 @@ const AtlasProjectPage = () => {
598598
keywords={['atlas', 'atlas suite', 'go', 'cli', 'tui', 'bubble tea', 'productivity']}
599599
/>
600600

601+
<style>{`
602+
@keyframes atlas-blink {
603+
0%, 49% { opacity: 1; }
604+
50%, 100% { opacity: 0; }
605+
}
606+
.atlas-caret { animation: atlas-blink 0.9s steps(1, end) infinite; }
607+
`}</style>
608+
601609
<Overlays />
602610
<TopBar project={project} />
603611

@@ -639,12 +647,15 @@ const AtlasProjectPage = () => {
639647
<span style={{ color: AMBER }}>.</span>
640648
<br />
641649
<span style={{ color: AMBER_DIM }}>suite</span>
642-
<motion.span
650+
<span
643651
aria-hidden="true"
644-
animate={{ opacity: [1, 0, 1] }}
645-
transition={{ duration: 0.9, repeat: Infinity, ease: 'steps(1)' }}
646-
className="inline-block ml-2 align-middle"
647-
style={{ width: '0.45em', height: '0.85em', backgroundColor: AMBER, boxShadow: `0 0 14px ${AMBER}` }}
652+
className="inline-block ml-2 align-middle atlas-caret"
653+
style={{
654+
width: '0.45em',
655+
height: '0.85em',
656+
backgroundColor: AMBER,
657+
boxShadow: `0 0 14px ${AMBER}`,
658+
}}
648659
/>
649660
</motion.h1>
650661

0 commit comments

Comments
 (0)