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

Image zoom in/out animation on hover #779

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

Image zoom in/out animation on hover #779

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 ZoomImage = React.forwardRef<HTMLDivElement, {
  styles: React.CSSProperties,
  custom: {
    src: string; // src of the background image
    initialSize: string; // initial size of the background (string because 50% 50%)
    hoverSize: string: // size of the background when hovered
  }
}
>((props, ref)=>{
 ...
});

Steps

  1. Create a new project - follow docs here
  2. Create the custom component - follow this article
  3. Add a file called ZoomImage.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-04.at.5.25.18.AM.mov
@cruxcode cruxcode added create-component Create a component for visual editor good first issue Good for newcomers labels May 5, 2023
@Arthavruksha
Copy link

I would like to take this, can you assign me it?

@sumitshinde-84
Copy link

I would love to work on it , can you please assign it to me?

@cruxcode
Copy link
Collaborator Author

cruxcode commented May 5, 2023

@Arthavruksha please work on this similar issue - #780
@sumitshinde-84 please work on this similar issue- #781

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

3 participants