Can I Create This Simple CSS Hover Animation?

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ก.ค. 2024
  • This simple split text animation seems really straightforward, but it is more complicated than it looks. In this video I will be attempting to create this animation live for the first time ever.
    📚 Materials/References:
    GitHub Code: github.com/WebDevSimplified/c...
    Reference CodePen: codepen.io/bosworthco/pen/RjBvgw
    🌎 Find Me Here:
    My Blog: blog.webdevsimplified.com
    My Courses: courses.webdevsimplified.com
    Patreon: / webdevsimplified
    Twitter: / devsimplified
    Discord: / discord
    GitHub: github.com/WebDevSimplified
    CodePen: codepen.io/WebDevSimplified
    ⏱️ Timestamps:
    00:00 - Introduction
    01:08 - HTML
    02:28 - Text CSS Attempt #1
    11:40 - Text CSS Attempt #2
    21:05 - Animation CSS
    #CSSAnimation #WDS #CSS

ความคิดเห็น • 107

  • @beinyourguard
    @beinyourguard 2 ปีที่แล้ว +73

    love these series, the way you approach problems really creates a way for us to understand and tackle problem on our own

  • @rotorial8740
    @rotorial8740 2 ปีที่แล้ว +43

    I love the CSS re-creation videos, don’t stop creating these! These are very fun to watch as a programmer and entertain me a lot

    • @andradegilmar
      @andradegilmar 2 ปีที่แล้ว +3

      Warning ⚠️⚠️⚠️ this is not Kyle 👆🏾

  • @mildmuffin101
    @mildmuffin101 2 ปีที่แล้ว +10

    Maaan these videos are addictive, great job mate. I think you should add a section where you go through the code of the original demo and show us how the person approach the problem different to you and again great video

  • @theatypicaldeveloper
    @theatypicaldeveloper 2 ปีที่แล้ว +2

    great work, loved the way you've captured the implementation attempts.

  • @jsherborne92
    @jsherborne92 2 ปีที่แล้ว

    Fantastic content, big fan of the live sessions, really insightful for learners!

  • @OmarJIBAR
    @OmarJIBAR 2 ปีที่แล้ว

    These series are super informative. Thanks a lot 👍

  • @Xeratas
    @Xeratas 2 ปีที่แล้ว +2

    that was extremly great video. would watch more of this

    • @andradegilmar
      @andradegilmar 2 ปีที่แล้ว +1

      Warning ⚠️⚠️⚠️ this is not Kyle 👆🏾

  • @avneet12284
    @avneet12284 2 ปีที่แล้ว

    Superb stuff, Kyle - took me a while to understand how the split text::after was working with bottom and flex 💪

  • @noahr1545
    @noahr1545 2 ปีที่แล้ว +1

    I love these videos! I've learned so much from you! Thanks!

    • @thegodlydemon2605
      @thegodlydemon2605 2 ปีที่แล้ว

      Warning ⚠️⚠️⚠️ this is not kyle ☝🏾

  • @ceasargamiing
    @ceasargamiing 2 ปีที่แล้ว

    that was really awesome

  • @user-not-found-97
    @user-not-found-97 2 ปีที่แล้ว +3

    Useful content as always.. By the way we can type var by only typing -- instead of typing whole var. It's okay if you guys know already this

  • @incubusholic
    @incubusholic 2 ปีที่แล้ว

    i love that you created re-created CSS creation.

  • @ninjacodertech
    @ninjacodertech 2 ปีที่แล้ว

    these videos are great!

  • @carlocb
    @carlocb 2 ปีที่แล้ว +1

    Well done!

  • @BenRogersWPG
    @BenRogersWPG 2 ปีที่แล้ว

    This is the best!

  • @erikslorenz
    @erikslorenz 2 ปีที่แล้ว

    I like this stuff. Awesome!

  • @ahndeux
    @ahndeux 2 ปีที่แล้ว

    These videos are very interesting because it shows your thought process in the making of the animations. The issue is you need to slow down 10x for most normal human beings.

  • @hassaneoutouaya
    @hassaneoutouaya 2 ปีที่แล้ว

    THANK YOU!

  • @StellarWeb008
    @StellarWeb008 2 ปีที่แล้ว

    In the beginning I had zero idea about how to make this animation. And when you said that we can use only one element my reaction was "wow!! but How!!"

  • @evee9498
    @evee9498 2 ปีที่แล้ว

    I love this VDO

  • @filipm8069
    @filipm8069 2 ปีที่แล้ว

    Wow stumbled on your channel a few days ago, great work, love how well you tell about what you are doing!

  • @tuynpham308
    @tuynpham308 2 ปีที่แล้ว

    great tutorial ! :)

  • @Leada
    @Leada 2 ปีที่แล้ว

    Thanks so much for the series :) can we get a "hmm hmm hmm"-counter for the next one xD

  • @keremardicli4013
    @keremardicli4013 2 ปีที่แล้ว

    This is what I like about css. No one is perfect with it. :D

  • @Crowbar
    @Crowbar 2 ปีที่แล้ว

    I love how many times he says "So nothing is changing which is exactly what we want"

  • @lilrex2015
    @lilrex2015 2 ปีที่แล้ว

    I love these videos. This was 40 min well spent. I would suggest tho, maybe break it into 2 parts. Part 1 where you just make it work and part 2 where you refine the code so the videos arent so long. Just a thought.

  • @mghafari4871
    @mghafari4871 2 ปีที่แล้ว

    Wow lets gooo😍😍❤💚

  • @jklmmop
    @jklmmop 2 ปีที่แล้ว +6

    Perhaps a thought for a video or future videos; You mentioned doing it all in CSS as a challenge, my first thought was how else would you approach it. So the video idea might be how to create that in various ways... just an idea. Awesome video! Thanks

    • @koengreen2540
      @koengreen2540 2 ปีที่แล้ว +1

      You could create a class in js. And do it with that.

  • @yoavben-dror5686
    @yoavben-dror5686 2 ปีที่แล้ว

    just wanna say I know nothing about web, CSS, javascript, or Html but I watched the whole video while not understanding anything and I enjoyed it

  • @kumarsaurav2901
    @kumarsaurav2901 2 ปีที่แล้ว

    What is the extension that brought animation attribute with its potential parameters names?

  • @youssefabdulaziz2133
    @youssefabdulaziz2133 2 ปีที่แล้ว

    adding "alternate-reverse" to the animation would solve the reversing problem or save you the hustle sorta say right?

  • @alincupunct
    @alincupunct 2 ปีที่แล้ว

    How can you link to an URL when clicking one of the list items? I tried data-url inside the , doesn't seem to work, adding an tag breaks the animation.

  • @matiasalejandromab
    @matiasalejandromab 2 ปีที่แล้ว

    in the original page, how does the bar that splits the text in half slows down as it reaches the end of it´s length? it´s not like it appears in the center of the text and expands to the end at a regular speed, but instead it is faster in the beginning and slower at the end.

  • @hurleywflow2227
    @hurleywflow2227 2 ปีที่แล้ว

    Thanks 🙏🏼

    • @andradegilmar
      @andradegilmar 2 ปีที่แล้ว

      ⚠️⚠️⚠️ this is not Kyle 👆🏾

  • @MK-hd6oj
    @MK-hd6oj 2 ปีที่แล้ว

    @Web Dev Simplified, at 7:00, is it possible that you have lesser than half of the text showing up bcoz your font-size was set to 1.5rem ( at 3:10 ), so half the height is actually 0.75rem and not 0.5em ?

  • @penguin3427
    @penguin3427 2 ปีที่แล้ว

    good vid

  • @anonymoususer5492
    @anonymoususer5492 2 ปีที่แล้ว

    Thank you Kyle for this amazing video , it would be very helpful if you could make a video on redux

  • @utvikler-no
    @utvikler-no ปีที่แล้ว

    At 25 and 36 min.. you can add transition on both the before and after cssquery.. It will then animate back and forth ..
    Btw thanks for a good tutorial

  • @attorneyBG
    @attorneyBG 2 ปีที่แล้ว

    Please show how to make complex form with css like the Schengen visa application form.

  • @FeederGG
    @FeederGG 2 ปีที่แล้ว

    okaty i really need help its taking me hours to try to make it an acnhor and go to home and about pages , but the anchor link is only working on the higher half of the word home,about etc , and the lower half isnt working... idk what to do am so stuck , will be grateful if anyone helps

  • @start662
    @start662 2 ปีที่แล้ว

    Why would you give the li's and ul classes if you can just select the element?

  • @skillzorskillsson8228
    @skillzorskillsson8228 2 ปีที่แล้ว

    Another way to remove half of text is by using -webkit-mask. Not sure if that would make it easier but thats another way to do it atleast

  • @DGronki
    @DGronki 2 ปีที่แล้ว +5

    Without line inside we can achieve the same by using clip-path in one single html element

    • @andradegilmar
      @andradegilmar 2 ปีที่แล้ว

      Warning ⚠️⚠️⚠️ this is not Kyle 👆🏾

  • @samirkhatri-dev
    @samirkhatri-dev 2 ปีที่แล้ว

    A video on responsive navbar using vanilla css, js

  • @sneaky-Jay
    @sneaky-Jay 2 ปีที่แล้ว

    I do not think this is a failed attempt cuz for navigation inside the list elements you would have still had to put the anchor tags so the navigation would point you somewhere sooo this is actually straight good for production... just replace spans with anchor tags :D.

  • @schlingelgen
    @schlingelgen 2 ปีที่แล้ว

    Title: Simple Hover Animation
    Video Intro: See how I approach complex problems

  • @gastonkonstantinides9926
    @gastonkonstantinides9926 2 ปีที่แล้ว +1

    Could it work the first way if you use a transparent gradient? I think it would be easier 🤔

    • @ninjacodertech
      @ninjacodertech 2 ปีที่แล้ว +1

      try it and send codepen link?

  • @thegodlydemon2605
    @thegodlydemon2605 2 ปีที่แล้ว +1

    How do u find the motivation to continue when you do a project ?

    • @andradegilmar
      @andradegilmar 2 ปีที่แล้ว +1

      Warning ⚠️⚠️⚠️⚠️ this is not Kyle 👆🏾

  • @mvrius2924
    @mvrius2924 2 ปีที่แล้ว +1

    When I see all those cool things done in CSS I'm feeling like a beginner =))

    • @andradegilmar
      @andradegilmar 2 ปีที่แล้ว

      Warning ⚠️⚠️⚠️ this is not Kyle 👆🏾

  • @jamespashton
    @jamespashton 2 ปีที่แล้ว

    What about a clip path on the ::before, ::after and a text-decoration: line-through; on your li it would accomplish what you wanted without any extra html

    • @willexco2001
      @willexco2001 2 ปีที่แล้ว

      I agree about clip path, it's IMO much better, but line-through wouldn't permit the growing animation.

  • @CulturalToast
    @CulturalToast 2 ปีที่แล้ว

    Couldn't you have used clip-path to show the bottom half of before and top half of the element instead of messing around with the half height, and later creating another element?

  • @tim_fully
    @tim_fully 2 ปีที่แล้ว

    You lost me when you said css lol.
    Was good watching to you try to figure it out on the fly 👌

  • @4gentY
    @4gentY 2 ปีที่แล้ว

    Good to know that even an experienced dev still has no idea what's going to happen when they refresh the page

  • @memo7878
    @memo7878 2 ปีที่แล้ว

    You actually sometimes have to add transition on the non hover and the hover state

    • @andradegilmar
      @andradegilmar 2 ปีที่แล้ว

      Warning ⚠️⚠️⚠️ this is not Kyle 👆🏾

  • @peteremad5228
    @peteremad5228 2 ปีที่แล้ว

    simply you can achieve the same result by clip-path property and inset value on the text itself inset(0,0,50%,0) and on before that it's content is the data atrr clip-path: inset(50%,0,0,0) and then do the animation

  • @ricardoayala5869
    @ricardoayala5869 2 ปีที่แล้ว

    My background is white?
    Please help me

  • @Wizatek
    @Wizatek 2 ปีที่แล้ว

    Back in the day, the late 90's we would just use gif's as mouseover image to get to this result

  • @nujdhungana
    @nujdhungana 2 ปีที่แล้ว +1

    cool

    • @andradegilmar
      @andradegilmar 2 ปีที่แล้ว

      Warning ⚠️⚠️⚠️ this is not Kyle 👆🏾

  • @theideaguy4532
    @theideaguy4532 2 ปีที่แล้ว +1

    After watching this, I’m going to change my CSS skill level on my resume from Intermediate back to beginner... Cos I obviously don’t know shit😂

  • @Michael-Martell
    @Michael-Martell 2 ปีที่แล้ว

    @thenetninja this seems like it’s be your style.

  • @Ilidan156
    @Ilidan156 2 ปีที่แล้ว

    How can i create unlimited growing object when i hover over cursor.

  • @arischvaranpuvanesvaran8875
    @arischvaranpuvanesvaran8875 2 ปีที่แล้ว

    Kyle - "Now nothings changing that's exactly what we want".
    Me - Huh?

  • @arshali4635
    @arshali4635 2 ปีที่แล้ว

    how the hell is that second span not appearing on screen cause mine is. I got frustated with the main-text span, how is it you're isn't showing and mine is

    • @arshali4635
      @arshali4635 2 ปีที่แล้ว

      also the main-text span is not visible once hovered, but how you're isn't showing before hovering, and the display flex on split-text is not affecting the before element but it is effecting the span main-text

    • @arshali4635
      @arshali4635 2 ปีที่แล้ว

      ok, my bad. IF any one had the same problem, just check in html file if you have written home in split-text span, if yes remove that, we only need it in main-text

  • @CodingAbroad
    @CodingAbroad 2 ปีที่แล้ว

    How can I get hair as perfect as yours?

  • @MelTurner
    @MelTurner 2 ปีที่แล้ว +4

    To avoid having to change the HTML to add the split line, you could have used the background with a linear-gradient as the third element with both ::before and ::after
    ```
    background: linear-gradient(
    to bottom,
    transparent 45%,
    var(--hover-color) 45% 55%,
    transparent 55% 100%
    );
    color: transparent;
    ```

  • @zlatanibrahimovic6072
    @zlatanibrahimovic6072 2 ปีที่แล้ว

    s1mple cs and simple css :) (Oleksandr "s1mple" Kostyliev)

  • @rahanajai6467
    @rahanajai6467 2 ปีที่แล้ว

    19:26

  • @josuevalar6465
    @josuevalar6465 2 ปีที่แล้ว

    Simple=40min video xD

  • @brytonduropan6741
    @brytonduropan6741 2 ปีที่แล้ว +1

    i only get 50% of what's going on here, but interesting none-of-the-less

  • @jjfattz
    @jjfattz 2 ปีที่แล้ว

    If you add "display:block" to the :before and :after elements, they will have an auto width/height.

  • @user-ms8ei9le7x
    @user-ms8ei9le7x 2 ปีที่แล้ว

    • @andradegilmar
      @andradegilmar 2 ปีที่แล้ว +1

      Warning ⚠️⚠️⚠️ this is not Kyle 👆🏾

    • @user-ms8ei9le7x
      @user-ms8ei9le7x 2 ปีที่แล้ว

      @Whatsapp me
      ♰❶❸⓿❷❺❽❸⓿❻❻❹ thank , i`am 🎓

    • @user-ms8ei9le7x
      @user-ms8ei9le7x 2 ปีที่แล้ว

      conects google Meet ✔

  • @aaron8989
    @aaron8989 2 ปีที่แล้ว +1

    Hmm hmm hmmmmm

  • @sharp2229
    @sharp2229 2 ปีที่แล้ว

    bruh
    animation-direction: both;

  • @yusufmacit5066
    @yusufmacit5066 2 ปีที่แล้ว

    kanka bakmadan yap bi kere de be

    • @andradegilmar
      @andradegilmar 2 ปีที่แล้ว

      Warning ⚠️⚠️⚠️ this is not Kyle 👆🏾

  • @whiteender3153
    @whiteender3153 2 ปีที่แล้ว

    hmm hmm hmmmm

  • @fullstacklegacydev8843
    @fullstacklegacydev8843 2 ปีที่แล้ว +1

    uh...

    • @andradegilmar
      @andradegilmar 2 ปีที่แล้ว

      Warning ⚠️⚠️⚠️ this is not Kyle 👆🏾

  • @mikeba3809
    @mikeba3809 2 หลายเดือนก่อน

    This is so far beyond me... LOL

  • @justsample9185
    @justsample9185 2 ปีที่แล้ว

    the result is far away from the original codepen

  • @user-yl1dp2hw9n
    @user-yl1dp2hw9n 2 ปีที่แล้ว

    Please help Ukraine protect the sky from the Russians. Too many bombs have been dropped on our cities. We fight like lions, but we need your help. Please do something to ask NATO to protect our skies, save the lives of our women and children.

  • @jeihun_
    @jeihun_ 2 ปีที่แล้ว

    You really used the word "simple"... yea...

  • @adrianroethlisberger4626
    @adrianroethlisberger4626 2 ปีที่แล้ว +5

    How to create this SIMPLE animation, video length 40 minutes....

    • @hyunseunglee9484
      @hyunseunglee9484 2 ปีที่แล้ว +5

      SIMPLE tutorials that shows us how to make SIMPLE animation is only showing us the SIMPLE code and we are just copying the SIMPLE code for SIMPLE uses. The reason why WDS videos is better than just a SIMPLE tutorial is because there are explanations for brainstorming, testing, optimizing, comparing, rethinking and much more for those who are not yet experienced or just simply curious how others think. If you are in need of SIMPLE codes and SIMPLE explanations, you should just check out the Codepen and copy the SIMPLE code to implement the SIMPLE animations to use them SIMPLY in SIMPLE projects instead of learning the process of coding instead of telling it in the comments how long the video was.

    • @sicfxmusic
      @sicfxmusic 2 ปีที่แล้ว

      You can leave if you have more important things to do....

  • @aristonia1991
    @aristonia1991 2 ปีที่แล้ว

    This is a great video, but i am really surprised to see you use Google Chrome for development tools, every developer knows Firefox is superior with this,.

  • @CJXXxxUnknown
    @CJXXxxUnknown 2 ปีที่แล้ว

    Hmm hmm hmmmmm