Skip to content

Commit

Permalink
Merge pull request #1560 from RadhikaMalpani1702/main
Browse files Browse the repository at this point in the history
Added Cursor Trail Effect Matching to the Website Design Theme
  • Loading branch information
sunny0625 authored Aug 8, 2024
2 parents f2a31ef + 76c26d1 commit 8df3b3b
Show file tree
Hide file tree
Showing 34 changed files with 3,585 additions and 181 deletions.
103 changes: 103 additions & 0 deletions Html-files/FeedbackPage.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,112 @@
background-color: #b80d0d;
z-index: 9999;
}

.circle {
position: absolute;
width: 20px;
height: 20px;
border-radius: 50%;
pointer-events: none;
background: radial-gradient(circle, rgba(255, 0, 0, 0.466), rgba(255, 52, 52, 0.5));
transition: transform 0.1s, left 0.1s, top 0.1s;
box-shadow: 0 0 20px #faff64,
0 0 60px #f52323,
0 0 100px #ff0000;
animation: colors 1s infinite;
transform: translate(-50%, -50%);
}

.circle-container {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 9999;
}

@media (max-width: 724px) {
.circle-container{
display: none;
}
}
</style>
</head>
<body>

<div class="circle-container">
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
</div>
<script>
document.addEventListener("DOMContentLoaded", function () {
const coords = { x: 0, y: 0 };
const circles = document.querySelectorAll(".circle");

circles.forEach(function (circle) {
circle.x = 0;
circle.y = 0;
});

window.addEventListener("mousemove", function (e) {
coords.x = e.pageX;
coords.y = e.pageY - window.scrollY; // Adjust for vertical scroll position
});

function animateCircles() {
let x = coords.x;
let y = coords.y;

circles.forEach(function (circle, index) {
circle.style.left = `${x - 12}px`;
circle.style.top = `${y - 12}px`;
circle.style.transform = `scale(${(circles.length - index) / circles.length})`;

const nextCircle = circles[index + 1] || circles[0];
circle.x = x;
circle.y = y;

x += (nextCircle.x - x) * 0.25;
y += (nextCircle.y - y) * 0.25;
});

requestAnimationFrame(animateCircles);
}

animateCircles();
});
</script>

<!-- Progress bar -->
<div id="progressBar"></div>
<script>
Expand Down
103 changes: 103 additions & 0 deletions Html-files/Licensing.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,37 @@
<link rel="stylesheet" href="https://unpkg.com/aos@next/dist/aos.css" />
<link rel="stylesheet" href="../Css-files/scroll-top-button.css" />
<style>

.circle {
position: absolute;
width: 20px;
height: 20px;
border-radius: 50%;
pointer-events: none;
background: radial-gradient(circle, rgba(255, 0, 0, 0.466), rgba(255, 52, 52, 0.5));
transition: transform 0.1s, left 0.1s, top 0.1s;
box-shadow: 0 0 20px #faff64,
0 0 60px #f52323,
0 0 100px #ff0000;
animation: colors 1s infinite;
transform: translate(-50%, -50%);
}

.circle-container {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 9999;
}

@media (max-width: 724px) {
.circle-container{
display: none;
}
}
.legal-pages {
text-decoration: none;
color: white;
Expand All @@ -68,6 +99,78 @@
</style>
</head>
<body>

<div class="circle-container">
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
</div>
<script>
document.addEventListener("DOMContentLoaded", function () {
const coords = { x: 0, y: 0 };
const circles = document.querySelectorAll(".circle");

circles.forEach(function (circle) {
circle.x = 0;
circle.y = 0;
});

window.addEventListener("mousemove", function (e) {
coords.x = e.pageX;
coords.y = e.pageY - window.scrollY; // Adjust for vertical scroll position
});

function animateCircles() {
let x = coords.x;
let y = coords.y;

circles.forEach(function (circle, index) {
circle.style.left = `${x - 12}px`;
circle.style.top = `${y - 12}px`;
circle.style.transform = `scale(${(circles.length - index) / circles.length})`;

const nextCircle = circles[index + 1] || circles[0];
circle.x = x;
circle.y = y;

x += (nextCircle.x - x) * 0.25;
y += (nextCircle.y - y) * 0.25;
});

requestAnimationFrame(animateCircles);
}

animateCircles();
});
</script>

<!-- Progress bar -->
<div id="progressBar"></div>
<script>
Expand Down
141 changes: 115 additions & 26 deletions Html-files/RateUs.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,35 +18,49 @@
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/toastify-js/src/toastify.min.css" />
<link rel="stylesheet" href="https://unpkg.com/aos@next/dist/aos.css" />

<style>
#progressBar {
position: fixed;
top: 0;
left: 0;
width: 0%;
height: 8px;
background-color: #b80d0d;
z-index: 9999;
}

.emoji {
font-size: 2rem;
cursor: pointer;
}
<style> #progressBar {
position: fixed;
top: 0;
left: 0;
width: 0%;
height: 8px;
background-color: #b80d0d;
z-index: 9999;
}

.emoji.selected {
animation: shine 1s ease-in-out infinite alternate;
}
.circle {
position: absolute;
width: 20px;
height: 20px;
border-radius: 50%;
pointer-events: none;
background: radial-gradient(circle, rgba(255, 0, 0, 0.466), rgba(255, 52, 52, 0.5));
transition: transform 0.1s, left 0.1s, top 0.1s;
box-shadow: 0 0 20px #faff64,
0 0 60px #f52323,
0 0 100px #ff0000;
animation: colors 1s infinite;
transform: translate(-50%, -50%);
}

.circle-container {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 9999;
}

@media (max-width: 724px) {
.circle-container{
display: none;
}
}
</style>

@keyframes shine {
from {
text-shadow: 0 0 10px gold;
}
to {
text-shadow: 0 0 20px gold;
}
}
</style>

</head>
<body>
Expand Down Expand Up @@ -218,5 +232,80 @@ <h2 class="rateus-heading">Rate Us</h2>
</script>
<script src="https://kit.fontawesome.com/a076d05399.js"></script>


<div class="circle-container">
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
</div>
<script>
document.addEventListener("DOMContentLoaded", function () {
const coords = { x: 0, y: 0 };
const circles = document.querySelectorAll(".circle");

circles.forEach(function (circle) {
circle.x = 0;
circle.y = 0;
});

window.addEventListener("mousemove", function (e) {
coords.x = e.pageX;
coords.y = e.pageY - window.scrollY; // Adjust for vertical scroll position
});

function animateCircles() {
let x = coords.x;
let y = coords.y;

circles.forEach(function (circle, index) {
circle.style.left = `${x - 12}px`;
circle.style.top = `${y - 12}px`;
circle.style.transform = `scale(${(circles.length - index) / circles.length})`;

const nextCircle = circles[index + 1] || circles[0];
circle.x = x;
circle.y = y;

x += (nextCircle.x - x) * 0.25;
y += (nextCircle.y - y) * 0.25;
});

requestAnimationFrame(animateCircles);
}

animateCircles();
});
</script>




</body>
</html>
Loading

0 comments on commit 8df3b3b

Please sign in to comment.