can someone help me?

hi, i wanted to ask help for the jquery with stimulus with this small project of mine because I've done it good at large screen however in small screen like tablet it did not went pretty well when i tried to next it and prev it. i wanted to have a 2 cards shown on tablet and when i hit the next button the 2nd card should fully show and the 3rd card should be visible by half and then agin when next button is clicked the 3rd card fully view and 4th again by half and soon. here is the code https://codepen.io/justine1607/pen/rNEjwgM
No description
2 Replies
clevermissfox
clevermissfox4mo ago
I dont see a lot of jQuery around here so that may be precluding you from getting help. why have you chosen to use JQ ? Did you write the js in this codepen or did you copy it from an AI ? I ask because you really need to comb through the code if the latter, as the selectors can often be wrong or they gave you what you asked for and the code could be missing a very important piece that it didn't give you and you didn't know to ask for. Or it's a smaller piece in a bigger project and things are in the wrong order, function/variable names aren't being correctly referenced , etc etc. I fond AI helpful for refactoring or debugging code I've already written but would not rely on asking it to write for me. And also you probably want to use buttons for your next and prev elements and then put their img tag inside or use a background image. It's inaccessible otherwise, screenreader users will have no way to navigate if they can't click on the image tag.
Justine
JustineOP4mo ago
we only use jquery in this particuar project. yup i just get it form an ai since i dont know yet how to do it i just ade it for sample to see the output. and still figuring it out how to exactly do it.
Want results from more Discord servers?
Add your server