Skip to content

Commit 1897e81

Browse files
committed
fix header animation on safari
1 parent 676aeb3 commit 1897e81

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/marketing/hero.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ export const HeroSection = () => {
6464
interval = setInterval(() => {
6565
const firstFinishedStrokeIndex = strokeLettersArray.findIndex(
6666
(stroke) =>
67-
stroke.style.strokeDashoffset === '0' && !stroke.classList.contains('finished'),
67+
(stroke.style.strokeDashoffset === '0' || stroke.style.strokeDashoffset === '0px') &&
68+
!stroke.classList.contains('finished'),
6869
);
6970
if (firstFinishedStrokeIndex !== -1) {
7071
const targetFillLetter = fillLettersArray[firstFinishedStrokeIndex];

0 commit comments

Comments
 (0)