Skip to content

Commit

Permalink
aos correction
Browse files Browse the repository at this point in the history
  • Loading branch information
captain-adi committed Aug 26, 2024
1 parent f6dcdc8 commit 5e84044
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
3 changes: 1 addition & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/Image/favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- AOS Link
<link rel="stylesheet" href="https://unpkg.com/aos@next/dist/aos.css" /> -->


<title>My Portfolio</title>
</head>
Expand Down
9 changes: 7 additions & 2 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,16 @@ import Project from "./Component/Project/Project";
import About from "./Component/About/About";
import Skill from "./Component/Skill/Skill";
import styled from "styled-components";
import { useEffect } from 'react';
import AOS from 'aos';
import 'aos/dist/aos.css'; // also use <link> for styles
import 'aos/dist/aos.css';

AOS.init();
function App() {
useEffect(() => {
AOS.init({
duration: 1200, // duration of the animation in milliseconds
});
}, []);
return (
<>
<Topcontainer>
Expand Down

0 comments on commit 5e84044

Please sign in to comment.