fix: progress bar animations
This commit is contained in:
parent
b17729e9c0
commit
f1a0f407bd
@ -175,17 +175,19 @@
|
||||
/**
|
||||
* Skills animation
|
||||
*/
|
||||
let skilsContent = select(".skills-content");
|
||||
if (skilsContent) {
|
||||
new Waypoint({
|
||||
element: skilsContent,
|
||||
offset: "80%",
|
||||
handler: function(direction) {
|
||||
let progress = select(".progress .progress-bar", true);
|
||||
progress.forEach((el) => {
|
||||
el.style.width = el.getAttribute("aria-valuenow") + "%";
|
||||
});
|
||||
},
|
||||
let skillsContent = select(".skills-content .progress", true);
|
||||
if (skillsContent) {
|
||||
skillsContent.forEach((skill) => {
|
||||
new Waypoint({
|
||||
element: skill,
|
||||
offset: "100%",
|
||||
handler: function(direction) {
|
||||
let progress = skill.querySelectorAll(".progress-bar");
|
||||
progress.forEach((el) => {
|
||||
el.style.width = el.getAttribute("aria-valuenow") + "%";
|
||||
});
|
||||
},
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user