Compare commits

...

2 Commits

Author SHA1 Message Date
AnsariTufail
66cbf2c79a Merge branch 'vivek' of http://git.wdipl.com/Mohd.Ansari/ask-mutual-fund into tufail-dev 2025-10-15 18:04:22 +05:30
unknown
fc17ad8e92 update timeline line filling animation 2025-10-15 18:03:36 +05:30
2 changed files with 4 additions and 4 deletions

View File

@@ -1290,13 +1290,13 @@ span.textaccor {
.line-fill { .line-fill {
position: absolute; position: absolute;
top: 50%; top: 50%;
left: 60px; left: 10px;
height: 2px; height: 1px;
background: #b18c4a; background: #b18c4a;
z-index: 0; z-index: 0;
transform-origin: left; transform-origin: left;
width: 0; width: 0;
transition: width 0.5s linear; transition: left 0.45s linear, width 0.45s linear; /* animate both */
} }
/* =========================== /* ===========================

View File

@@ -128,7 +128,7 @@ function initTimelineSwiper() {
timelineItems.forEach((item, i) => { timelineItems.forEach((item, i) => {
item.classList.toggle("active", i === index); item.classList.toggle("active", i === index);
}); });
const timelineWidth = document.querySelector(".timeline").offsetWidth - 40; const timelineWidth = document.querySelector(".timeline").offsetWidth - 10;
const newWidth = (timelineWidth / (totalKites - 1)) * index; const newWidth = (timelineWidth / (totalKites - 1)) * index;
if (lineFill) lineFill.style.width = newWidth + "px"; if (lineFill) lineFill.style.width = newWidth + "px";
} }