Create A Draggable Card Slider in HTML CSS & JavaScript | Infinite Image Slider in JavaScript

  Рет қаралды 177,883

CodingNepal

CodingNepal

Күн бұрын

Пікірлер: 119
@true_bites
@true_bites Жыл бұрын
This is the video I've been looking over these years. Thank you so much.
@seeker3794
@seeker3794 Жыл бұрын
Don't know others, but I have learned a lot from this video... Thank you very much for subtitles that explains the process and keeps focused.👍
@EGY-Programmer
@EGY-Programmer 10 ай бұрын
The best slider tutorial in the world out there! Really appreciate your videos bro ♥
@cydexcode
@cydexcode Жыл бұрын
Me : Watches a video of someone else programming instead of working on my own project that I keep putting off
@kusumasaiteja750
@kusumasaiteja750 9 ай бұрын
Same 😢
@marcoslavarellocambaceres7051
@marcoslavarellocambaceres7051 Ай бұрын
Awesome work man! No words to say. Subscribed Thank you so much!
@VermaCoder
@VermaCoder Жыл бұрын
Thanks for this... without speak your code speaks a lot.🙂👍 keep it up.. like this great work
@beautyflower3107
@beautyflower3107 Жыл бұрын
Thank you very much for video
@aliadrian2772
@aliadrian2772 5 ай бұрын
thank you so much for this amazing video I have learned many think from it 🌹
@ebmpinyuri
@ebmpinyuri Жыл бұрын
thank you so much for this , really improved my knowledge of stuff
@feldspar081150
@feldspar081150 Жыл бұрын
I just made an account just to subscribe to this genius. thanks @codingNepal!
@NahuelBorromeo
@NahuelBorromeo 11 ай бұрын
Amazing bro, thanks for the tutorial!
@DDK808
@DDK808 Жыл бұрын
Thank you very much, this was really helpful and educative 👍
@JesusAguilar-vv3cu
@JesusAguilar-vv3cu 29 күн бұрын
This is amazing, thanks!
@hussein7990
@hussein7990 Жыл бұрын
Love ur channel , keep it up
@Clash-Roblox
@Clash-Roblox Жыл бұрын
I have learned a lot from this video but I still wonder, can you scroll 3 images at a time you clicked one
@parmaraakash9822
@parmaraakash9822 5 ай бұрын
thank you your video vary use full for me
@TLTechbender
@TLTechbender Жыл бұрын
Thanks, This was so much helpful.
@sume1907
@sume1907 9 ай бұрын
At 2:50, how did you change the last img's number while also changing the rest?
@peterzhao9158
@peterzhao9158 4 ай бұрын
Great. lean a lot from this.
@herewegoeth
@herewegoeth Жыл бұрын
bro i love your projects please can make more videos on php
@euclidesperez9682
@euclidesperez9682 Жыл бұрын
I have a question, do you prepare this video in advance? Or do you know all that and you don't need to think so much about what you will do?
@naeemhassouna170
@naeemhassouna170 Жыл бұрын
Bro great work it fits my project perfectly. However, what should i change exactly in the js code so that i can slide multiple menu not just one
@Nitay-rus
@Nitay-rus 3 ай бұрын
Very good. Thank you!
@kertosyt
@kertosyt Жыл бұрын
this is very helpful ! thanx
@mohamadghalebizade9981
@mohamadghalebizade9981 8 ай бұрын
Nice video, How do you remove the eventlisteners, cuz each time user clicks or does anything an eventlistener will start popping up and stack?
@mariajegan2409
@mariajegan2409 Жыл бұрын
Bro this is AWESOME 😎👍
@CodingNepal
@CodingNepal Жыл бұрын
Happy to hear that :)
@aryatands2728
@aryatands2728 Жыл бұрын
Good Job bro...amazing
@sibadatta1990
@sibadatta1990 Жыл бұрын
Wow, u made it so simple. Thanks a lot
@getachewchala3942
@getachewchala3942 Жыл бұрын
Hi CodingNepal Please, can you make video on custom context menu on specific element like or or any like this? Thank you
@coder_neha
@coder_neha Жыл бұрын
Can i add only single div instead of three?
@LunarRunner
@LunarRunner Жыл бұрын
The infinite scroll logic does not work properly if you resize the screen and trigger the media selectors to change the number of cards in view. You need to keep track of the original carousel children before you slice the array and register window resize events and recalculate the firstCardWidth, cardPerView and re-slice the array with the next end cards. Other that that...excellent work!
@hanma83292
@hanma83292 Жыл бұрын
Very good!!!! Very big thanks!!!)))🥰🥰🥰🥰
@elariel6935
@elariel6935 13 күн бұрын
Thanks a lot, you're amazing !!!!!!!!!!!!
@alexandraweather4156
@alexandraweather4156 9 ай бұрын
thank you for this amasing video! i am a total newbie with js, but it worked for me. But now i need to make the slider undraggable, so that only buttons would cause it move. I have commented everything connected to dragging, an yet it remains draggable! how can i fix it?
@agamemnon-Fr
@agamemnon-Fr 3 ай бұрын
Awesome ! Thanks.
@oscar_cornejo
@oscar_cornejo Жыл бұрын
Can you make this slider with navigation dots please? 🤔
@umarcse8985
@umarcse8985 Жыл бұрын
Hello. I have a request for you. Your work is awesome. Would you please make a video about tab in javascript. Like project tab, skill tab, education tab etc in portfolio website?
@CodingNepal
@CodingNepal Жыл бұрын
Are you talking about this tab? Video: kzbin.info/www/bejne/h6XaiYSaodusjaM
@umarcse8985
@umarcse8985 Жыл бұрын
@@CodingNepal yeah. Got it. Thanks
@elsami6052
@elsami6052 Жыл бұрын
hi, i love your video and your code. i want to do the same thing but whith 4 columuns in the front page. in css i change the "grid-auto-column : calc " to 4 but in the JS dosnt work because is codificate for 3 colums. what can i change to work whith 4 colums
@vintage_lol
@vintage_lol Жыл бұрын
i made it work with 5 columns.. it's quite simple, actually
@zamster_malik
@zamster_malik Жыл бұрын
thanks u much for giving code
@musahkamara
@musahkamara Жыл бұрын
great Bro. It is perfect, but the left button is not working infinitively in my project despite I coded the same way as yours. thanks for the knowledge I have learned something new.
@mobileking3911
@mobileking3911 Жыл бұрын
Exactly... The infite loop of the left button is not working. Any Idea why? Pls someone should answer
@Justhue
@Justhue Жыл бұрын
I encountered the same problem@@mobileking3911
@anmolrk5076
@anmolrk5076 Жыл бұрын
Help me. It is working absolutely fine on left arrow but not returning back on clicking right arrow. Can you tell what may be the error?
@mobileking3911
@mobileking3911 Жыл бұрын
The infite loop of the left button is not working. Any Idea why? Pls someone should answer. An Awesome video regardless. Kudos bro. Pls someone should provide an answer.
@MrSocialPirate
@MrSocialPirate 4 ай бұрын
Without seeing your code it will be difficult, but most likely could be an error in the HTML elements id (if you have used a different id)
@JulioCesar-hh9wq
@JulioCesar-hh9wq Жыл бұрын
Dude, thanks a lot 10/10
@sume1907
@sume1907 9 ай бұрын
At 13:58, how did you select multiple lines like that?
@minenmaster5179
@minenmaster5179 8 ай бұрын
Holding ALT in VS-Code let's you do that
@03_Sanjay
@03_Sanjay 5 ай бұрын
I want to copy the same slider while making a website but when I click left or right icons for the second one it moves the first image slider only ...how to fix it in js
@roemerlin9887
@roemerlin9887 Жыл бұрын
Hey, nice tutorial. Just one probleme: If you are dragging and let go it just snaps right in to place with no transition. Anybody know how to fix that?
@amabsteve2594
@amabsteve2594 Жыл бұрын
i have the same problem, did you found the solution yet?
@hooho491
@hooho491 Жыл бұрын
@@amabsteve2594 same. any solution?
@eduardo6727
@eduardo6727 10 ай бұрын
Hi, did you solve it? I have the same problem
@BabarQureshi-n2j
@BabarQureshi-n2j Жыл бұрын
how can i use this multiple times in one page?
@loribryant4999
@loribryant4999 Жыл бұрын
is it possible for you to provide a live link for this, please?
@maryamseifi5957
@maryamseifi5957 Жыл бұрын
Thank you please make it's pagination buttons
@Daily_problemsr
@Daily_problemsr Жыл бұрын
Bro Next Challange/Task IMG Background Changer And Png Maker 🙏🙏🙏🙏
@РустамКаримов-я1щ
@РустамКаримов-я1щ 7 ай бұрын
This is a great lesson! Thank you! But a problem arises if you open such a slider directly on your smartphone. If you open this slider via a smartphone (both in Chrome and Safari), when you scroll using the arrows, the slides shift. That is, the second and subsequent slides are not fully displayed. For screens with a screen width less than 480px, I specified gap: 0px - it helped (but it’s a crutch) But for tablets with a screen smaller than 900px it does not help. There gap was left with the same value. I thought it was my conflicts and typos. But no. I opened your demo on a smartphone and tablet. A shift occurs. Has anyone encountered this? How to solve a problem?
@ayubish
@ayubish 6 ай бұрын
Thank you!
@buzzkagirl
@buzzkagirl Жыл бұрын
Hi can you show how to create train running status using rapid API key
@CodingNepal
@CodingNepal Жыл бұрын
Okay, I'll think on it.
@buzzkagirl
@buzzkagirl Жыл бұрын
@@CodingNepal thanks,I must say you are making us how to do coding with your videos and website, your website is very informative...
@blankspace4416
@blankspace4416 Жыл бұрын
Can i use this in my website with some changes in it !?
@smritikumari897
@smritikumari897 Жыл бұрын
Can you make a website with audio recorder and a writing pad with a video inbuilt guiding how to record and write.fully responsive.
@НиколайЮськов-ш2г
@НиколайЮськов-ш2г Жыл бұрын
Супер! Спасибо тебе огромное! 👍👍👍
@SinanBayar-v1u
@SinanBayar-v1u Жыл бұрын
Hi, great job. Is it possible to rewrite this code on react? After I tried to rewrite the infinite loop process is not working smooth. Every turn at the last child I had a stuck until I try to swipe 2 more times. What can cause that problem? Any idea?
@সাইফুলইসলামশাকিল-ম১ঢ
@সাইফুলইসলামশাকিল-ম১ঢ Жыл бұрын
Thanx Bro.
@rafaelmoreira6160
@rafaelmoreira6160 Жыл бұрын
Obrigado, ajudou no meu projeto.
@TutoMaster
@TutoMaster 9 ай бұрын
How do you learn do that by yourself? How can i get this level in Javascript?
@pablonavarro6263
@pablonavarro6263 Жыл бұрын
does anyone else have the problem that when you add "overflow: hidden" it hides the bottom cuts off the images like half way
@kiku_to_herself
@kiku_to_herself Жыл бұрын
U might have given height to it , please check that
@WolfGSk
@WolfGSk Жыл бұрын
hello. Awesome work there I tried to download the files from your site, a) I have removed adblock, b) I have tried to use private mode, c) I have use four different browsers and the message about the adBlock keeps popping up.
@sanketsingh5555
@sanketsingh5555 Жыл бұрын
bro please same video with explanation why u used this that etc etc...
@Techtalkswithnonny
@Techtalkswithnonny Жыл бұрын
I like Ur CN logo Can u give a hint on how to make something like that 🙏🙏🙏🙏🙏🙏🙏
@truthhammer69
@truthhammer69 Жыл бұрын
Great tutorial, but the problem is, It cant transition when clicking on the right arrow, the left one is no problem.However, I assume a need to set it up such that it reverses back after 6 clicks, but it only does so after 7 clicks. Not sure how to make it transition after 6 clicks on the right.
@truthhammer69
@truthhammer69 Жыл бұрын
I resolved the issue: it was due to not the same card size and therefore grid-auto-columns and gap calculation ratio.
@llibanogs
@llibanogs Жыл бұрын
really helpful thx
@riteshcgiri
@riteshcgiri Жыл бұрын
TypeError: Failed to execute 'insertAdjacentElement' on 'Element': parameter 2 is not of type 'Element' Chrome throwing this error when using card.outerHTML And when i am just using card it's just placinglast 3 items at start creating copies.. Can anyone help?
@Peace-hr6eo
@Peace-hr6eo Жыл бұрын
Salam sir I want to move autoplay from left to right ? How can
@sagarbhagat6475
@sagarbhagat6475 6 ай бұрын
carousel.scrollLeft -= firstCardWidth. This can lead to slide your images from LEFT to RIGHT
@husnamert477
@husnamert477 Жыл бұрын
all this examples is so good but We using nextjs to our prooject and when we trying implement some code from like that examples then it is throw always error.. lol
@dawnscript
@dawnscript Жыл бұрын
Wow awesome
@dyascoding7704
@dyascoding7704 Жыл бұрын
thank you very muc
@CodingNepal
@CodingNepal Жыл бұрын
You're welcome
@doBe1029
@doBe1029 10 ай бұрын
"There are two problems: 1. When changing the screen ratio, autoPlay() function doesn't work. 2. After changing the screen ratio, the slider doesn't loop back to the beginning once it reaches the last card. So, the infinite slide isn't working."
@yume3119
@yume3119 7 ай бұрын
I just had this problem but it was easy to solve, I just had to create two functions: the first sets the values of card_width and card_per_view and is called when the page loads or when the display is resized. The second removes the clones from the cards (if they exist) and creates new clones based on the updated values and is called within the first function.
@smpnegeri3bangkalan681
@smpnegeri3bangkalan681 Жыл бұрын
Hi bro, is itworking for blogspot?
@sucess369
@sucess369 Жыл бұрын
Dai euta Q&A video chaiyo k hamlai
@CodingNepal
@CodingNepal Жыл бұрын
Hunxa brother, I'll think on it.
@erturkyorulmaz7376
@erturkyorulmaz7376 Жыл бұрын
Can't reach code?!
@harrymuliawan454
@harrymuliawan454 Жыл бұрын
is this possible if made with tailwind or bootstrap?
@rajinsakha07
@rajinsakha07 Жыл бұрын
Thank you
@deepbhattacharyya7980
@deepbhattacharyya7980 3 ай бұрын
Please make e full screen image slider 😅
2 ай бұрын
Great video on image slider. Is anyone here working on program developer? please message me.
@ozodbek_developer
@ozodbek_developer 9 ай бұрын
great
@pandipatipavan3804
@pandipatipavan3804 Жыл бұрын
Please provide the code files and the links in the description as soon as possible for free 🙏 thank you
@CodingNepal
@CodingNepal Жыл бұрын
Sure, the source code will be free, and a link will be provided soon in the description.
@pandipatipavan3804
@pandipatipavan3804 Жыл бұрын
@@CodingNepal Yeah sure. Please do it for all the videos if it is possible. Thank You so much brother 🙏
@selonraymond6651
@selonraymond6651 Жыл бұрын
Brillant !
@maxgamer6476
@maxgamer6476 Жыл бұрын
Aaaaaaaah men damn damn keep going
@emaesee4284
@emaesee4284 Жыл бұрын
scroll-behavior: smooth; don't work
@rtxgamelab.official
@rtxgamelab.official Жыл бұрын
I thought you were one of these someone 😕😕
@frontend_ko
@frontend_ko Жыл бұрын
great great
@CodingNepal
@CodingNepal Жыл бұрын
Thank you
@onceonce_studio
@onceonce_studio Жыл бұрын
la madre para los mudos con voz
@CoderLoAnt
@CoderLoAnt 10 ай бұрын
please, free code
@Ayush37262
@Ayush37262 5 ай бұрын
The CSS 💀
@amircahyadi9219
@amircahyadi9219 Жыл бұрын
First ❤
@CodingNepal
@CodingNepal Жыл бұрын
Great! Hope you enjoyed the video.
@CecilitaB
@CecilitaB Жыл бұрын
i love you
@mysearchhero
@mysearchhero Жыл бұрын
Asowme
@RuiBorda
@RuiBorda 3 ай бұрын
dislike por no poner codigo
@DesiTonyFaimly
@DesiTonyFaimly 8 ай бұрын
Nice bro
Build a Recipe App with Vanilla JavaScript
5:49:07
codewithsadee
Рет қаралды 56 М.
1% vs 100% #beatbox #tiktok
01:10
BeatboxJCOP
Рет қаралды 67 МЛН
Une nouvelle voiture pour Noël 🥹
00:28
Nicocapone
Рет қаралды 9 МЛН
Try this prank with your friends 😂 @karina-kola
00:18
Andrey Grechka
Рет қаралды 9 МЛН
Play and Pause in Infinite Slider with CSS Only
13:24
Lun Dev
Рет қаралды 110 М.
Front-end web development is changing, quickly
3:43
Fireship
Рет қаралды 1,4 МЛН
Animation , Scroll , Component and Variant in Figma
25:32
Mahmoud Abujadallah
Рет қаралды 460
The Easy Way to Design Top Tier Websites
11:54
Sajid
Рет қаралды 718 М.
HTML and CSS Project Tutorial: Pure CSS Image Slider
7:41
Skillthrive
Рет қаралды 368 М.
This is Why Programming Is Hard For you
10:48
The Coding Sloth
Рет қаралды 1 МЛН
1% vs 100% #beatbox #tiktok
01:10
BeatboxJCOP
Рет қаралды 67 МЛН