-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #604 from 07sumit1002/revert-355-harsh
Revert "ADDED CURSOR ANIMATION of INDIAN Tricolor"
- Loading branch information
Showing
16 changed files
with
11 additions
and
1,399 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,21 +19,7 @@ | |
<link rel="stylesheet" href="style.css"> | ||
<link rel="stylesheet" href="Contact us/style.css"> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/fonts/remixicon.css" rel="stylesheet"/> | ||
<style> | ||
/* circle styles */ | ||
.circle { | ||
height: 24px; | ||
width: 24px; | ||
border-radius: 24px; | ||
background-color: rgb(255, 0, 0); | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
pointer-events: none; | ||
z-index: 99999999; | ||
} | ||
</style> | ||
</head> | ||
</head> | ||
|
||
<body> | ||
<!-- Header --> | ||
|
@@ -625,76 +611,6 @@ <h2>Words from Our Clients <span class="highlight">Inspiring Testimonials of Sat | |
}); | ||
}; | ||
</script> | ||
|
||
<!-- Circles --> | ||
<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> | ||
|
||
<script> | ||
// coordinates for the cursor : | ||
const coords = { x: 0, y: 0 }; | ||
const circles = document.querySelectorAll(".circle"); | ||
|
||
const colors = [ | ||
"#fc5720", "#fc6532", "#fc6532","#fd8b65", "#d5585c", "#fac3b1", "#f4d5cb", "#fefefe", "#fefefe", "#cdf2c5", "#b2eca5", "#95e283", "#7dda68", "#4adc2d", "#69d451", "#54c939", "#34b916", "#28b309", "#1e9c02", | ||
]; | ||
|
||
circles.forEach(function (circle, index) { | ||
circle.x = 0; | ||
circle.y = 0; | ||
circle.style.backgroundColor = colors[index % colors.length]; | ||
}); | ||
|
||
// update the coordinates when the mouse moves: | ||
window.addEventListener("mousemove", function (e) { | ||
coords.x = e.clientX; | ||
coords.y = e.clientY; | ||
}); | ||
|
||
// animation function to move the circles: | ||
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.scale = (circles.length - index) / circles.length; | ||
|
||
circle.x = x; | ||
circle.y = y; | ||
|
||
const nextCircle = circles[index + 1] || circles[0]; | ||
x += (nextCircle.x - x) * 0.3; | ||
y += (nextCircle.y - y) * 0.3; | ||
}); | ||
|
||
requestAnimationFrame(animateCircles); | ||
} | ||
|
||
animateCircles(); | ||
</script> | ||
|
||
</body> | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,21 +19,7 @@ | |
<link rel="stylesheet" href="style.css"> | ||
<link rel="stylesheet" href="Contact us/style.css"> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/fonts/remixicon.css" rel="stylesheet"/> | ||
<style> | ||
/* circle styles */ | ||
.circle { | ||
height: 24px; | ||
width: 24px; | ||
border-radius: 24px; | ||
background-color: rgb(255, 0, 0); | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
pointer-events: none; | ||
z-index: 99999999; | ||
} | ||
</style> | ||
</head> | ||
</head> | ||
|
||
<body> | ||
<!-- Header --> | ||
|
@@ -625,76 +611,6 @@ <h2>Words from Our Clients <span class="highlight">Inspiring Testimonials of Sat | |
}); | ||
}; | ||
</script> | ||
|
||
<!-- Circles --> | ||
<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> | ||
|
||
<script> | ||
// coordinates for the cursor : | ||
const coords = { x: 0, y: 0 }; | ||
const circles = document.querySelectorAll(".circle"); | ||
|
||
const colors = [ | ||
"#fc5720", "#fc6532", "#fc6532","#fd8b65", "#d5585c", "#fac3b1", "#f4d5cb", "#fefefe", "#fefefe", "#cdf2c5", "#b2eca5", "#95e283", "#7dda68", "#4adc2d", "#69d451", "#54c939", "#34b916", "#28b309", "#1e9c02", | ||
]; | ||
|
||
circles.forEach(function (circle, index) { | ||
circle.x = 0; | ||
circle.y = 0; | ||
circle.style.backgroundColor = colors[index % colors.length]; | ||
}); | ||
|
||
// update the coordinates when the mouse moves: | ||
window.addEventListener("mousemove", function (e) { | ||
coords.x = e.clientX; | ||
coords.y = e.clientY; | ||
}); | ||
|
||
// animation function to move the circles: | ||
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.scale = (circles.length - index) / circles.length; | ||
|
||
circle.x = x; | ||
circle.y = y; | ||
|
||
const nextCircle = circles[index + 1] || circles[0]; | ||
x += (nextCircle.x - x) * 0.3; | ||
y += (nextCircle.y - y) * 0.3; | ||
}); | ||
|
||
requestAnimationFrame(animateCircles); | ||
} | ||
|
||
animateCircles(); | ||
</script> | ||
|
||
</body> | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,21 +19,7 @@ | |
<link rel="stylesheet" href="style.css"> | ||
<link rel="stylesheet" href="Contact us/style.css"> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/fonts/remixicon.css" rel="stylesheet"/> | ||
<style> | ||
/* circle styles */ | ||
.circle { | ||
height: 24px; | ||
width: 24px; | ||
border-radius: 24px; | ||
background-color: rgb(255, 0, 0); | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
pointer-events: none; | ||
z-index: 99999999; | ||
} | ||
</style> | ||
</head> | ||
</head> | ||
|
||
<body> | ||
<!-- Header --> | ||
|
@@ -625,76 +611,6 @@ <h2>Words from Our Clients <span class="highlight">Inspiring Testimonials of Sat | |
}); | ||
}; | ||
</script> | ||
|
||
<!-- Circles --> | ||
<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> | ||
|
||
<script> | ||
// coordinates for the cursor : | ||
const coords = { x: 0, y: 0 }; | ||
const circles = document.querySelectorAll(".circle"); | ||
|
||
const colors = [ | ||
"#fc5720", "#fc6532", "#fc6532","#fd8b65", "#d5585c", "#fac3b1", "#f4d5cb", "#fefefe", "#fefefe", "#cdf2c5", "#b2eca5", "#95e283", "#7dda68", "#4adc2d", "#69d451", "#54c939", "#34b916", "#28b309", "#1e9c02", | ||
]; | ||
|
||
circles.forEach(function (circle, index) { | ||
circle.x = 0; | ||
circle.y = 0; | ||
circle.style.backgroundColor = colors[index % colors.length]; | ||
}); | ||
|
||
// update the coordinates when the mouse moves: | ||
window.addEventListener("mousemove", function (e) { | ||
coords.x = e.clientX; | ||
coords.y = e.clientY; | ||
}); | ||
|
||
// animation function to move the circles: | ||
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.scale = (circles.length - index) / circles.length; | ||
|
||
circle.x = x; | ||
circle.y = y; | ||
|
||
const nextCircle = circles[index + 1] || circles[0]; | ||
x += (nextCircle.x - x) * 0.3; | ||
y += (nextCircle.y - y) * 0.3; | ||
}); | ||
|
||
requestAnimationFrame(animateCircles); | ||
} | ||
|
||
animateCircles(); | ||
</script> | ||
|
||
</body> | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,21 +19,7 @@ | |
<link rel="stylesheet" href="style.css"> | ||
<link rel="stylesheet" href="Contact us/style.css"> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/fonts/remixicon.css" rel="stylesheet"/> | ||
<style> | ||
/* circle styles */ | ||
.circle { | ||
height: 24px; | ||
width: 24px; | ||
border-radius: 24px; | ||
background-color: rgb(255, 0, 0); | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
pointer-events: none; | ||
z-index: 99999999; | ||
} | ||
</style> | ||
</head> | ||
</head> | ||
|
||
<body> | ||
<!-- Header --> | ||
|
@@ -625,76 +611,6 @@ <h2>Words from Our Clients <span class="highlight">Inspiring Testimonials of Sat | |
}); | ||
}; | ||
</script> | ||
|
||
<!-- Circles --> | ||
<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> | ||
|
||
<script> | ||
// coordinates for the cursor : | ||
const coords = { x: 0, y: 0 }; | ||
const circles = document.querySelectorAll(".circle"); | ||
|
||
const colors = [ | ||
"#fc5720", "#fc6532", "#fc6532","#fd8b65", "#d5585c", "#fac3b1", "#f4d5cb", "#fefefe", "#fefefe", "#cdf2c5", "#b2eca5", "#95e283", "#7dda68", "#4adc2d", "#69d451", "#54c939", "#34b916", "#28b309", "#1e9c02", | ||
]; | ||
|
||
circles.forEach(function (circle, index) { | ||
circle.x = 0; | ||
circle.y = 0; | ||
circle.style.backgroundColor = colors[index % colors.length]; | ||
}); | ||
|
||
// update the coordinates when the mouse moves: | ||
window.addEventListener("mousemove", function (e) { | ||
coords.x = e.clientX; | ||
coords.y = e.clientY; | ||
}); | ||
|
||
// animation function to move the circles: | ||
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.scale = (circles.length - index) / circles.length; | ||
|
||
circle.x = x; | ||
circle.y = y; | ||
|
||
const nextCircle = circles[index + 1] || circles[0]; | ||
x += (nextCircle.x - x) * 0.3; | ||
y += (nextCircle.y - y) * 0.3; | ||
}); | ||
|
||
requestAnimationFrame(animateCircles); | ||
} | ||
|
||
animateCircles(); | ||
</script> | ||
|
||
</body> | ||
|
||
|
||
|
Oops, something went wrong.