+ 39
Doubt in Code🥺 (Solved😊)
The slider is not working 🥺🥺, here is the code https://code.sololearn.com/WItiXjpSctsw/?ref=app
12 odpowiedzi
+ 15
The actual problem is with overflow.
you cant apply element.scrollLeft += xyz
for element with overflow : hidden
Since thera a lot of elements i am unable to visualize the Dom tree probably need dev tools to visualize ..
but hope this helps .
https://code.sololearn.com/WGKzUFm56kh1/?ref=app
+ 11
Prashanth Kumar thank you so much😊🌙😊 for telling me my mistake and the scrolling one is really awesome 🤩🌙🤩
Anshika (Left) please keep you appreciations short as to other users this may appear spammy in nature ..
Thanks for your cooperation.
BroFar
Gold Moderator
+ 10
O nice to see its solved ..
but anyways here's it ... 2 different attempts
Your mistake was that you were applying .scrollLeft to wrong element ..
https://code.sololearn.com/WfwfWt4C4p4n/?ref=app ( this one has smooth scroll effect )
https://code.sololearn.com/W1VK8whv1oG0/?ref=app
+ 9
Since there is a lot of code, is best to take small code bits and review them a little at a time. Just <!-- comment --> a lot out and work with small pieces. Best of luck
+ 8
byww actually these are multiple slides in a main container with some content in it.
+ 8
Prashanth Kumar thankkkk youuuuu sooooo much but the thing is that I want some content in those slides not images
Here is the dom tree
Storybox>horrorbox>sliderbox>leftbtn+rightbtn+slidebox>innerbox>hsl(slides)>imgbox+story
and the problem is that inspite of using onclick function the scrolling is not taking place don't know why
+ 8
Prashanth Kumar oh no issues thankkkkkkkk youuuuuu soooooooooooooooooooo much for helping 😊😊
I checked your code though and got it but I am still unable to figure out that why the same function isn't working in my code😥😥
+ 7
ㅤ ㅤㅤLune🌙🎵🎶
Leme know if you get that code .
i had made that few years ago .
Will try inspecting your code after i get access to my laptop currently i have just my mobile in my hand .
+ 7
Sandeep Kushwaha thank you so much😊😊 i got my mistake 🥳🥳
Anshika please keep you appreciations short as to other users this may appear spammy in nature ..
Thanks for your cooperation.
BroFar
Gold Moderator
+ 6
Do you want something with many pictures that slide when you click on a button ?
0
I need someone to help me create a database on which the person can be registered with his personal photo with all his private data. He will help me
- 3
Please how can i solve this how many seconds are there in 30days