Stunning HTML & CSS Card Animation

Sdílet
Vložit
  • čas přidán 9. 09. 2024
  • In this video we will show you how to create a stunning card animation using HTML & CSS only.
    Source code: github.com/web...
    Get the images:
    wirestock.io/j...
    stock.adobe.co...
    Do you like our work? Support us 💛
    www.buymeacoff...
    #css #html #htmltutorial #csstutorial #animation #cssanimationtutorial #cssanimation #csscard #ui #ux #webdesign

Komentáře • 165

  • @zeeshanali4502
    @zeeshanali4502 Před 4 měsíci +7

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    These three property in your div will be cherry on top , and makes the center position will be always seen even if it is closed and transition will also look stunning . ( love your work )

  • @HGGdragon
    @HGGdragon Před 10 měsíci +126

    Really clever use of the radio elements! nicely done :)

    • @webuitutorials
      @webuitutorials  Před 10 měsíci +4

      Thank you very much!

    • @guilhermealmeida6169
      @guilhermealmeida6169 Před 6 měsíci

      @@webuitutorials Friend, I loved your work and repeated it, but one thing that bothered me a bit is that I couldn't save the photo. We clicked on it, it opens, but we can't close it like when we open the website. Is there a way to fix this? What can I do?

  • @erpetek
    @erpetek Před 11 měsíci +137

    smart usage of radio buttons, i thought you're going to use javascript

    • @user-lr1yf7ro5y
      @user-lr1yf7ro5y Před 6 měsíci

      Same

    • @lukenaylor6458
      @lukenaylor6458 Před měsícem

      There should've been "no js" in the thumbnail. I also wasn't expecting this creativity.

  • @Melynt
    @Melynt Před 8 měsíci +15

    actually sick use of those inputs :D love it and saving it for later usage idea

  • @Hey-Chef-Mike
    @Hey-Chef-Mike Před 8 měsíci +27

    Even though I rarely hand code much anything these days, it's refreshing to watch coding from scratch. Cheers!

    • @bogdankp
      @bogdankp Před 8 měsíci +20

      Yes, leg coding took over my life too.

    • @not-fake-human
      @not-fake-human Před 8 měsíci

      ​@@bogdankpfyi you can't code with you legs , use butt

    • @stefanr9653
      @stefanr9653 Před 8 měsíci

      why so? cuz there is already everything on the internet?

    • @guruware8612
      @guruware8612 Před 7 měsíci

      @@stefanr9653 Should read: "there is already everything copied on the internet"
      One new idea.. 705354 copies, not even bothering to adjust little things.
      The majority of "web-designers" are only able to copy/paste things without knowing how things work.
      Ask that self-proclaimed specialists to create a web-site just by using notepad.
      It all started when ms-word dared to generate html. It will get worse, AI tools are coming: then we get the same idiotic images everywhere, and people will think its "cool".

    • @Xgil2Play
      @Xgil2Play Před 7 měsíci

      Call me old-fashioned, but it's the only way I can ensure things work the way they're supposed to.

  • @BastiRIP
    @BastiRIP Před 5 měsíci +1

    This is absolute stunning!! I just started to lern HTML/CSS/JS ...but this blew me away!!!

  • @FernandoJosedosSantos-fw8xw
    @FernandoJosedosSantos-fw8xw Před 5 měsíci

    You have no idea of how much this helped! THANK YOU SO MUCH!

  • @joshuadauntless934
    @joshuadauntless934 Před 6 měsíci +1

    I'm new to html. But It works! big thanks!

  • @xDeadlyWarriorX
    @xDeadlyWarriorX Před 8 měsíci +2

    I rarely code anything from scratch, only using UI Components from Material, Bootstrap, etc, but this one looks super bro! Congrats.

  • @denil312
    @denil312 Před 5 měsíci

    It was so detailed ! Thanks so much for that !❤

  • @salvatoreinchiappa3340
    @salvatoreinchiappa3340 Před 6 měsíci +2

    clever use of radio element! Amazing job bro/sis

  • @omidsedighi-mornani9166
    @omidsedighi-mornani9166 Před měsícem

    Sehr hilfreiches Video! ♥

  • @Ditebogomojapelo
    @Ditebogomojapelo Před 7 měsíci

    This is beautiful! inspiring for a noob like me

  • @sunny.sophie
    @sunny.sophie Před 6 měsíci

    That's a creative way to get these card effect, nice! :) Sadly it's not accessible and also not W3C compliant (div in label), so I would never implement it like this.

  • @prabhjotsingh69
    @prabhjotsingh69 Před 5 měsíci

    Really amazing work brother

  • @raghavendra5230
    @raghavendra5230 Před 8 měsíci +1

    Thank you 👌continue like this with different ways👍

  • @Mawuko-SenyoHayibor
    @Mawuko-SenyoHayibor Před 4 měsíci

    Amazing tut thank you so much

  • @trainerdevesh
    @trainerdevesh Před 8 měsíci

    Without Javascript great work

  • @row2sky
    @row2sky Před 9 měsíci +1

    Потрясающе 'аплодисменты'

  • @sumittiwari3731
    @sumittiwari3731 Před 8 měsíci +1

    Really amazing work bro ❤❤

  • @HBcanall
    @HBcanall Před 8 měsíci

    Awesome!

  • @stivomoses8882
    @stivomoses8882 Před 3 měsíci

    topnotch creativity

  • @calvinkawuma9029
    @calvinkawuma9029 Před 2 měsíci

    Thank u so much 👍

  • @ndwho
    @ndwho Před 8 měsíci

    This video is gold ngl

  • @AlexLoLar
    @AlexLoLar Před 7 měsíci

    hi guys, use details instead the inputs, the details tag conteint open atribut, on this is most easy than inputs

  • @shibalnugamingyt5611
    @shibalnugamingyt5611 Před 5 měsíci +1

    Hello, how do I resize this for mobile?

  • @deojefflai6826
    @deojefflai6826 Před rokem +1

    This is beautiful

  • @MHR664
    @MHR664 Před 4 měsíci

    Great!!

  • @MegaMaliak
    @MegaMaliak Před 2 měsíci

    Nice!!

  • @Grow20
    @Grow20 Před 9 měsíci

    osm work buddy!!! fantastic 💡

  • @kutu258
    @kutu258 Před 6 měsíci

    speed running my 1 week on this project :D

  • @jameswagner2882
    @jameswagner2882 Před rokem +1

    looks amazing!!

  • @ivanzq21
    @ivanzq21 Před 4 měsíci +1

    at 6:18 I did not understand why u removed the "Checked" from c2,c3 and c4

    • @webuitutorials
      @webuitutorials  Před 4 měsíci +1

      The checked one is the default card that is open on page load. As I was copying the inputs in the beginning, I forgot to remove the checked attributes from the other inputs (it made no sense to check all because only one of them can be checked at any time)

  • @uzairmohammed7
    @uzairmohammed7 Před 7 měsíci

    it's really cool ❤

  • @nazishkiran
    @nazishkiran Před 6 měsíci

    wow very nice logic

  • @ihelpdogs
    @ihelpdogs Před 8 měsíci +1

    Looks great. How's it look on mobile devices with width set at 600px?

  • @ahmetsoner9106
    @ahmetsoner9106 Před 9 měsíci +1

    Emeğine sağlık ❤
    Eğer bu animasyonda solda ok ve sağda ok olan bir slider olsaymış ve kullanıcı oklara tıkladığın ortaya gelen resim otomatik açılıp sola giden veya sağa giden resim otomatik kapansaymış efsane bir animasyon slider olurmuş

  • @toniojoestar3212
    @toniojoestar3212 Před 4 měsíci

    thank you :)

  • @HenHouse_Pins
    @HenHouse_Pins Před 5 měsíci

    I did this project 3 years ago in a udemy course. lol

  • @ConsumerCreditEducationTV
    @ConsumerCreditEducationTV Před 8 měsíci

    I needed to see this ❤

  • @Martin-ru3yn
    @Martin-ru3yn Před rokem +3

    Beautiful! Really nice work.
    Just want to ask. Is this a good approach from a semantic or SEO point of view, putting all the content between label tags?

    • @webuitutorials
      @webuitutorials  Před rokem

      Thank you! Honestly, I do not know exactly to what extend it affects SEO. But considering that there is not that much text per slide anyway, this should not be a significant problem

    • @sunny.sophie
      @sunny.sophie Před 6 měsíci

      Hey :) I also don't know how it affects SEO, but is is not a good approach from a semantic point of view and it is not accessible.

  • @AlbertGasparyan-d9z
    @AlbertGasparyan-d9z Před 18 dny

    Looking good but div element is not allowed as a child for label you need to change your structure

  • @AKATSUKIbd
    @AKATSUKIbd Před 6 měsíci

    wow thanks

  • @AdrianaKo33_ESP
    @AdrianaKo33_ESP Před 6 měsíci +1

    i put in container justify-content start for horizontal view but its not working

    • @webuitutorials
      @webuitutorials  Před 6 měsíci +1

      Try writing flex-start instead of start

    • @AdrianaKo33_ESP
      @AdrianaKo33_ESP Před 6 měsíci

      @@webuitutorials do you have any discord or something ? I have a photo with the results

  • @smithsmith3503
    @smithsmith3503 Před 8 měsíci

    Wow, nice great job

  • @Lisa_LizaW
    @Lisa_LizaW Před 8 měsíci

    Thanks for the example! But how to return the previous state in the form of columns when moving the cursor to the side

  • @AnkitKumar-vw1dm
    @AnkitKumar-vw1dm Před 8 měsíci

    Amaining video😍.

  • @paulojorge59
    @paulojorge59 Před 6 měsíci

    Wow muito top...

  • @gkail6980
    @gkail6980 Před 8 měsíci

    Cool story bro, what does it look like on mobile?

  • @MrValdepenas
    @MrValdepenas Před 10 měsíci

    Cool stuff 👍🏻

  • @pauldanielvanschevikhoven4551

    This works great Thnx

  • @not_amanullah
    @not_amanullah Před 7 měsíci

    nice ❤

  • @nazmulhassan5010
    @nazmulhassan5010 Před 10 měsíci

    awesome animation

  • @nikilragav
    @nikilragav Před 7 měsíci

    I'm a little confused by 2 things: how come you don't need to define a width on the icon so that it's always a circle (as opposed to some other shape). How come when you put the styles for the text, they disappeared? I don't think overflow hidden should make them disappear?

  • @DerTheoGD
    @DerTheoGD Před 9 měsíci +2

    nice work! where did you get the images from though?

    • @webuitutorials
      @webuitutorials  Před 9 měsíci

      Thank you, you can find the images either on stock.adobe.com/de/contributor/211435115/James or wirestock.io/james591

  • @Ducky_8624
    @Ducky_8624 Před 6 měsíci

    I'm a beginner with html, I tried to do the same as you but for some reason only tags 1 and 2 appear.

  • @judboss1176
    @judboss1176 Před rokem

    amazing

  • @sp_dragoyt6236
    @sp_dragoyt6236 Před 2 měsíci

    How to work in Responsive?

  • @shivamray3794
    @shivamray3794 Před 4 měsíci

    did you cleared the CHECKED from your HTML code.?

  • @jheanbrizadao2429
    @jheanbrizadao2429 Před 10 měsíci +3

    Valeu um vídeo pequeno , mas com muito conhecimento em css e html

    • @carlosbarross
      @carlosbarross Před 8 měsíci

      Será que aprende algo sem mesmo explicar as tags?? Sei o básico de html e CSS ksks

  • @AesSedai2020
    @AesSedai2020 Před 7 měsíci

    This is really pretty, however, with more images, it starts to stutter, any idea how to solve this? thx

  • @GupthaKreations
    @GupthaKreations Před 9 měsíci +1

    This is will be much better if it was responsive. btw nice work. ❤

    • @webuitutorials
      @webuitutorials  Před 9 měsíci +1

      Thanks! I might post an updated version but it should be very easy to do it by yourself there is not much to change

    • @pauldanielvanschevikhoven4551
      @pauldanielvanschevikhoven4551 Před 8 měsíci +8

      @media (max-width: 766px) {
      .wrapper {
      margin-top: 400px;
      }
      .container {
      height: 1200px;
      flex-direction: column;
      }
      .slide {
      width: 400px;
      align-items: flex-start;
      }
      .slide > .row {
      flex-direction: column;
      }
      .slide > .row > .icon-1,
      .icon-2,
      .icon-3 {
      width: 50px;
      }
      .slide {
      height: 80px;
      }
      .slide > .row > .description {
      height: 500px;
      width: 400px;
      }
      input:checked + label {
      height: 600px;
      width: 400px;
      }
      }
      Change this, but watch the width's and height's. I've changed some for my project

    • @GupthaKreations
      @GupthaKreations Před 8 měsíci

      @@pauldanielvanschevikhoven4551 thanks g 🖤

    • @thomasbaker2155
      @thomasbaker2155 Před 8 měsíci

      @@pauldanielvanschevikhoven4551 legend

    • @lukenaylor6458
      @lukenaylor6458 Před měsícem

      I think for the purpose of showcasing "the trick", it makes sense to cut down on other complications. Responsive design is an orthogonal topic and a "solved problem" really. Overall I think this was a brilliantly designed video concept.

  • @modyahmed783
    @modyahmed783 Před 10 měsíci

    Nice video, using radio like that was actually really clever.
    When clicking on label and it starts expanding (the widths increases), some times the expanding animation is rigid and it stutters, and idea how to fix that ?

  • @robertzohrabyan3316
    @robertzohrabyan3316 Před 10 měsíci +2

    Thank you, can you please make it also responsive?

    • @pauldanielvanschevikhoven4551
      @pauldanielvanschevikhoven4551 Před 8 měsíci +2

      @media (max-width: 766px) {
      .wrapper {
      margin-top: 400px;
      }
      .container {
      height: 1200px;
      flex-direction: column;
      }
      .slide {
      width: 400px;
      align-items: flex-start;
      }
      .slide > .row {
      flex-direction: column;
      }
      .slide > .row > .icon-1,
      .icon-2,
      .icon-3 {
      width: 50px;
      }
      .slide {
      height: 80px;
      }
      .slide > .row > .description {
      height: 500px;
      width: 400px;
      }
      input:checked + label {
      height: 600px;
      width: 400px;
      }
      }
      Change this, but watch the width's and height's. I've changed some for my project

  • @jondo-vh8tx
    @jondo-vh8tx Před 8 měsíci

    amazing

  • @zongoboy
    @zongoboy Před 8 měsíci

    clever

  • @Mourad2112
    @Mourad2112 Před 5 měsíci

    Can you please help for making it responsive (mobile devices )

  • @user-dp4gv9mu3k
    @user-dp4gv9mu3k Před 5 měsíci

    How can i make it responsive for mobile screen ? in what part can I add that css part?

  • @mhd_Code
    @mhd_Code Před 5 měsíci

    👏

  • @BillyBober
    @BillyBober Před 9 měsíci

    Can you do something similar to this with a tags if I wanted to have an image description but when you click on the tabs it brings you to a new page?

  • @usmoxandev795
    @usmoxandev795 Před 7 měsíci

    Awsome!! Is this VS Code??

  • @shazamshakeel6577
    @shazamshakeel6577 Před 8 měsíci

    Is there any library for reactjsfor these type of carousel ?

  • @TechCrafts-12
    @TechCrafts-12 Před 11 dny

    can they animate like slide on their own

    • @webuitutorials
      @webuitutorials  Před 4 dny

      You can add some JavaScript which changes the selected radio button after some time to achieve that effect

  • @Yesterday_i_ate_rat
    @Yesterday_i_ate_rat Před rokem

    Awesome, ❤❤
    Btw, which ide are you using in the video ?

  • @marjhuncantago9476
    @marjhuncantago9476 Před 8 měsíci

    Now, how can I make link inside the description?

  • @pushkalkishore1184
    @pushkalkishore1184 Před rokem +2

    Where is the source code of the video. Please upload the GitHub link for the source code

    • @webuitutorials
      @webuitutorials  Před rokem +1

      Here you go: github.com/webtutorialsw/css_sliding_cards

  • @sanjulgupta
    @sanjulgupta Před 4 měsíci

    great use
    great this is that it's not javascript

  • @andyl9920
    @andyl9920 Před 8 měsíci

    Can you explain why 'checked' was deleted from 2,3, and 4 but left on 1 in html?

    • @webuitutorials
      @webuitutorials  Před 8 měsíci

      The inputs are radio inputs, that means only one can be checked at any time. That creates the effect: if you check a new one, the old one gets unchecked automatically. So only the slide that should be open on page load should have the vale checked

  • @ColdbloodFlower
    @ColdbloodFlower Před 8 měsíci

    Honestly I am feeling a bit stupid but it just doesn't seem to work on my end. I have tried several things but VS always tells me that the input tags need closing.

    • @webuitutorials
      @webuitutorials  Před 8 měsíci

      It shouldn't be a problem using html. Did you compare your code with the source code I provided? The code should work in your webbrowser, too

  • @Ben94
    @Ben94 Před 8 měsíci

    Can you share the custom cursor pack you have? I really like how it looks

    • @webuitutorials
      @webuitutorials  Před 8 měsíci +2

      The cursor is the default one from the KDE Breeze theme

    • @Ben94
      @Ben94 Před 8 měsíci

      @@webuitutorials thank you very much :D

  • @Artstd0099
    @Artstd0099 Před 5 měsíci

    which screen recorder do yo use???

  • @estrelladeaurora6065
    @estrelladeaurora6065 Před 3 měsíci

    in NVIM omg...

  • @piedosopedro8117
    @piedosopedro8117 Před 7 měsíci

    dang

  • @ifeanyinnaemego
    @ifeanyinnaemego Před 8 měsíci

    I need your setup for vim

  • @AYYUB1Y
    @AYYUB1Y Před 7 měsíci +1

    Pc and mobile plz😢

  • @riphatrashid
    @riphatrashid Před rokem

    It would be great if you could provide the source of the images

  • @Aman-kf6wx
    @Aman-kf6wx Před 7 měsíci

    bro i cant put image in card

  • @DirtyFan2
    @DirtyFan2 Před 7 měsíci

    Can this land me a front end job if i know this + make a few beautiful websites with different animations like this etc? Also do i need to know this from scratch or does every developer search everything from the web? I can create a website but i feel like i am taking 99% from different resources, like a puzzle game. Am i doing this correctly??

    • @webuitutorials
      @webuitutorials  Před 7 měsíci

      Hey yeah that's normal that's how I worked some time ago. But with every project you do you learn and memorize additional things. For a job the result is more important but having to search things up might take longer for the projects to finish. Try to learn from scratch and you'll be able to recreate what's on your mind without the need to do excessive research

    • @DirtyFan2
      @DirtyFan2 Před 7 měsíci

      Too much learning, development is such a broad field i don't feel like learning everything from scratch. I feel like excessive research is more fun but idk. Maybe IT is not for me. I am currently in an internship as a web developer ( super easy project ) at a vocational school, but i am soon graduating and i will apply myself to university of applied sciences, but idk if i want to take IT major this time. Thanks for the reply =) @@webuitutorials

  • @deviques
    @deviques Před 10 měsíci

    Why does the '.card' have 2 border-radius settings?

    • @webuitutorials
      @webuitutorials  Před 10 měsíci

      you're right, it's a mistake, just take the second one

  • @sunnyheheheh9401
    @sunnyheheheh9401 Před 8 měsíci

    how and where can I learn this stuff, I want to make these stuff on my own, does it work like exploring css and html only my own by just building stuff and googling at the same time or is there some resources for those,

    • @Tomo-gi7di
      @Tomo-gi7di Před 8 měsíci

      CZcams is your best friend! Thousands of hours worth of free content that you can use to learn.

    • @webuitutorials
      @webuitutorials  Před 8 měsíci +1

      Try to replicate small code snippets from other people and try to understand them. After some time you will be able to adjust them to your own needs or build the things you imagine on your own. Watching some beginner tutorials for HTML and CSS on CZcams would make the process much easier

    • @xtan-yt
      @xtan-yt Před 8 měsíci

      You can't draw even though you know how to use a pencil. Try to convert UI designs to code. Also don't look at the code !

  • @siMeowGamimg
    @siMeowGamimg Před 9 měsíci

    Railwind version please

  • @NIW3.
    @NIW3. Před 8 měsíci

    where are the images?

  • @marjhuncantago9476
    @marjhuncantago9476 Před 8 měsíci

    my text didn't turn into number. HELPPPPPPPPPPPPPPPPP!

    • @webuitutorials
      @webuitutorials  Před 8 měsíci

      Send me a link to your code and tell me your browser I will try to help you

  • @grischpel
    @grischpel Před 9 měsíci

    better is width: fill-available;

  • @marjhuncantago9476
    @marjhuncantago9476 Před 8 měsíci

    what the HECK XD.
    I tried to copy/paste the code from Github to myCSS and the result is same.
    the Text isn't fixing....

  • @Thisismuhiuddin
    @Thisismuhiuddin Před 8 měsíci

    Is it responsive?

    • @webuitutorials
      @webuitutorials  Před 8 měsíci

      Probably not, wasn't the main goal. Make it if you need, should be very simple

  • @_Sunfall
    @_Sunfall Před 8 měsíci

    What is a code editor?

  • @Ked_gaming
    @Ked_gaming Před 8 měsíci +1

    I'm pretty sure this is copied from some codepen, how does this make it into a 100k+ views video is beyond me

  • @othoapproto9603
    @othoapproto9603 Před 8 měsíci

    fun, but why would I make my views work so hard to view my work?

  • @seshdbn
    @seshdbn Před 9 měsíci

    So this is where Codepens go to die. Bet.