Merge remote-tracking branch 'origin/dev_khushi' into dev_anurag
This commit is contained in:
@@ -463,7 +463,7 @@ Case Studies
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -189,14 +189,12 @@
|
|||||||
|
|
||||||
<!-- Floating Social Bar -->
|
<!-- Floating Social Bar -->
|
||||||
<div
|
<div
|
||||||
id="socialBar"
|
class="fixed right-72 top-1/2 -translate-y-1/2 z-50
|
||||||
class="fixed left-5 top-24 z-50
|
|
||||||
flex flex-col items-center gap-5
|
flex flex-col items-center gap-5
|
||||||
bg-lime-400
|
bg-lime-400
|
||||||
px-3 py-4
|
px-3 py-4
|
||||||
rounded-full
|
rounded-full
|
||||||
shadow-lg
|
shadow-lg"
|
||||||
transition-transform duration-300 ease-out"
|
|
||||||
>
|
>
|
||||||
<a href="#" class="text-black text-xl hover:scale-125 transition">
|
<a href="#" class="text-black text-xl hover:scale-125 transition">
|
||||||
<i class="fab fa-instagram"></i>
|
<i class="fab fa-instagram"></i>
|
||||||
@@ -215,20 +213,9 @@
|
|||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- Dummy content to test scrolling -->
|
<!-- Dummy content to test scrolling -->
|
||||||
<div class="h-[2000px] p-20">
|
|
||||||
<h1 class="text-3xl font-bold">Scroll Down</h1>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<script>
|
|
||||||
const bar = document.getElementById("socialBar");
|
|
||||||
|
|
||||||
window.addEventListener("scroll", () => {
|
|
||||||
const y = window.scrollY * 0.3;
|
|
||||||
bar.style.transform = `translateY(${y}px)`;
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user