Skip to content

Commit

Permalink
frontend updated.
Browse files Browse the repository at this point in the history
  • Loading branch information
priyanka singh committed Jul 18, 2024
1 parent 0896b28 commit e286886
Showing 1 changed file with 31 additions and 27 deletions.
58 changes: 31 additions & 27 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,35 +5,39 @@ import BuySell from "./components/BuySell.jsx";
import Blogs from "./components/Blogs.jsx";
import Footer from "./components/Footer.jsx";
import Home from "./components/Home.jsx";
import scrollreveal from "scrollreveal";
import useEffect from "react";
// import scrollreveal from "scrollreveal";
// import useEffect from "react";

export default function App() {
useEffect(() => {
const registerAnimations = () => {
const sr = scrollreveal({
origin: "bottom",
distance: "80px",
duration: 2000,
reset: false,
});
sr.reveal(
` nav,
#home,
#buySell1,
#buySell2,
#buySell3,
#blogs,
footer
`,
{
opacity: 0,
interval: 500,
}
);
};
registerAnimations();
}, []);
// useEffect(() => {
// const registerAnimations = () => {
// const sr = scrollreveal({
// origin: "bottom",
// distance: "80px",
// duration: 2000,
// reset: true,
// });
// sr.reveal(
// ` nav,
// #home,
// #buySell1,
// #buySell2,
// #buySell3,
// #blogs,
// footer
// `,
// {
// opacity: 1,
// interval: 500,
// }
// );
// };
// registerAnimations();
// }, []);
window.setTimeout(() => {
const home = document.getElementById("home");
home.style.transform = "none";
}, 1500);

return (
<div>
Expand Down

0 comments on commit e286886

Please sign in to comment.