Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Animation in About us page card #93

Merged
merged 2 commits into from
Jan 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions about.css
Original file line number Diff line number Diff line change
Expand Up @@ -342,8 +342,7 @@ html .dark {
}
.image-button1 {
position: fixed;
top: 5px;
left: 10px; /* Aligns the button to the left side */
left: 0px; /* Aligns the button to the left side */
background-color: transparent; /* Transparent background */
border: none;
border-radius: 50%;
Expand Down
19 changes: 13 additions & 6 deletions about.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
<link rel="manifest" href="/site.webmanifest" />
<title>About Us - Ajivika</title>
<link rel="stylesheet" href="navbar.css" />
<link rel="stylesheet" href="about.css">
<link rel="stylesheet" href="about.css" />
</head>
<body>
<!-- Navigation -->
<nav class="navbar">
<!-- Navigation -->
<nav class="navbar">
<div class="logo">
<button class="image-button1">
<img src="./image.png" alt="Image Button1" class="image-icon1" />
Expand Down Expand Up @@ -176,6 +176,7 @@ <h2>Ajivika</h2>
<section class="about-section">
<div class="about-box">
<h1>
<i class="fas fa-info-circle" style="color: #cf00a3"></i> About Us
<i class="fas fa-info-circle" style="color: var(--pink-bg)" ></i> About Us
</h1>
<div class="about-container">
Expand Down Expand Up @@ -247,11 +248,18 @@ <h3>🌍 Access to Jobs in Smaller Areas</h3>
<script>
// hamburger menu js
function toggleMenu() {
const navLinks = document.querySelector('.nav-links');
navLinks.classList.toggle('active');
const navLinks = document.querySelector(".nav-links");
navLinks.classList.toggle("active");
}
</script>

<script
src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.5/gsap.min.js"
integrity="sha512-7eHRwcbYkK4d9g/6tD/mhkf++eoTHwpNM9woBxtPUBWm67zeAfFC+HrdoE2GanKeocly/VxeLvIqwvCdk7qScg=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
></script>
<script src="index.js"></script>
<script>
document.addEventListener('DOMContentLoaded', () => {
const themeToggle = document.querySelector('.theme-switch__checkbox');
Expand All @@ -278,7 +286,6 @@ <h3>🌍 Access to Jobs in Smaller Areas</h3>
});
});
</script>

<footer>&copy; 2024 Ajivika. All rights reserved.</footer>
</body>
</html>
8 changes: 8 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ tl.from(".nav-links li", {
y: -30
})

gsap.from(".feature-card", {
scale: 0,
duration: 1,
rotate: 1440,
ease: "steps.out"
})


const cursor = document.querySelector("#cursor");
const body = document.querySelector("body")
body.addEventListener("mousemove", function (e) {
Expand Down
Loading