Skip to content

Commit

Permalink
isFramerCanvas prop on TextHover
Browse files Browse the repository at this point in the history
  • Loading branch information
ruucm committed Dec 2, 2023
1 parent 820858a commit 1deabc1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export function TextHover({
onClick = () => void 0,
border = false,
fontWeight = 400,
isFramerCanvas = false,
}) {
return (
// @ts-ignore
Expand All @@ -71,7 +72,7 @@ export function TextHover({
>
<motion.h1
variants={letterContainerVariants}
initial={'initial'}
initial={isFramerCanvas ? 'default' : 'initial'}
whileInView={'default'}
whileHover={'hover'}
style={{
Expand Down
3 changes: 2 additions & 1 deletion packages/shadergradient/src/UI/TextAnimation/TextHover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export function TextHover({
onClick = () => void 0,
border = false,
fontWeight = 400,
isFramerCanvas = false,
}) {
return (
// @ts-ignore
Expand All @@ -71,7 +72,7 @@ export function TextHover({
>
<motion.h1
variants={letterContainerVariants}
initial={'initial'}
initial={isFramerCanvas ? 'default' : 'initial'}
whileInView={'default'}
whileHover={'hover'}
style={{
Expand Down

0 comments on commit 1deabc1

Please sign in to comment.