Skip to content

Commit

Permalink
Merge pull request #173 from Ayushmaanagarwal1211/main
Browse files Browse the repository at this point in the history
Added tilt effect
  • Loading branch information
Avdhesh-Varshney authored Jul 1, 2024
2 parents ded9aa6 + 7447912 commit 60c110a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"bootstrap": "^5.3.3",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-parallax-tilt": "^1.7.229",
"react-player": "^2.16.0",
"react-router-dom": "^6.23.1",
"react-top-loading-bar": "^2.3.1",
Expand Down
6 changes: 4 additions & 2 deletions src/pages/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from "react";
import "../css/Home.css";
import { ReactTyped } from "react-typed";
import VideoButton from "../components/Home/VideoButton";

import Tilt from 'react-parallax-tilt';
export default function Home() {
return (
<div className="flex flex-col">
Expand All @@ -26,7 +26,9 @@ export default function Home() {
</div>
</div>
<div className="img-container">
<img className="animated-img" src="/home1.png" alt="" />
<Tilt>
<img className="animated-img" src="/home1.png" alt="" />
</Tilt>
</div>
</div>

Expand Down

0 comments on commit 60c110a

Please sign in to comment.