Skip to content
New issue

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

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

Already on GitHub? # to your account

Marquee #5

Open
kevinpauljacob opened this issue Jun 30, 2023 · 4 comments
Open

Marquee #5

kevinpauljacob opened this issue Jun 30, 2023 · 4 comments
Assignees

Comments

@kevinpauljacob
Copy link
Contributor

image

@kevinpauljacob
Copy link
Contributor Author

Left Side should go up and right side show go down.
Marquee is a moving component often used in Sponsors sections.

@kevinpauljacob
Copy link
Contributor Author

const partners = [
{ name: 'Marquee Item 1' },
{ name: 'Marquee Item 2' },
{ name: 'Marquee Item 3' },
{ name: 'Marquee Item 4' },
{ name: 'Marquee Item 5' },
]

const Marquee = () => {
return (



supported by




{partners.map((partner, index) => (
{partner.name}
))}


{partners.map((partner, index) => (
{partner.name}
))}



)
}

export default Marquee

@kevinpauljacob
Copy link
Contributor Author

The above code can be used to create the marquee component. It uses an animation that is defined in tailwind.config file.

@kevinpauljacob
Copy link
Contributor Author

  animation: {
    marquee: 'marquee 25s linear infinite',
    marquee2: 'marquee2 25s linear infinite',
  },
  keyframes: {
    marquee: {
      '0%': { transform: 'translateX(0%)' },
      '100%': { transform: 'translateX(-100%)' },
    },
    marquee2: {
      '0%': { transform: 'translateX(100%)' },
      '100%': { transform: 'translateX(0%)' },
    },
  },

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants