Skip to content

Commit

Permalink
added new project
Browse files Browse the repository at this point in the history
  • Loading branch information
VAISHALI-NILE committed Sep 18, 2024
1 parent e7ed0b1 commit d1e5f27
Show file tree
Hide file tree
Showing 5 changed files with 150 additions and 9 deletions.
Binary file added img/pr-5-img.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 32 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<body>
<div class="scroll-wrapper">
<div class="header">
<div class="logo"> <a class="pr-link" href="">Resume</a></div>
<div class="logo"> <a class="pr-link" href="./resume/RESUME-VAISHALINILE(2).pdf">Resume</a></div>
<div class="socials">
<a href="https://www.linkedin.com/in/vaishali-nile/"><img class="icons" src="img/linkedin.png" alt=""></a>
<a href="https://github.com/VAISHALI-NILE"><img class="icons" src="img/git.png" alt=""></a>
Expand Down Expand Up @@ -88,6 +88,12 @@ <h2>Hi, I'm <span class="name">Vaishali Nile</span></h2> <br>
</div>
</div>
</div>
<br>





<br>
<div class="projects">
<div class="pr-3 pr">
Expand Down Expand Up @@ -135,6 +141,29 @@ <h2>Hi, I'm <span class="name">Vaishali Nile</span></h2> <br>
</div>
</div>
<br>
<div class="projects">
<div class="pr-5 pr">
<div class="info">
<div class="title-top"> <div class="red-dot"></div> No . <div class="number"> 5 </div> </div>
<div class="title"><h1>Learning Pod</h1></div>
<div class="tech">
<ul>
<li>Collaborative Learning Platform</li>
<li>Website Design</li>
<li>Development</li>
</ul>
</div>
<div class="discription">
<p>Learning Pod is a collaborative learning platform that connects students and educators for interactive and engaging learning experiences.</p>
<br>
<a class="pr-link" href="https://github.com/influcoder/HK10">View Project</a>
</div>

</div>
<div class="pr-img-div"> <img class="pr-img" src="./img/pr-5-img.png" alt=""></div>
</div>
</div>
<br>
<br>
<br>
<hr >
Expand All @@ -151,6 +180,8 @@ <h2>Let's Connect</h2><img class="arrow-img" src="https://assets-global.website-
</div>
</div>
</div>

<script src="script.js"></script>
<script src="script2.js"></script>
</body>
</html>
Binary file added resume/RESUME-VAISHALINILE(2).pdf
Binary file not shown.
110 changes: 110 additions & 0 deletions script2.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
// for another helper function that calculates the exact progress value along a motion path where it'll hit the center of the provided target on the given axis ("y" by default), see https://codepen.io/GreenSock/pen/BaPdrKM
// see also: https://codepen.io/GreenSock/pen/mdgmawg
gsap.registerPlugin(MotionPathPlugin, ScrollTrigger);

gsap.set("#motionSVG", { scale: 0.7, autoAlpha: 1 });
gsap.set("#tractor", { transformOrigin: "50% 50%" });
let rotateTo = gsap.quickTo("#tractor", "rotation"),
prevDirection = 0;

gsap.to("#motionSVG", {
scrollTrigger: {
trigger: "#motionPath",
start: "top center",
end: () =>
"+=" +
document.querySelector("#motionPath").getBoundingClientRect().height,
scrub: 0.5,
markers: true,
onUpdate: (self) => {
if (prevDirection !== self.direction) {
// only run this when we're changing direction
rotateTo(self.direction === 1 ? 0 : -180);
prevDirection = self.direction;
}
},
},
ease: pathEase("#motionPath"), // a custom ease that helps keep the tractor centered
immediateRender: true,
motionPath: {
path: "#motionPath",
align: "#motionPath",
alignOrigin: [0.5, 0.5],
autoRotate: 90,
},
});

/*
Helper function that returns an ease that bends time to ensure the target moves on the y axis in a relatively steady fashion in relation to the viewport (assuming the progress of the tween is linked linearly to the scroll position). Requires MotionPathPlugin of course.
You can optionally pass in a config option with any of these properties:
- smooth: if true, the target can drift slightly in order to smooth out the movement. This is especially useful if the path curves backwards at times. It prevents super-fast motions at that point. You can define it as a number (defaults to 7) indicating how much to smooth it.
- precision: number (defaults to 1) controlling the sampling size along the path. The higher the precision, the more accurate but the more processing.
- axis: "y" or "x" ("y" by default)
*/
function pathEase(path, config = {}) {
let axis = config.axis || "y",
precision = config.precision || 1,
rawPath = MotionPathPlugin.cacheRawPathMeasurements(
MotionPathPlugin.getRawPath(gsap.utils.toArray(path)[0]),
Math.round(precision * 12)
),
useX = axis === "x",
start = rawPath[0][useX ? 0 : 1],
end =
rawPath[rawPath.length - 1][
rawPath[rawPath.length - 1].length - (useX ? 2 : 1)
],
range = end - start,
l = Math.round(precision * 200),
inc = 1 / l,
positions = [0],
a = [],
minIndex = 0,
smooth = [0],
minChange = (1 / l) * 0.6,
smoothRange = config.smooth === true ? 7 : Math.round(config.smooth) || 0,
fullSmoothRange = smoothRange * 2,
getClosest = (p) => {
while (positions[minIndex] <= p && minIndex++ < l) {}
a.push(
((p - positions[minIndex - 1]) /
(positions[minIndex] - positions[minIndex - 1])) *
inc +
minIndex * inc
);
smoothRange &&
a.length > smoothRange &&
a[a.length - 1] - a[a.length - 2] < minChange &&
smooth.push(a.length - smoothRange);
},
i = 1;
for (; i < l; i++) {
positions[i] =
(MotionPathPlugin.getPositionOnPath(rawPath, i / l)[axis] - start) /
range;
}
positions[l] = 1;
for (i = 0; i < l; i++) {
getClosest(i / l);
}
a.push(1); // must end at 1.
if (smoothRange) {
// smooth at the necessary indexes where a small difference was sensed. Make it a linear change over the course of the fullSmoothRange
smooth.push(l - fullSmoothRange + 1);
smooth.forEach((i) => {
let start = a[i],
j = Math.min(i + fullSmoothRange, l),
inc = (a[j] - start) / (j - i),
c = 1;
i++;
for (; i < j; i++) {
a[i] = start + inc * c++;
}
});
}
return (p) => {
let i = p * l,
s = a[i | 0];
return i ? s + (a[Math.ceil(i)] - s) * (i % 1) : 0;
};
}
16 changes: 8 additions & 8 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ body {
display: inline-block;
font-family: Figtree, sans-serif;
font-weight: 400;
font-size: 4em;
font-size: 3em;
}

.msg-img {
height: 6em;
height: 4em;
position: relative;
top: 1em;
margin-right: 10px;
Expand All @@ -53,12 +53,12 @@ body {
padding-left: 0.625rem;
padding-right: 1.25rem;
font-family: "Mynerve", cursive;
font-size: 3.5rem;
font-size: 3rem;
font-weight: 400;
}
.intro-cont {
display: inline-block;
font-size: 3em;
font-size: 2.5em;
margin: 5px;
}
.fun {
Expand All @@ -76,15 +76,15 @@ body {
}
.smile-img {
position: relative;
top: 23rem;
left: 23rem;
top: 19rem;
left: 19rem;
height: 3rem;
z-index: 1;
}
.arrow {
position: relative;
top: 23rem;
left: 40rem;
top: 19rem;
left: 30rem;
height: 3rem;
}
.apr {
Expand Down

0 comments on commit d1e5f27

Please sign in to comment.