You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @BroFox86, since version 3 all attention seeker animations are wrapped by the AttentionSeeker component, which accept a prop named effect that specifies the animation you want to render: "bounce" | "flash" | "headShake" | "heartBeat" | "jello" | "pulse" | "rubberBand" | "shake" | "shakeX" | "shakeY" | "swing" | "tada" | "wobble".
In your case, you have to refactor your code to:
importReactfrom"react";import{setPageInfo}from"../../helpers/setPageInfo";import{MainLayout}from"../../layouts/MainLayout";import{AttentionSeeker}from"react-awesome-reveal";exportfunctionAnimations(){setPageInfo("Animations","This is animation sandbox.");return(<MainLayout><section><AttentionSeekereffect="pulse"><h1>Pulse animation</h1></AttentionSeeker><section></MainLayout>
);
}
Pulse animation causes error in my create-react-app template. Other animations work well.
Code:
The text was updated successfully, but these errors were encountered: