diff --git a/src/components/header/Search.tsx b/src/components/header/Search.tsx index c6bb804..086b4af 100644 --- a/src/components/header/Search.tsx +++ b/src/components/header/Search.tsx @@ -71,7 +71,14 @@ const Search = ({ isSmall, isInputFocused, setIsInputFocused }: IProps) => { fill="none" xmlns="http://www.w3.org/2000/svg" variants={searchMobileMotion} - animate={isSmall ? (isInputFocused ? "loopActive" : "loopRest") : {}} + initial={isSmall ? "loopRest" : {}} + animate={ + isSmall + ? isInputFocused + ? "loopActive" + : "loopRest" + : { width: "1.3rem" } + } >