Skip to content

Commit cc0c2c7

Browse files
committed
animations updated
1 parent b6dcbc8 commit cc0c2c7

File tree

7 files changed

+87
-54
lines changed

7 files changed

+87
-54
lines changed

package-lock.json

Lines changed: 67 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/App.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
import React from 'react'
2-
2+
import { useEffect } from 'react';
33
import Home from './components/Home'
44
import CampusCaptainForm from './components/campus-captains-form/CampusCaptainForm'
55
import { BrowserRouter as Router, Route } from "react-router-dom";
66
import Discord from './components/discord/Discord'
77
import CoursePage from './components/course-page/CoursePage'
88
import { CodingEssentials, CompCoding, ComputerVision, CppEssentials, DeepLearning, DSAEssentials, DSALevelUp, DynamicProgramming, GameTheory, Git, GraphAlgorithm, MachineLearning, NaturalLanguage, PythonDataScience, PythonMasterCourse } from './components/course-page/individual-components/index'
9-
9+
import AOS from "aos";
10+
import "aos/dist/aos.css";
1011

1112
const App = () => {
1213

13-
14+
useEffect(() => {
15+
AOS.init({startEvent : 'load'});
16+
AOS.refreshHard();
17+
},[]);
1418

1519
return (
1620
<>

src/components/Blogs/Blogs.jsx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,7 @@
11
import React from "react";
22
import "./Blogs.css";
33
import reading from "../../assets/Images/main/brandname.svg";
4-
5-
import { Link } from 'react-router-dom';
6-
import AOS from "aos";
7-
import "aos/dist/aos.css";
8-
94
const Blogs = () => {
10-
React.useEffect(() => {
11-
AOS.init();
12-
AOS.refresh();
13-
}, []);
145
return (
156
<div className="components-outer-container" id="blogss">
167
<div className="blogs-outer-container" data-aos="fade-up" >

src/components/Home.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import Blogs from './Blogs/Blogs'
1616
// import HeaderBanner from './header-banner/HeaderBanner'
1717

1818
const Home = () => {
19+
1920
return (
2021
<>
2122
{/* <Advertisement /> */}

src/components/footer/Footer.jsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,8 @@ import codingMinutesLogo from "../../assets/Images/main/codingMinutesLogo.png";
44
import youtube from "../../assets/Images/main/youtube.png";
55
import linkedin from "../../assets/Images/main/linkedin.png";
66
import instagram from "../../assets/Images/main/instagram.png";
7-
import AOS from "aos";
8-
import "aos/dist/aos.css";
97
const Footer = () => {
10-
React.useEffect(() => {
11-
AOS.init();
12-
AOS.refresh();
13-
},[]);
8+
149
return (
1510
<div className="footer-outer-container" data-aos="fade-up">
1611
<div className="components-outer-container" id="faq">

src/components/header/header.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,19 @@
8888

8989
.header-right-image {
9090
margin-top: 40px;
91+
animation: wave 4.6s infinite;
92+
transition: smooth;
9193
}
9294

95+
@keyframes wave
96+
{
97+
20%,to{
98+
transform: translate3d(0);
99+
}
100+
40%{
101+
transform: translateY(-12px);
102+
}
103+
}
93104
.header-right-image img {
94105
width: 500px;
95106
}

src/components/why-cm/WhyCM.jsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,7 @@ import worldIcon from "../../assets/Images/main/world.png";
99
import youtubeIcon from "../../assets/Images/main/youtube-icon.png";
1010
import webDesignIcon from "../../assets/Images/main/web-design.png";
1111
import medalIcon from "../../assets/Images/main/medal.png";
12-
import AOS from "aos";
13-
import "aos/dist/aos.css";
1412
const WhyCM = () => {
15-
React.useEffect(() => {
16-
AOS.init();
17-
AOS.refresh();
18-
}, []);
1913
return (
2014
<div className="components-outer-container">
2115
<div className="why-cm-outer-container">

0 commit comments

Comments
 (0)