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

Can I use react-reveal directionly on astro file #150

Open
ayemin-tun opened this issue Oct 3, 2023 · 0 comments
Open

Can I use react-reveal directionly on astro file #150

ayemin-tun opened this issue Oct 3, 2023 · 0 comments

Comments

@ayemin-tun
Copy link

Description

In below code can i also use react reveal directly on astro file, in this code it not show no effect.Please give me advice how to directly use react reveal on astro

---
import Layout from "@/layouts/Layout.astro";
import Carousel from "./home/components/Carousel";
import FeaturedProducts from "./home/components/FeaturedProducts";
import PartnerSlide from "./home/components/PartnerSlide";
import OurProjects from "./home/components/OurProjects";
import Services from "./home/components/Services";
import Fade from 'react-reveal/Fade';
---
<Layout title="Home">
  <Carousel client:visible />

  <Services />
  <Fade bottom>
    <div class="container py-16">
      <h1 class="mb-4 text-center text-[22px] font-semibold md:text-[28px]">
        Our Featured Products
      </h1>
      <p class="mx-auto mb-6 text-center text-[20px] lg:w-[60%]">
        Vitae elementum curabitur vitae nunc sed. Turpis egestas maecenas phar
        convallis posuere. Feugiat sed lectus vestibulum matt.
      </p>
      <div class="grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3">
        <FeaturedProducts />
      </div>
    </div>
  </Fade>
</Layout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant