Spinners, Loaders, and Junk - CSS Animations

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 ม.ค. 2025

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

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

    I noticed the reason why spinner-2 was behaving bad was because you had the same properties for the CSS before and after pseudo-elements so when you applied the "bounce" animation in the &:before element on the same spinner-2 class and also the same "bounce" animation on the "&:before, &:after" the browser prioritized the animation properties defined inside the "&:before, &:after" for ".spinner-2" and the same animation was applied to both the "before" and "after" elements for ".spinner-2".
    I sorted out those two mad balls by separating the "&:before, &:after" elements applying all the properties found in the original chained "&:before, &:after" up until the "margin-left" property, these were inserted on top of the original single "&:after" properties.
    Then I applied the animations for the before and after individually, naming them differently and tweaking so the balls dont cross the bigger circles boundaries.
    Here is the fixed version, I forked it but made it clear Travis from Dev-Tips made the original: codepen.io/Flashpeed/pen/qNLBXV?editors=1100

    • @OfficialDevTips
      @OfficialDevTips  8 ปีที่แล้ว +1

      Thanks for doing this. That makes a lot of sense. Upvote!

  • @maxwheeler935
    @maxwheeler935 8 ปีที่แล้ว +27

    Challenge accepted! codepen.io/pentopaper/pen/vKvVEL
    1) Changed the openings in the ::before and ::after elements so there wouldn't be a gap in the back
    2) Adjusted chomp to have a difference of 50° each, for some reason 45° seemed to leave a tiny gap between the "jaw" when it closed
    3) Added a .cover to cover the dots Kurt has already eaten & reload them after each pass.
    4) The animation pauses a bit after it makes each pass.
    5) [EDIT] Also, forgot to mention that I solved the problem with it flipping by assigning Kurt a set width (height couldn't hurt either).

  • @phillhub
    @phillhub 8 ปีที่แล้ว +9

    Travis, the guy getting a backend developer interrested in design :)

  • @WouterHamal
    @WouterHamal 8 ปีที่แล้ว +1

    Wow that turkey radar thing got me :'). Awesome to see you having fun with this. Thanks for the videos, great as always.

  • @chln9428
    @chln9428 3 ปีที่แล้ว

    I simply don't get how is it that this channel doesn't have like millions/billions of followers.. just check the like-dislike ratio, it's insane! Thanks for the content. I'm so glad I found your channel; 5 years later this is still so useful and relevant.

  • @uilifecteau4841
    @uilifecteau4841 8 ปีที่แล้ว

    Thanks for these tips dude. They're really 'useful' is probably the best compliment I can give. Saying they're 'entertaining', 'engaging' or 'informative' (which they are) doesn't quite communicate the value they inherently offer. Than you.

    • @OfficialDevTips
      @OfficialDevTips  8 ปีที่แล้ว

      I appreciate your encouragement my friend. Thanks for watching :)

  • @sam.kendrick
    @sam.kendrick 7 ปีที่แล้ว +1

    Wow! I really appreciate your tutorials. I can safely say that you've opened up CSS for me! I used to fear and loathe it, but now it's something I enjoy doing. In fact, codepen has become a hobby for me. Thank you!

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

    lmao i love this series. you're so entertaining. i watch these in my free time haha

  • @optimusdebugger9638
    @optimusdebugger9638 7 ปีที่แล้ว

    One thing I do like particularly is the way you are having fun doing this thing! Awesome! Keep it up!!

  • @schmitch37
    @schmitch37 7 ปีที่แล้ว

    These videos are awesome. I am really enjoying the lessons and the fact that you don't take them too seriously.

  • @nChauhan91
    @nChauhan91 8 ปีที่แล้ว +3

    Awesome video, i never realized making such cool animations could be this simple. Thanks 😊

  • @excitedbone4276
    @excitedbone4276 3 ปีที่แล้ว

    never thought i would have so much fun with CSS in my life ... what a time to be alive :) , thanls for the video :D

  • @m081779
    @m081779 8 ปีที่แล้ว

    Dude, you had me cracking up this morning, especially with the turkey radar. Awesome way to start my day!

    • @OfficialDevTips
      @OfficialDevTips  8 ปีที่แล้ว

      Glad you had fun Marco, thanks for watching :)

  • @Asdjke
    @Asdjke 8 ปีที่แล้ว +64

    Dat boing doe

  • @AutyMangaKa
    @AutyMangaKa 8 ปีที่แล้ว +10

    You made me laugh and learn. Thanks Travis :)

  • @TheMalni
    @TheMalni 8 ปีที่แล้ว +12

    The atmosphere in this video is just a mood-raiser! I laughed loudly along, even my husband asked me what is so funny that I'm watching :D

    • @victornaut
      @victornaut 8 ปีที่แล้ว

      Can you tell my why css in this video look so... weird?

    • @TheMalni
      @TheMalni 8 ปีที่แล้ว +1

      +thronecode Because Travis is using Jade ;)

    • @TheMalni
      @TheMalni 8 ปีที่แล้ว +1

      +thronecode and SASS, but you should really watch more videos on his channel, there you will find all the answers ;)

    • @victornaut
      @victornaut 8 ปีที่แล้ว

      TheMalni Oh! Thank you so much Malni! Gonna add it to my list of things to learn :)

  • @bstnbstn
    @bstnbstn 8 ปีที่แล้ว

    Dude, turkey radar made me laugh so much :)! Because of that funny moments it's much easier to learn and remember things. I'm glad to learn from your videos, your job is cool - HIGH five :)!

  • @YuukiRusGames
    @YuukiRusGames 8 ปีที่แล้ว

    0 to 0% working as start and endpoints is very normal. Think of it this way, when you add 1 to 360 in most editors, it will become 1. In this way it actually reads 0 as the same as 360 in a lot of cases. If you have a start and endpoint that are both 0 or 360 or in this case 0 or 0, the animation will work the same as if you set 0 and 100.
    I don't know if I explained this clearly, but that's my mileage on this topic. I've had this happen a lot when working with rotations.

  • @MrHumanwarrior
    @MrHumanwarrior 6 ปีที่แล้ว

    Damn, I haven't been so much entertained, during a learning session, since never. Great job.

  • @HappyAnimals3D
    @HappyAnimals3D 6 ปีที่แล้ว

    I really enjoy every video you do. You make learning complicated stuff much easier!

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

    Thank you travis! and it's so refreshing to see pug and sass as it should be written

    • @OfficialDevTips
      @OfficialDevTips  8 ปีที่แล้ว +1

      haha, Love me some pre-processed code :)

  • @davejs
    @davejs 8 ปีที่แล้ว +4

    lol, the timer going off made this much more enjoyable to watch

    • @OfficialDevTips
      @OfficialDevTips  8 ปีที่แล้ว

      haha, yea, that was a fun little thing. Stressful tho. It's like waiting to get slapped in the face. lol

    • @davejs
      @davejs 8 ปีที่แล้ว

      You should have Los slap you when your time is up (reminiscent of the CSS Basics series).

    • @senorcactoni6979
      @senorcactoni6979 7 ปีที่แล้ว

      hctaw ot elbayojne erom hcum siht edam ffo gniog remit eht, lol

  • @JorgheAyala
    @JorgheAyala 7 ปีที่แล้ว

    6:07 Its because if you rotate 360 deg you end up in the same point, that's why its not "animating"

  • @noomla
    @noomla 8 ปีที่แล้ว +1

    I can watch these videos all day. I feel like we are working on this together.

  • @bryanoverbey
    @bryanoverbey 6 ปีที่แล้ว +1

    at 5:30 use transition-direction: alternate to easily make it go forwards and backwards repeatedly

  • @princedube8332
    @princedube8332 8 ปีที่แล้ว

    DUDE YOU'RE SO COOL WITH THIS STUFF... THANKS FOR SHOWING US

  • @becreative7072
    @becreative7072 7 ปีที่แล้ว

    thanks alot man your videos are awesome can't believe someone is sharing these kind of basics on youtube hatts off

  • @happydeux2254
    @happydeux2254 7 ปีที่แล้ว

    @33:21didn't you say earlier you can't give inline elements dimensions?
    Thanks for all the content dude, I'm teaching myself HTML and CSS and your videos are excellent!

  • @augustuscolumbano
    @augustuscolumbano 7 ปีที่แล้ว

    You are fun to watch! Learned a lot and can't wait to use them on my nexr project. Nice vid!

  • @praizerskater
    @praizerskater 7 ปีที่แล้ว

    I had no idea that css was this powerful dang this is awesome!

  • @guigrillo101
    @guigrillo101 8 ปีที่แล้ว +48

    u are so happy. I love it
    Damnn this sound!!
    haha

    • @Tevmina
      @Tevmina 6 ปีที่แล้ว

      gays are happy people!

  • @JeremyBoulerice
    @JeremyBoulerice 7 ปีที่แล้ว

    yoooo, I love this channel. That boing timer was funny

  • @karlrombauts4909
    @karlrombauts4909 8 ปีที่แล้ว

    First video of yours I watched, I loved it, and immediately subscribed. Keep doing your thing, its awesome :)

  • @richalgeni
    @richalgeni 8 ปีที่แล้ว

    There is a fine line between genius and insanity!

  • @hemantparashar8781
    @hemantparashar8781 8 ปีที่แล้ว

    This is called real passion. Loving n enjoying what you do and you're damn good at it. Thanks for the videos dude. Love em n you.

    • @OfficialDevTips
      @OfficialDevTips  8 ปีที่แล้ว

      Thanks Hemant, I appreciate the love :)

  • @victornaut
    @victornaut 8 ปีที่แล้ว +16

    4:25 - JUMP SCAPE OF THE YEAR

  • @rickjancawaling6113
    @rickjancawaling6113 8 ปีที่แล้ว

    another amazing video from trav! you are always awesome!

  • @samwisegrangee
    @samwisegrangee 8 ปีที่แล้ว +1

    I like how you said "This is raw, uncut" and then immediately there was a cut. ;)

  • @darkoefremovmkd
    @darkoefremovmkd 8 ปีที่แล้ว

    You could've gone with rotate(45deg) and it would've been perfect, cause each individual border with color transparent is cutting off 1/4 of the circle, and since you're moving the bottom and the top part by half of the angle of that, 45deg is the answer, and you're gonna get much nicer animation.
    Anyway it was really exciting watching this, I could've never come up with something like that :D

  • @ricefai
    @ricefai 8 ปีที่แล้ว

    Thanks for the sudden scary sound at 4:41 LOL

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

    Can't thank you enough for this absolutely invaluable resource :)

  • @youWhattaFtube
    @youWhattaFtube 8 ปีที่แล้ว +1

    I am a simple man. I see Travis i press like:)
    Greetings from Russia)

  • @83th3l
    @83th3l 8 ปีที่แล้ว

    The boing! And the rapid lower lip chomp had me rolling.

  • @noone-gh1nr
    @noone-gh1nr 6 ปีที่แล้ว

    Great video. I'm watching at work so it was extremely hard not to laugh. Thanks for the insights

  • @lenaryan
    @lenaryan 7 ปีที่แล้ว

    omg, the second spinner just made my day :D
    luv ya, Travis, you're motivating and super cool, and all the stuff you show is very useful and amazing ;)
    greetings from Russia!

  • @user-ui3og1bb8i
    @user-ui3og1bb8i 8 ปีที่แล้ว

    It would have been easier to have do the pacman chomp like this:
    - have the bottom segment with a border-bottom-left & border-bottom-right. Likewise a top segment which would be border-top-right & border-top-left. That would then be two halves of a semi-circle
    - then you animate them from 45 degrees to 0 and probably -45 to 0

  • @crlsmtzprds
    @crlsmtzprds 8 ปีที่แล้ว

    Travis you're awesome!
    You're THE Master of CSS my friend.. WOW !

  • @zahlex
    @zahlex 8 ปีที่แล้ว +1

    I really need to read the docs of transform-origin. Every time you are using this property my mind simply explodes :D

    • @OfficialDevTips
      @OfficialDevTips  8 ปีที่แล้ว

      Its like this: from where do we start this transformation? By default it's center center

    • @zahlex
      @zahlex 8 ปีที่แล้ว

      DevTips Yea, it's pretty much like an Anchor Point in After Effects, but it still confuses me every time :D

    • @KaasFlipGames
      @KaasFlipGames 8 ปีที่แล้ว

      +DevTips it's like an ancher point in photoshop, right? I mean the little thing in the center of each element when you press ctl + t

  • @horlacsd
    @horlacsd 8 ปีที่แล้ว

    @42:40 make both the chomps
    @keyframes chomp
    0%, 100%
    transform: rotate(43deg)
    50%
    transform: rotate(-43deg)
    but delay one 0.5s w.r.t the other!

  • @DennisVlaanderen
    @DennisVlaanderen 8 ปีที่แล้ว +3

    That timer made me jump from my seat, hahaha.

  • @LiamMartens
    @LiamMartens 8 ปีที่แล้ว

    the reason is the fact that the transform property overrides so when you just set scale on the 50% the rotate gets lost

  • @aksharpatel2739
    @aksharpatel2739 8 ปีที่แล้ว +1

    That surprised look with "Boing!" and to make it worse, the snort. :D

  • @fuse98
    @fuse98 7 ปีที่แล้ว

    LOL, keep the timers! It's a Keyframe on it's own!

  • @menemelkatan7347
    @menemelkatan7347 8 ปีที่แล้ว

    great effort and awesome animations
    thanks Travis :))

  • @vinzer72frie
    @vinzer72frie 7 ปีที่แล้ว

    You spin me right 'round, baby, right 'round
    Like a record, baby, right 'round, 'round, 'round

  • @kellycallum972
    @kellycallum972 7 ปีที่แล้ว

    You're fun...ny! Enjoyed your tutorial. Conceivably I should be able to make a loader/spinny thing that looks like a glass of water filling up (can this be a gif?) and code it with css into my html? Or do I need to use something else? I'm struggling with this at the moment...this can be done right?

  • @vince1271
    @vince1271 7 ปีที่แล้ว

    23:34 JUMPSCARE, AHAHHAHAHA. Nice ringtone

  • @captoc8346
    @captoc8346 8 ปีที่แล้ว

    May i ask what the &:after, and &:before serves in a normal webpage? i have taken up web development and i have never come into a case where i need to use it, or at least that i have realized.

  • @talha4142
    @talha4142 7 ปีที่แล้ว

    tutorial was awesome can you provide the all property of animation and @keyframes? or another link of web that tells me properly how many types of animations and @keyframes property thanks.

  • @SmellySamosa
    @SmellySamosa 7 ปีที่แล้ว

    21:33 I WANT WHATEVER THE HECK HE'S BEEN SMOKING!!!!

  • @mayaahmed
    @mayaahmed 8 ปีที่แล้ว

    Awesome. Thanks. I fixed the code to work perfectly. Really enjoyed the tutorial.
    .track{
    width: 300px;
    height: 0px;
    border-top: 8px dotted #eee;
    display: inline-block;
    }
    .kurt{
    animation: moveChomp 5s linear infinite;
    width: 0px;
    height: 0px;
    position: relative;
    top: -15px;
    left: -15px;
    }
    .loader{
    background: none;
    display: inline-block;
    position: relative;
    }
    .loader:before, .loader:after{
    content: '';
    display: block;
    height: 0px;
    width: 0px;
    border: 30px solid orangered;
    border-radius: 50%;
    border-right-color: transparent;
    position: absolute;
    border-bottom-color: transparent;
    top: 50%;
    margin-top: -34px;
    animation: topchomp 1s ease-in-out infinite reverse;
    }
    .loader:after{
    // left: 80px;
    border-color: orangered;
    border-top-color: transparent;
    border-right-color: transparent;
    animation: bottomchomp 1s ease-in-out infinite;
    }
    @keyframes bottomchomp{
    0%, 100%{
    transform: rotate(10deg);}
    50%{
    transform: rotate(-50deg);}
    }
    @keyframes topchomp{
    0%, 100%{
    transform: rotate(-20deg);}
    50%{
    transform: rotate(37deg);}
    }
    @keyframes moveChomp{
    0%,100%{
    left: 0%;}
    50%{
    left: 100%;}
    0%{
    transform: rotateY(90deg);}
    3%, 47.5%{
    transform: rotateY(0deg);}
    52.5%, 98%{
    transform: rotateY(180deg);}
    100%{
    transform: rotateY(90deg);}
    }

  • @NirazanBsnt
    @NirazanBsnt 8 ปีที่แล้ว

    Hello Travis, your video is just awesome. I just wanted to know what are the software and tools that you use to make the videos. Thankyou !! you are cool man...

  • @worldofstrings
    @worldofstrings 8 ปีที่แล้ว

    Cool Dev!!! do you have a book on these cool css animations?

  • @dominichigh6727
    @dominichigh6727 8 ปีที่แล้ว

    Travis, you are the man!
    However, in this particular video, I wasn't catching on? You were doing more showing than explaining what each css property would ultimately do,thus I had to guess what animation meant or how would it perform? Or "before" or "after" meant? And so on?

  • @bharakhal450
    @bharakhal450 8 ปีที่แล้ว

    I am 10 and to be honest, my favourite channel is yours Travis.

  • @parthgarg9285
    @parthgarg9285 8 ปีที่แล้ว

    working on the bouncy animation and then he's startled by the bounce alarm

  • @ELP1125
    @ELP1125 7 ปีที่แล้ว

    His antics are hilarious 😂

  • @BuzzedAldrin1
    @BuzzedAldrin1 8 ปีที่แล้ว

    Haha loved the BOINK jumpscare!

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

    hey Travis!
    have you seen the google Olympics web app ?
    obviously you knw how to create this fancy stuff (animations, behavior of pages when we move to another page ).. could you please tell us how to make it..??

  • @singhravi488
    @singhravi488 7 ปีที่แล้ว

    sir, how to use gradient in border color? i lose the border-radius when i try to do this.

  • @furiousgamer04
    @furiousgamer04 7 ปีที่แล้ว

    Hey Dev, I have a query that you use different software for coding but I use notepad ++ and dreamweaver for coding and the code you use sometimes does not work on both the above mentioned software can you help me to how to make drop-down navigation bar with different effects you had showed in your video.

  • @carlosb2288
    @carlosb2288 8 ปีที่แล้ว

    Hola Travis, te sigo desde hace rato y he aprendido mucho de ti. Supongo que el código se entiende en todos los idiomas, Gracias.

  • @joshmurray564
    @joshmurray564 8 ปีที่แล้ว

    What is your setup? It's just I love the size of the text or the font on your screen, it's almost like your font sizing is the same as mine but your screen is like twice the size - hopefully that makes sense.... But, what's the setup you run when you make videos (or this video)? Cheers!
    NOTE: I know you use Mac, but what kind of Mac... iMac? MacBook? Blah blah....

  • @97pixels
    @97pixels 8 ปีที่แล้ว

    Hey Travis,
    Awesome video .. as expected! ;)

  • @saurabhgrewal8210
    @saurabhgrewal8210 7 ปีที่แล้ว

    thankyou for your existence:)

  • @jonmayer
    @jonmayer 8 ปีที่แล้ว

    Totally yay'd and yo'd, laughing the whole time. Insanity is infectious.

    • @OfficialDevTips
      @OfficialDevTips  8 ปีที่แล้ว

      Hahah, thanks Jonathan :)

    • @jonmayer
      @jonmayer 8 ปีที่แล้ว

      Thanks for the videos, they are entertaining and I've learned a bunch. I like that you don't always plan everything out, so we can see the thought process as well.

  • @codi0dio
    @codi0dio 8 ปีที่แล้ว

    Shouldn't you be using the ::psuedo syntax instead of the single colon?

  • @ItsMeSteveyP
    @ItsMeSteveyP 7 ปีที่แล้ว

    Loved the video, Travis. I had a QQ. How did you avoid having to declare a content property for the :before and :afters of the spinner-# elements?

  • @hannahlee9206
    @hannahlee9206 6 ปีที่แล้ว

    which IDE or text editor are you using? because I see the result changed instantly after you writing code (without reload)

  • @tavinturner4790
    @tavinturner4790 8 ปีที่แล้ว

    You had almost too much fun Travis. Almost.

  • @TyreeArt
    @TyreeArt 8 ปีที่แล้ว

    LOLOLOL! You crack me up! :-D
    I wish you did all the tutorial videos I watch. I actually stay awake watching your vids. :-D

    • @OfficialDevTips
      @OfficialDevTips  8 ปีที่แล้ว

      I'm so happy to hear that you like them Matt!!

  • @-ahvilable-6654
    @-ahvilable-6654 7 ปีที่แล้ว

    Like for that intro. I just couldn't resist...

  • @crazypkrcrazy3115
    @crazypkrcrazy3115 8 ปีที่แล้ว +1

    Never clicked on a video so fast lol. Can't wait to watch Travis!

  • @SamHolmes_203
    @SamHolmes_203 6 ปีที่แล้ว

    Awesome Video!! What text app is he using that he doesn't have to add "{}" and ";"?
    tThe keyframe transform rotate should have been done in 45 degree increments. It would have been perfect!Still awesome video. You Rock Bro!!!

  • @slackbraham
    @slackbraham 8 ปีที่แล้ว

    This video was fascinating enough to motivate me to do 63% of codecademy's HTML & CSS course in one day xD and I'm still going. Awesome vid. And this is coming from a guy who's main focus should be python

  • @Northerner19
    @Northerner19 8 ปีที่แล้ว +6

    Your lessons very meaningful! Many thank from Russia :)

    • @OfficialDevTips
      @OfficialDevTips  8 ปีที่แล้ว

      Hello Russia! Thanks for watching :)

  • @saudqureshi3716
    @saudqureshi3716 6 ปีที่แล้ว

    Travis when are u coming back ?

  • @ArnoldsKtm
    @ArnoldsKtm 8 ปีที่แล้ว

    Another challenge: make the dots behind disappear. I would say that behind the pacman there is a bar with the background color that blocks everything behind it.

  • @YuukiRusGames
    @YuukiRusGames 8 ปีที่แล้ว

    What are you editing in there? Looks funky.

  • @martinnov8k
    @martinnov8k 8 ปีที่แล้ว

    I am watching this at work and having LOL moment on that super fast chapm champ champ (44:19) :D that was so funny :D

    • @OfficialDevTips
      @OfficialDevTips  8 ปีที่แล้ว

      HAHAHA, chomchomchomchomcmcmcmcmc. That killed me!

  • @yogeshkurane123
    @yogeshkurane123 8 ปีที่แล้ว

    what software do u use for the live preview?

  • @jobjehovah2979
    @jobjehovah2979 8 ปีที่แล้ว

    what is the software with code on the side in the vid?

  • @premier69
    @premier69 7 ปีที่แล้ว

    Travis, you introduced me to Pug (Jade) and my sanity thanks you!

  • @Limpuls
    @Limpuls 8 ปีที่แล้ว

    Hey Travis, I have an off topic question regarding css. Do you think w3.org css 2.1 specification is a good place to read about some of the css features? Like I'm now learning more advance css concept like box formatting context and I can't find any courses or video tutorials on topics like this except for w3c. Is it legit? Coz it says the spec was written back in 2007 but updated few months ago. Thanks! :)

  • @leoneljuarez49
    @leoneljuarez49 8 ปีที่แล้ว

    I love your videos, and your personality. I would definitely be your friends in real life if you weren't weirded out by that comment lol.
    keep up the awesome work.

  • @yashumittal
    @yashumittal 7 ปีที่แล้ว

    From where can I get that ringtone :P

  • @nightchiller
    @nightchiller 8 ปีที่แล้ว

    Dude, I don't get all this before and after stuff. Did you explain this? I don't find it.

  • @breakdancer100
    @breakdancer100 5 ปีที่แล้ว

    What software are you using to record your screen and face at the same time?

  • @MrJack-yx6nm
    @MrJack-yx6nm 8 ปีที่แล้ว

    Hey great video Travis! But I'd like to see a video on how to make an image preloading animation that disappears when the image is loaded. Could you do that? Or just tell me real quick how it's done :)

    • @OfficialDevTips
      @OfficialDevTips  8 ปีที่แล้ว

      That's all done in JS. So the way it works is you place the animation and then tell JS to load new content in when it's ready. It rill replace the spinner.

    • @MrJack-yx6nm
      @MrJack-yx6nm 8 ปีที่แล้ว

      +DevTips Thank you for your help :)

  • @cedricyum9940
    @cedricyum9940 6 ปีที่แล้ว

    why the second spinner has a dot as border