Skip to content

Commit c2846ca

Browse files
committed
Initial animation added
1 parent d7d49f5 commit c2846ca

File tree

3 files changed

+45
-18
lines changed

3 files changed

+45
-18
lines changed

src/Pages/Home/AgentHiring/AgentHiring.js

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
import React from "react";
22
import { Link } from "react-router-dom";
3-
3+
import AOS from "aos";
4+
import "aos/dist/aos.css";
45
const AgentHiring = () => {
56
return (
67
<section class="overflow-hidden sm:grid sm:grid-cols-2 pt-32">
7-
<div class=" pr-8 pb-8 md:pb-0">
8+
<div class=" pr-8 pb-8 md:pb-0"
9+
data-aos="fade-down"
10+
data-aos-offset="300"
11+
data-aos-easing="linear"
12+
data-aos-duration="500"
13+
>
814
<div class="mx-auto max-w-xl text-center sm:text-left">
915
<h2 class="text-3xl font-bold text-gray-900 md:text-6xl">
1016
Our Agent Can Help You to Find the Best House
@@ -25,10 +31,18 @@ const AgentHiring = () => {
2531
</div>
2632
</div>
2733

34+
<div
35+
data-aos="fade-up"
36+
data-aos-offset="300"
37+
data-aos-easing="linear"
38+
data-aos-duration="500"
39+
40+
>
2841
<img
2942
alt="Student"
3043
src="https://i.ibb.co/dfCvzY4/Easter-Buyshutterstock-1156208527.jpg"
3144
/>
45+
</div>
3246
</section>
3347
);
3448
};

src/Pages/Home/Home.js

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ const Home = () => {
1919
return (
2020
<div>
2121
<div
22-
data-aos="fade-right"
22+
data-aos="fade-down"
2323
data-aos-offset="300"
24-
data-aos-easing="ease-in-sine"
24+
data-aos-easing="linear"
25+
data-aos-duration="1000"
2526
>
2627
<HomeBanner></HomeBanner>
2728
</div>
@@ -31,9 +32,9 @@ const Home = () => {
3132
{/* <Search></Search> */}
3233
<div
3334
data-aos="fade-up"
34-
data-aos-duration="4000"
3535
data-aos-offset="300"
36-
data-aos-easing="ease-in-sine"
36+
data-aos-easing="linear"
37+
data-aos-duration="500"
3738
>
3839
<CatagoriesShowcase></CatagoriesShowcase>
3940
</div>
@@ -42,9 +43,7 @@ const Home = () => {
4243
{/* ............................. */}
4344

4445
<div
45-
data-aos="fade-down"
46-
data-aos-offset="300"
47-
data-aos-easing="ease-in-sine"
46+
4847
>
4948
<Advertised></Advertised>
5049
</div>
@@ -53,9 +52,6 @@ const Home = () => {
5352
{/* ............................. */}
5453

5554
<div
56-
data-aos="fade-right"
57-
data-aos-offset="300"
58-
data-aos-easing="ease-in-sine"
5955
>
6056
<AgentHiring></AgentHiring>
6157
</div>
@@ -66,7 +62,8 @@ const Home = () => {
6662
<div
6763
data-aos="fade-left"
6864
data-aos-offset="300"
69-
data-aos-easing="ease-in-sine"
65+
data-aos-easing="linear"
66+
data-aos-duration="500"
7067
>
7168
<WhyIndirect></WhyIndirect>
7269
</div>
@@ -77,7 +74,8 @@ const Home = () => {
7774
<div
7875
data-aos="zoom-in-up"
7976
data-aos-offset="300"
80-
data-aos-easing="ease-in-sine"
77+
data-aos-easing="linear"
78+
data-aos-duration="500"
8179
>
8280
<Testimonials></Testimonials>
8381
</div>
@@ -93,7 +91,8 @@ const Home = () => {
9391
<div
9492
data-aos="zoom-out-up"
9593
data-aos-offset="300"
96-
data-aos-easing="ease-in-sine"
94+
data-aos-easing="linear"
95+
data-aos-duration="500"
9796
>
9897
<AboutIndirect></AboutIndirect>
9998
</div>
@@ -104,7 +103,7 @@ const Home = () => {
104103
<div
105104
data-aos="fade-up"
106105
data-aos-easing="linear"
107-
data-aos-duration="1500"
106+
data-aos-duration="500"
108107
>
109108
<SubscribeCTA></SubscribeCTA>
110109
</div>

src/Pages/Home/WhyIndirect/WhyIndirect.js

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,25 @@ import { ShieldCheckIcon } from '@heroicons/react/24/solid'
33
const WhyIndirect = () => {
44
return (
55
<section class="overflow-hidden sm:grid sm:grid-cols-2 pt-32">
6-
<img
6+
<div
7+
data-aos="fade-down"
8+
data-aos-offset="300"
9+
data-aos-easing="linear"
10+
data-aos-duration="500"
11+
12+
>
13+
<img
714
alt="Student"
815
src="https://i.ibb.co/Br6Tr6g/960x0.jpg"
916
/>
10-
<div class=" pl-8 pb-8 md:pb-0">
17+
</div>
18+
<div class=" pl-8 pb-8 md:pb-0"
19+
data-aos="fade-up"
20+
data-aos-offset="300"
21+
data-aos-easing="linear"
22+
data-aos-duration="500"
23+
24+
>
1125
<div class="mx-auto max-w-xl text-center sm:text-left">
1226
<h2 class="text-3xl font-bold text-gray-900 md:text-6xl">
1327
Home Buying And Selling Journey with Indirect

0 commit comments

Comments
 (0)