Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lift card on hover using framer motion #780

Open
cruxcode opened this issue May 5, 2023 · 3 comments
Open

Lift card on hover using framer motion #780

cruxcode opened this issue May 5, 2023 · 3 comments
Labels
create-component Create a component for visual editor good first issue Good for newcomers

Comments

@cruxcode
Copy link
Collaborator

cruxcode commented May 5, 2023

Create a component that has the animation as shown in the clip attached with this description. You will have to learn two things -

  1. How to create a component? - Find details here
  2. What is the best way to create an animation component that is reusable? - Find details here

The React component signature

const LiftCard = React.forwardRef<HTMLDivElement, {
  styles: React.CSSProperties,
  custom: {
    src: string; // src of the background image
    initialTop: number; // initial value of the top CSS property
    finalTop: number: // value of the top CSS property on hover
  }
}
>((props, ref)=>{
 ...
});

Steps

  1. Create a new project - follow docs here
  2. Create the custom component - follow this article
  3. Add a file called LiftCard.md in made-with-atri folder and write your GitHub repo name in the file. Make sure the GitHub repo is public.
Screen.Recording.2023-05-05.at.12.02.03.PM.mov
@cruxcode cruxcode added good first issue Good for newcomers create-component Create a component for visual editor labels May 5, 2023
@sumitshinde-84
Copy link

sumitshinde-84 commented May 5, 2023

I would like to work on this issue. Currently, I am working on a project where I am using GSAP and Framer Motion.

@cruxcode
Copy link
Collaborator Author

cruxcode commented May 5, 2023

@sumitshinde-84 your project looks awesome. Please go ahead and work on this issue. You can join our Slack channel if you need help understanding our framework.

Also, I would love to know which animations are done using GSAP in your project.

@sumitshinde-84
Copy link

Thank you for your kind words and encouragement! I'm glad to hear that you find my project impressive. Yes, almost all of the animations in my project were done using GSAP. I will definitely join your Slack channel if I need any help understanding your framework. Thank you for the invitation!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
create-component Create a component for visual editor good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants