atrilabs-engine icon indicating copy to clipboard operation
atrilabs-engine copied to clipboard

Infinite marquee using framer motion

Open cruxcode opened this issue 1 year ago • 3 comments

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 InfMarquee = 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 InfMarquee.md in made-with-atri folder and write your GitHub repo name in the file. Make sure the GitHub repo is public.

https://user-images.githubusercontent.com/30747788/236549626-ec7462fd-ca19-4198-8e45-79936133aff8.mov

cruxcode avatar May 05 '23 19:05 cruxcode

I would like to work on this

lokeshvasnik avatar Aug 12 '23 05:08 lokeshvasnik

Can i work on this @cruxcode

alceil avatar Sep 07 '23 13:09 alceil

i want to work on it

saka015 avatar Jan 12 '24 18:01 saka015