Fun ways to animate CSS gradients

Поділитися
Вставка
  • Опубліковано 7 лис 2024

КОМЕНТАРІ • 208

  • @joeldcanfield_spinhead
    @joeldcanfield_spinhead 5 років тому +51

    I appreciate that you include some design sensibilities in your videos. This shifting gradient background is a good fit for some bits of my current site rebuild. Much fun.

    • @KevinPowell
      @KevinPowell  5 років тому +8

      Glad that you like the designy stuff I do too, and glad that I could help with something that you can use on your site :D

    • @bomajoseph8240
      @bomajoseph8240 2 роки тому +2

      “Design sensibilities.”
      Extracted the word from my mouth👍

  • @crasymagic
    @crasymagic 5 років тому +54

    Background clip is reaaaaaally interesting, thanks a lot

    • @Pspisripoff
      @Pspisripoff 5 років тому +2

      Doesnt work for me :0

    • @nicogorr
      @nicogorr 4 роки тому +11

      @@Pspisripoff You need to add the "-webkit-" prefix.
      -webkit-background-clip: text;

    • @SoberStones
      @SoberStones 3 роки тому

      @@nicogorr thank you - I was having the same problem!

    • @creativityexpeditions4582
      @creativityexpeditions4582 Рік тому

      ​@@nicogorr Thank you so much.
      But he didn't use this in the video but his one worked....how?

  • @brentmakes
    @brentmakes 2 роки тому +14

    I love your videos! I am a 40-something year-old student who once did web design in the early years of the Browser Wars. I'm taking classes to get back into it now, and watching your videos helps me a ton. It's usually the little things, like reminding us that we should put a cursor: pointer; on a text link styled as a button that make me pause the video and go update my current project :) I also love your CSS Battles and I've started doing them for practice.

    • @bumbleguppy
      @bumbleguppy Рік тому +1

      Ha! yeah, I remember back in that day I wrote a script that would take an element and a couple colors, wrap each letter in a span and with timers animate a gradient. It totally PEGGED the browser. This technique here is so easy and smooth and easy to implement :)

  • @aidenefaz
    @aidenefaz 4 місяці тому

    This video is a whole package about gradients. Covered every usecases nicely.

  • @thegrantkennedy
    @thegrantkennedy 5 років тому +16

    I’m so glad I found your channel. Your CSS stuff is great.

  • @ruteshimizu3403
    @ruteshimizu3403 Рік тому

    As someone who has vary little knowledge in CSS, you helped me a lot creating a cool page! Thank you!

  • @Mophet
    @Mophet 5 років тому +7

    Recently I wanted to make a subtle light-reflection run over a button at :hover... :))) that’s it! Thanks!

  • @odytimesthree
    @odytimesthree 4 роки тому +2

    Dude, I get super blazed and watch your videos and I learn so much while being entertained. This is some really good stuff, man.

  • @fonncatalina6464
    @fonncatalina6464 4 роки тому +1

    Watching your videos is like sitting on couch and having comfort food, soooo satisfying! Thank you so much ! You are my life saver!

  • @termited0
    @termited0 2 роки тому

    It occurred to me the day after I watched this video that this gradient trick can be used to create a loading placeholder. Gonna try it! Thanks for great content!

  • @blonduose
    @blonduose 4 роки тому

    When I started to learn programming I started with JS, then decided on the web dev path. I though HTML and CSS were a bit boring, until I came to your videos....yesterday! It shows how prejudiced one can be towards something one doesn't know very well. Look forward to learning new stuff and styling my projects ! Tank you so much

    • @KevinPowell
      @KevinPowell  4 роки тому +2

      So glad that I've shown you that HTML & CSS can be fun! You just made my day :D

  • @afsanazamannipa7711
    @afsanazamannipa7711 5 років тому +3

    You did an amazing video using a simple CSS property. This surely will give a lot of ideas to implement in building an eye-catching website.

  • @canapz6370
    @canapz6370 5 років тому

    One of best part to learn css in beginners

  • @JM-jk9vz
    @JM-jk9vz 2 роки тому +1

    I'm subscribing just because of 9:27.

  • @scorepro5059
    @scorepro5059 5 років тому +1

    Clipping background image to the text, very cool.

  • @aliturab5370
    @aliturab5370 3 роки тому

    dude you really are a fricking genius

  • @prontocreative2374
    @prontocreative2374 3 роки тому

    That is unbelievably clever ! .... hats off

  • @Nadia-wu9hk
    @Nadia-wu9hk 3 роки тому

    I love this CSS gradients, thank you!!

  • @Fiveleafclover180
    @Fiveleafclover180 3 роки тому

    Your Scrimba courses are a god-send! Thank you for doing them.

  • @MartinLangenberg
    @MartinLangenberg 5 років тому +2

    Nice video once again! I have used gradients on buttons combined with a ::before or::after for a smooth transition between states. Did not know about background-clip. That is a cool trick. Keep up the good videos

  • @georgeliss4015
    @georgeliss4015 5 років тому +26

    personally, I'm not a fan of instagram-style gradients, but it gave some other ideas...

  • @rwmedia9847
    @rwmedia9847 3 роки тому

    I can click wherever on your channel and still learn something. Fun is good (actually great) too. Thank You.

  • @anatolisimeonov1270
    @anatolisimeonov1270 2 роки тому

    That is a very cool way to do transition for bg-img 🙌🏼(bg-position)

  • @brainztain
    @brainztain 5 років тому +56

    "people are going to hate your website if you have too many fast transitions"
    *Puts transitions cycling at 1 sec on txt, background, and borders 🤪

  • @AmandaLucaseu
    @AmandaLucaseu 5 років тому +1

    Love the tutorial - so glad I jumped on your new course 👏🏻

  • @dave6012
    @dave6012 3 роки тому

    I have used a repeating linear gradient to create a lined paper effect. It was neato-burrito.

  • @ione7260
    @ione7260 3 роки тому +1

    NICE one its helping a lot

  • @zubairspov
    @zubairspov 5 років тому +1

    Wow, cool work around on the transitions

  • @VivekYadav-up7uu
    @VivekYadav-up7uu 2 роки тому

    this tutorial is amazing

  • @Eternal_Otter
    @Eternal_Otter 3 роки тому +1

    I'm not a web developer but the first thing in mind for me was a kind of color wheel that would rotate forever 360 degrees. But a smart idea for just moving the picture left to right :)

  • @shvideo1
    @shvideo1 5 років тому +5

    It's like three tutorials in one, all very useful and interesting. Great job. Thank you.

  • @rameenana
    @rameenana Рік тому

    Thanks man. This was very helpful.

  • @LH-gb2lh
    @LH-gb2lh 6 місяців тому

    Wow! So easy! Thanks!

  • @prontocreative2374
    @prontocreative2374 3 роки тому

    you had me at 'Quacker'

  • @burnblue
    @burnblue 5 років тому +1

    Clearest you've done

  • @timothyogrady2560
    @timothyogrady2560 4 роки тому

    Awesome video Kevin. Found some pretty cool ways to use this for a project I'm working on.

  • @nickbrown6754
    @nickbrown6754 3 роки тому +1

    background-clip looks fun and interesting 🤔

  • @grahampcharles
    @grahampcharles 3 роки тому

    Animated text over an animated background is awesome!

    • @KevinPowell
      @KevinPowell  3 роки тому

      😅 - just looking at what's possible here :)

  • @jeffreyhuen
    @jeffreyhuen 3 роки тому +1

    The animated gradients are consuming a lot of CPU resources. I've read somewhere that we can force the GPU to take over these CSS animations by simply including "transform: translateZ(0);" to the element that is being animated. Have you tried this before on the css animated background gradients? Does this work?

  • @donghuuhieu137
    @donghuuhieu137 4 роки тому

    my mind blowed it out, thanks for this amazing ideal

  • @gbdaeye
    @gbdaeye 4 роки тому

    I love your channel. Thank you for sharing this cool stuff that has lots of potential for new approaches to making websites.

  • @tobskii1040
    @tobskii1040 3 роки тому

    That's amazing. Thanks

  • @iamtharunraj
    @iamtharunraj Рік тому

    I'm 3 years late. But, this topic was extremely fun! Thanks a lot Kevin!

  • @gcecg
    @gcecg 3 роки тому

    Very cool effects! And easy to accomplish.

  • @jaynews9495
    @jaynews9495 3 роки тому +1

    maybe you could use the :active pseudo class to get that button animation to make sense on mobile?
    you could set :hover to have some more innocent effect, like transitioning to slightly bigger button size, or underlining the text or something, and then the animation is reserved for the :focus and :active states.

  • @krishnaramnavaneethakrishn9426
    @krishnaramnavaneethakrishn9426 2 роки тому +1

    It's not working for me and I'm not sure why, but instead of a gradient background I had a image. But if I use -webkit-bacground-clip: it's working. I'm confused. Help please.

  • @rohil3023
    @rohil3023 5 років тому +1

    This is really amazing!! thanks a lot, I wanted to change my button in one of my projects whenever a user hovers but I didn't really know how this will help me a ton 😁 cheers

  • @BenRogersWPG
    @BenRogersWPG 3 роки тому

    This is amazing

  • @sougataghar1179
    @sougataghar1179 5 років тому +2

    i was hoping that i could learn to transition gradients but thats a heartbreak .nice video tho :DDD

  • @ales_wth_629
    @ales_wth_629 5 місяців тому

    AMAZING, you are awesome

  • @deniskotov
    @deniskotov 3 роки тому

    Cool tricks, thx a lot!

  • @henr2000
    @henr2000 2 роки тому

    thanks very nice tutorial!

  • @bobrobertsNotUrBob
    @bobrobertsNotUrBob 3 роки тому

    you could also filter hue rotate animate

  • @elderdiascunha1992
    @elderdiascunha1992 2 роки тому

    Why do you use background-image, instead of background-color, which can be affected by transition and transform properties?

  • @nadicadizdarevic2835
    @nadicadizdarevic2835 3 роки тому

    Thanks !

  • @erdemm35tr
    @erdemm35tr 4 роки тому +1

    Hey Kevin, i was playing with that background gradient color and i wanted to ask a question: Do you think is it possible to do that while having an actual image on the background? When we change the background size to 400% for example i lose the feature of background size: cover to photo

  • @Shrinehi1
    @Shrinehi1 5 років тому

    Very cool! Thanks!

  • @martinvfarago
    @martinvfarago 4 роки тому

    Thank you!

  • @Smart-Skippy
    @Smart-Skippy 3 роки тому

    Hi Kevin,
    G'Day from West Australia.
    Gread video. I like your style of presentation.
    Way to go, Canada!
    Thank you !

  • @jeansienkin
    @jeansienkin 4 роки тому +1

    Yeah, it's great, but I don't know why, on Mac (Safari, Chrome, Firefox), there is a very high CPU usage (over 100%) when using a full animated gradient background, that makes this technique a bit risky to use on a professional website. On my PC desktop, it's working completely fine.

  • @GSKHappyLearning
    @GSKHappyLearning 6 місяців тому

    for text color the gradiant is applied but the animation is not being applied what to do (using chrome also tried for edge not working)

  • @brs13-59
    @brs13-59 10 місяців тому

    Any example for form inputs filled on focus border gradient with smoothly filled that input line with gredient color

  • @paristar3079
    @paristar3079 5 років тому +1

    Video starts at 0:50

  • @theTalkingYuccaTree
    @theTalkingYuccaTree 2 роки тому +1

    Could you set the background image to repeat and just have the animation go in one direction infinitely instead of having it alternate it’s direction?

  • @estonian44
    @estonian44 2 роки тому

    what do you think can i use this bg effect on bakery landing page?

  • @icekangg
    @icekangg 3 роки тому

    cool, thanks

  • @sudaknot
    @sudaknot 2 роки тому

    Can you make the white background transparent whilst still keeping the transparent txt with the gradient inside?

  • @samuelfischer3764
    @samuelfischer3764 3 роки тому

    you could also put a selection on text with ::selection and make that a gradient

  • @LanFeusT23
    @LanFeusT23 5 років тому

    Great little trick! Love this!

  • @saaika5922
    @saaika5922 Рік тому

    I just got an idea in my mind... Are you able to go with text that shows background of body? not the white div thats inside

  • @ahmedalhallag3338
    @ahmedalhallag3338 3 роки тому

    What a great teacher!

  • @zakariyaabaouali6904
    @zakariyaabaouali6904 3 роки тому

    this amazing of amazing nice work thank you so mush

  • @iamtafara
    @iamtafara 5 років тому

    Great tut as usual,,, thanx kev

  •  5 років тому

    this is really nice

  • @lucasferrero123
    @lucasferrero123 4 роки тому

    Great video Kevin. I've found that the background-clip:text does not work on chrome, so I've used the @supports at rule to give browsers that don't support this feature yet another styling.

    • @Fiveleafclover180
      @Fiveleafclover180 3 роки тому

      Thank you! I was wondering why my text was not going transparent; I was using a chrome browser.

  • @cptechno
    @cptechno 3 роки тому

    Can you put gradient background coloring on your favourite(s) data-grid components to give a bit of 3D effect? The point of my quesiton is to find out is the component was structured to allow that.

  • @WORDGASM
    @WORDGASM 4 роки тому

    Thanks, teacher!

  • @tahsinkabirkhan
    @tahsinkabirkhan 3 роки тому

    Watching this exactly after 2 years

  • @DustinHein
    @DustinHein 4 роки тому

    what are you using for the title font in this video?

  • @atouchofa.d.d.5852
    @atouchofa.d.d.5852 4 роки тому

    Love these!

  • @BikeLifePinas
    @BikeLifePinas 4 роки тому +2

    hey Kevin,
    can you do a sample where the background changes based on the time of the day?
    the idea is to change the background to have sunny colors when it is day and dark blue tones when at night. :)

    • @gabrieldai88
      @gabrieldai88 2 роки тому

      that is some good idea, probably you can do it with javascript. i think im gonna try it.

    • @chonky_fox4067
      @chonky_fox4067 2 роки тому +1

      @@gabrieldai88 have you done it yet?

    • @gabrieldai88
      @gabrieldai88 2 роки тому

      @@chonky_fox4067not yet

  • @upsylondeveloppement8837
    @upsylondeveloppement8837 5 років тому +4

    Cool ! but dont forget to prefix ! ;-) -webkit-gradient and -webkit-background-clip:

    • @upsylondeveloppement8837
      @upsylondeveloppement8837 5 років тому

      ...and you Can put image in place of gradients and animate them for doing kind of Vidéo effect ( ultralight) it's cool too 😊

    • @KevinPowell
      @KevinPowell  5 років тому

      I'm honestly not sure if any browsers still need the -webkit- prefix for linear-gradient. From what I see on caniuse.com, with the prefix support is less than 1% behind.

    • @upsylondeveloppement8837
      @upsylondeveloppement8837 5 років тому

      @@KevinPowell background-clip: text; non support by IE + Support partiel for many other browsers :
      developer.mozilla.org/fr/docs/Web/CSS/background-clip
      can iuse is good but MDN is a better source according me and official ! .
      Thanks for your Cool videos ! ;-)

    • @KevinPowell
      @KevinPowell  5 років тому

      I meant for linear-gradient, I know it's still useful for other things :)

  • @roninsvideos
    @roninsvideos 2 роки тому

    Love your videos Kevin. You are the best CSS teacher out there. But I would love to know... Kev, were you drinking before this video? lol. I think you were. lol. Glad you are having fun. Thank you for all the great videos!

  • @AkashYadav-rj6fn
    @AkashYadav-rj6fn 4 роки тому

    I have a serious issue pls help... The issue is that the background-clip:text; property is not working....
    When I inspected and went on to check the styles other styles were applied (except those who inherited style from parent). But for the background-clip there was a warning symbol in front of it. What's the deal?

  • @AndyInTheUK
    @AndyInTheUK 2 роки тому

    That is sooooo coooool!

  • @prajwalpimpalte7684
    @prajwalpimpalte7684 7 місяців тому

    Amazing!!

  • @welling1
    @welling1 3 роки тому

    2021 and it seems like this is now the current trend.

  • @Aerotk
    @Aerotk 3 роки тому

    No one is talking about the thumbnail of the video. Pretty funny my man itself being a part of linear gradient

  • @maxmuller9871
    @maxmuller9871 4 роки тому

    Thank you so much nice video!

  • @timjobs9072
    @timjobs9072 5 років тому +1

    thank you give me inspirations👍👍👍, good videos

  • @solr4cc
    @solr4cc Рік тому

    What if gradient have 180deg? How to add transition to this?

  • @JacoblBroughton
    @JacoblBroughton 5 років тому

    Really helpful video thanks man

  • @budosfasz
    @budosfasz 2 роки тому

    It is not working on Chrome based browsers. Chrome does not supported background-clip: text

  • @zaye_d
    @zaye_d 5 років тому

    I love you because i love web design stuff's

  • @ga7853
    @ga7853 5 років тому +1

    That was really creative, Thanks.

  • @AshishKumar-rq8gb
    @AshishKumar-rq8gb 3 роки тому

    backgorund-clip: text don't work now. I used -webkit-background-clip to solve it. Is it fine or there's another way?

  • @akashrajum3319
    @akashrajum3319 4 роки тому

    Amazing content, thank you.

  • @MindGem
    @MindGem 4 роки тому

    Kevin! Can you please do a video of how to color external svgs? I've scrapped the web and there's nothing. The only thing I've manage to do is to change SOME solid shapes but not all because they're super confusing and change on each save like an organic worm.
    So say you have a simple stick figure, a head, a torso, arms and legs. You want to be able to change the color to each of these elements separately (gradient would be ideal).
    Are you capable of it?

    • @KevinPowell
      @KevinPowell  4 роки тому

      Of an external SVG, I don't believe so

  • @NullStaticVoid
    @NullStaticVoid 3 роки тому

    doesn't work cross browser.
    how is it 2021 and we still have to cater to browser differences?

  • @ShadiMuhammad
    @ShadiMuhammad 5 років тому +1

    You are always GREAT Kev. 👌
    Keep doing these amazing videos. ✌