Dev_HK
Dev_HK
Explore posts from servers
KPCKevin Powell - Community
Created by Dev_HK on 4/27/2025 in #help
whenever i load the slider i made, the styling of var is only implemented on one slider & not others
Anyone ??
4 replies
KPCKevin Powell - Community
Created by Dev_HK on 4/27/2025 in #help
whenever i load the slider i made, the styling of var is only implemented on one slider & not others
4 replies
KPCKevin Powell - Community
Created by Dev_HK on 4/27/2025 in #help
whenever i load the slider i made, the styling of var is only implemented on one slider & not others
setInterval(()=>{
if(cssItemToScroll>=singleSliderItemsCountBeforePopulating){
cssItemToScroll=0;
singleSlider.scrollTo({left:singleSliderWidth})
}
let childrenCountAddMove=0;
for(childrenCountAddMove;childrenCountAddMove < singleSliderItemsCountAfterPopulating;childrenCountAddMove++){
if(!singleSlider.children[childrenCountAddMove].classList.contains('move')){
singleSlider.children[childrenCountAddMove].classList.add('move')
}
}
setTimeout(()=>{
cssItemToScroll=cssItemToScroll+1;
singleSlider.scrollTo({left:(singleSliderWidth * (cssItemToScroll + OFFSET_IMG_IN_SLIDER) )})

let childrenCountRemoveMove=0
for(childrenCountRemoveMove;childrenCountRemoveMove < singleSliderItemsCountAfterPopulating;childrenCountRemoveMove++){
if(singleSlider.children[childrenCountRemoveMove].classList.contains('move')){
singleSlider.children[childrenCountRemoveMove].classList.remove('move')
}
}
},(ANIMATION_TIME+ANIMATION_DELAY))

},ANIMATION_TIME*2)

}
setInterval(()=>{
if(cssItemToScroll>=singleSliderItemsCountBeforePopulating){
cssItemToScroll=0;
singleSlider.scrollTo({left:singleSliderWidth})
}
let childrenCountAddMove=0;
for(childrenCountAddMove;childrenCountAddMove < singleSliderItemsCountAfterPopulating;childrenCountAddMove++){
if(!singleSlider.children[childrenCountAddMove].classList.contains('move')){
singleSlider.children[childrenCountAddMove].classList.add('move')
}
}
setTimeout(()=>{
cssItemToScroll=cssItemToScroll+1;
singleSlider.scrollTo({left:(singleSliderWidth * (cssItemToScroll + OFFSET_IMG_IN_SLIDER) )})

let childrenCountRemoveMove=0
for(childrenCountRemoveMove;childrenCountRemoveMove < singleSliderItemsCountAfterPopulating;childrenCountRemoveMove++){
if(singleSlider.children[childrenCountRemoveMove].classList.contains('move')){
singleSlider.children[childrenCountRemoveMove].classList.remove('move')
}
}
},(ANIMATION_TIME+ANIMATION_DELAY))

},ANIMATION_TIME*2)

}
when i load the page it only get implemented on one but not the other until it loops over for each slider
4 replies
KPCKevin Powell - Community
Created by Dev_HK on 4/25/2025 in #help
fixing the cls caused by scale on images
that was the reason i used scale
22 replies
KPCKevin Powell - Community
Created by Dev_HK on 4/25/2025 in #help
fixing the cls caused by scale on images
No description
22 replies
KPCKevin Powell - Community
Created by Dev_HK on 4/25/2025 in #help
fixing the cls caused by scale on images
quite even
22 replies
KPCKevin Powell - Community
Created by Dev_HK on 4/25/2025 in #help
fixing the cls caused by scale on images
No description
22 replies
KPCKevin Powell - Community
Created by Dev_HK on 4/25/2025 in #help
fixing the cls caused by scale on images
No description
22 replies
KPCKevin Powell - Community
Created by Dev_HK on 4/25/2025 in #help
fixing the cls caused by scale on images
so
22 replies
KPCKevin Powell - Community
Created by Dev_HK on 4/25/2025 in #help
fixing the cls caused by scale on images
hey there good morning
22 replies
KPCKevin Powell - Community
Created by Dev_HK on 4/25/2025 in #help
fixing the cls caused by scale on images
I'll send you a screenshot tomorrow, I'm tired now
22 replies
KPCKevin Powell - Community
Created by Dev_HK on 4/25/2025 in #help
fixing the cls caused by scale on images
Ohh no no it's the images they're too small, and uneven I guess when adding width to it, they look weird like not the right scale I guess, they only look the same width and height when I do scale
22 replies
KPCKevin Powell - Community
Created by Dev_HK on 4/25/2025 in #help
fixing the cls caused by scale on images
What? No only scale, unless if that's what you actually meant
22 replies
KPCKevin Powell - Community
Created by Dev_HK on 4/25/2025 in #help
fixing the cls caused by scale on images
i believe so about the menu going outside of the viewport
22 replies
KPCKevin Powell - Community
Created by Dev_HK on 4/25/2025 in #help
fixing the cls caused by scale on images
22 replies
KPCKevin Powell - Community
Created by Dev_HK on 4/25/2025 in #help
fixing the cls caused by scale on images
No description
22 replies
KPCKevin Powell - Community
Created by Dev_HK on 4/25/2025 in #help
fixing the cls caused by scale on images
i need the image to scale tho so i need it even tho it hurts the whole thing i don't know if there's a way to optimize it or not
22 replies
KPCKevin Powell - Community
Created by Dev_HK on 4/18/2025 in #help
how to fix the mobile in lighthouse test
cool i see any other respectable resources to learn about web perf i wanna learn more about the web perf thing, i've been web developer long enough to not learn about performance, i'm taking the responsibility of not learning early but also the responsibility to learn about it and deliver good software
33 replies
KPCKevin Powell - Community
Created by Dev_HK on 4/18/2025 in #help
how to fix the mobile in lighthouse test
isn't brazilian portoguese as well??
33 replies
KPCKevin Powell - Community
Created by Dev_HK on 4/18/2025 in #help
how to fix the mobile in lighthouse test
No description
33 replies