Spice up your site | Easy waves, angles, & other creative shapes with CSS

  Рет қаралды 162,323

Kevin Powell

Kevin Powell

Күн бұрын

Пікірлер: 188
@koigorfogbawa8238
@koigorfogbawa8238 Жыл бұрын
Kevin...your KZbin channel is literally a beginner to advance CSS course...and it's for free and constantly updated 😀.. Thanks Kev...really really appreciate you.
@Allformyequine
@Allformyequine Жыл бұрын
TOTALLY AGREED!! :)
@johnnyjev9840
@johnnyjev9840 Жыл бұрын
😂! Everything I know in css I learned from Kevin's KZbin channel... I'm super grateful 🙌
@Allformyequine
@Allformyequine Жыл бұрын
@@johnnyjev9840 I would probably stop making money if he quit this channel LOL!
@8koi245
@8koi245 Жыл бұрын
his Scrimba course is also free!!
@trueberryless
@trueberryless Жыл бұрын
I want to thank you Kevin because I agree with each goal you discussed in the first few minutes and I also think that it is much better, programming without SVGs as long as it is possible. And you are one of the only people on KZbin knowing how to create anything with only CSS. This is what your channel stands for... Thank you!
@trueberryless
@trueberryless Жыл бұрын
Oh, maybe I didn't quite understood what you said... Unfortunately, I don't like using SVGs...
@thomasp6208
@thomasp6208 Жыл бұрын
Hey Kevin, as a beginner I can't thank you enough for the first 8 minutes of this video. So much helpful advise that 99% of the other tutorials/guide would just completely skip. Thanks a lot 🙂
@girabbit
@girabbit Жыл бұрын
“So I’ve got here an HTML file with content and a CSS file with 600 lines of code, now all I need to do is…” *Viewer crying in amateur *
@ryanthompson2462
@ryanthompson2462 2 ай бұрын
Kevin, you are an absolute god send. Im self studying, and you are my number one go-to channel for CSS. You really did help me fall in love with CSS
@linak1909
@linak1909 6 ай бұрын
Wow! Omg this is amazing, thank you so much! I was making a website for my firend as a practice and I wasted so much time trying to figure out ways to do this diagonal section and nothing was working, but now thanks to this video my firend will get his cool skewed sections design! I am so grateful, this channel is the best!
@aln.2366
@aln.2366 Жыл бұрын
I'm new to web development, and you are a golden source of knowledge. thanks a million.
@xenialxerous2441
@xenialxerous2441 Жыл бұрын
Thanks, Kev! You're a seasoned css practitioner 🙏✌🏻
@BryanMaxDobberstein
@BryanMaxDobberstein Жыл бұрын
Are you peppering him with accusations of being salty?
@xenialxerous2441
@xenialxerous2441 Жыл бұрын
@@BryanMaxDobberstein Not at all, my intentions and appreciations for him have always been authentic, since I've known him (via inter webs) as long as since 2014'ish when I myself first got into the web dev world, migrating from Java and C++ programming. I can't say for sure whether he had his own dedicated channel back then, however he was one of the patreons of another awesome channel named "devTips"!
@mattroddev
@mattroddev 15 күн бұрын
Kevin, you are my hero. Thank you for what you do.
@sijiadegoke
@sijiadegoke Жыл бұрын
Kev, you're an angel, absolute godsend. Cant tell you how much your videos do to my progress. Thank you
@matt.604
@matt.604 Жыл бұрын
I like your angles on the angels. 👼
@joshuacooks
@joshuacooks Жыл бұрын
I'm a Sr. Dev and I learned quite a few helpful things from this video, very well done! 🏆
@jadranko0o
@jadranko0o Жыл бұрын
Kevin, you did it : I’m in love with css! You’re amazing, thanks for all 🙌🏻
@KevinPowell
@KevinPowell Жыл бұрын
Amazing! So happy to hear that :D
@davidlafontant2185
@davidlafontant2185 Жыл бұрын
Unfortunately it's not allowed for one person to give 100000 likes for a video. It's awesome. Thank you very much. 👏🏿👏🏿👏🏿👏🏿👏🏿
@omotehinseelvis9845
@omotehinseelvis9845 Жыл бұрын
Frankly speaking, your videos are priceless. Whenever youtube suggests them, even though I'm doing something else, I always wanna stop by because there's always something valuable to learn that will improve my CSS. Thank you so much Kevin
@TeamROsky
@TeamROsky Жыл бұрын
awsome video btw love the way you repeat the basics of everything helps refresh the mind, subbed!
@mediadinger
@mediadinger Жыл бұрын
"margin-inline" ... "padding-block"... you saved my life !
@abacealeycagan2896
@abacealeycagan2896 Жыл бұрын
Love you Kevin, You really make us fall in love with CSS
@rickardelimaa
@rickardelimaa Жыл бұрын
12:39 - this is why I listen to all your videos. I think I'm pretty good at CSS, but having you present newer CSS properties keeps me constantly updated. _margin-inline_ and _padding-inline_ are new to me as well. This video felt really pedagogic, even more than usual. Thanks!
@daleryanaldover6545
@daleryanaldover6545 Жыл бұрын
As someone who usually works with CSS for a decade now, keeping up with these new properties and functions are both godsend and a nightmare.
@ihelpdogs
@ihelpdogs 7 ай бұрын
*googling "pedagogic"....
@oredeinbabajide3419
@oredeinbabajide3419 5 ай бұрын
God bless you Kevin. Thank you for all that you do.
@benderbg
@benderbg Жыл бұрын
You are born to be a teacher Kevin.
@javieru5871
@javieru5871 Жыл бұрын
Kevin you're truly the boss, thanks your content is top notch...
@daveskye
@daveskye Жыл бұрын
Good Video, nice to see the full fresh start approach.
@ryo_5748
@ryo_5748 10 ай бұрын
Thank you for the easy to understand explanation! I'll try it on my website right away.
@mkl.stranger
@mkl.stranger 8 ай бұрын
Hi Kev, thank you very much for your consistent effort. It's gets a little distracting with the position of your selfi camera view. Please adjust somewhere it don't distract.
@Linuxdirk
@Linuxdirk Жыл бұрын
I love your tutorials. Semantic HTML and easy to understand pure CSS are just the best! 👍
@mthia
@mthia Жыл бұрын
today i finished my page with svgs to create some waves etc and now im seeing this video :O
@jefferymuter4659
@jefferymuter4659 Жыл бұрын
Super thankful for this channel as I slowly learn to stop hating CSS...... By learning CSS properly 😅
@krzysztofs3t532
@krzysztofs3t532 Жыл бұрын
OMG, man! I love your videos! isolation: property... I would never know something that usefull even exist!
@giovannisoulkbenedetti7127
@giovannisoulkbenedetti7127 Жыл бұрын
Wow.. with just one of your videos I learn a lot. They are very exciting! 🔝Thank you Kevin
@1909jaya
@1909jaya Жыл бұрын
I love this! Thank you CSS king of kings!
@ZenhostPanel
@ZenhostPanel Жыл бұрын
This channel is just so good... It has solution to everything i am concerned abt in web development
@eybietie
@eybietie Жыл бұрын
pretty cool things. I am really confident with css but some solutions are just so smooth and clean. thanks for the video /cheers
@kamraniqbal17
@kamraniqbal17 Жыл бұрын
Beautifully Explained!
@HarryEland
@HarryEland Жыл бұрын
Learned a lot in a short time and well explained
@Glow0110
@Glow0110 Жыл бұрын
Always such helpful videos brother!
@patrickmcnelis1520
@patrickmcnelis1520 Жыл бұрын
A great video mate. Thanks again Kevin!! These are great little tricks that produce a big punch, and not too difficult to achieve!! Just awesome!
@hugosales8102
@hugosales8102 Жыл бұрын
25:00 You could use either `background: transparent`, or even better `background: none` and you could have a gradient underneath
@toisetrothanhmavuongbaaonh4725
@toisetrothanhmavuongbaaonh4725 Жыл бұрын
Godd of CSS is here ... 🎉🎉🎉
@Allformyequine
@Allformyequine Жыл бұрын
So FUN!!! Luv this; once again you blow it right out of the water :) 😃
@metin1504
@metin1504 Жыл бұрын
Kevin, with all these videos you seem to be the kind of man who has his chair/desk setup and sitting position dialed in. Now i have personally tried to follow many KZbin videos about how to sit for extended periods of time without feeling like a grandpa climbing a mountain after each sit. Perhaps i wasn't asking it to the right people, maybe i should've asked a fellow coder. So, mister Kevin sir. Any advice or personal insights on how you deal with this constant risk of back pain? i know it's a bit off topic but i would genuinely appreciate any kind of advice at this point really hahah. P.S. This video was yet again one of those videos i didn't know was going to be so helpful and motivating for my own project, really only clicked because i know the welcoming quality of your videos and also for the nice colors and shapes in the thumbnail :p
@ShaunLevett
@ShaunLevett Жыл бұрын
I often run in to these little rendering issues. I used a skew technique for an angled panel in a project, with the background being a radial gradient. I didn’t want the gradient skewed though, so I made the gradient a child element and skewed it the opposite way so it looked normal again, but Firefox wasn’t having it. Little 1px gaps in the gradient.
@c-eagle
@c-eagle Жыл бұрын
Regarding the rendering issues with rotation-transforms... I've been writing a JS/CSS-based dungeon crawler (3D and grid-based like Dungeon Master), and I've had the same rendering issues between textures/walls - only using HTML elements for those, no WebGL or anything, so it works on more devices. And after a lot of frustration, I found a fix by accident: I just added 0.01 to each and every deg-value in rotation-transforms. That was the lowest I could go before the problem would re-appear. So for example, instead of 180deg I'd use 180.01deg. Suddenly I really regretted deleting a CSS-based shading-engine (using gradients with different alpha values to add light/shadows) I developed for 5 weeks prior to noticing this rendering issue...
@chinodanxd
@chinodanxd Жыл бұрын
Thank you for sharing! 🙌🏼
@nomadshiba
@nomadshiba Жыл бұрын
Thank you Kevin, very cool!
@travellingstranger3378
@travellingstranger3378 Жыл бұрын
...you sir, are the best!
@madaraplays247
@madaraplays247 10 ай бұрын
Thank you sir 😃
@TheMrChristli
@TheMrChristli 9 ай бұрын
thx this helped me a lot :)
@Abdulwahab-hj4me
@Abdulwahab-hj4me Жыл бұрын
Absoulutely Fansastic 😵
@Paulo280713
@Paulo280713 Жыл бұрын
great content
@brucenorton
@brucenorton Жыл бұрын
I love skiing Owl’s Head
@KevinPowell
@KevinPowell Жыл бұрын
I've spent the last 30 odd years skiing there, my parents live pretty close to it 😀
@smgraphics3012
@smgraphics3012 Жыл бұрын
@kevin Powell plz help i got stuck as -webkit-mask-image: url('triangle.svg'); not working
@nahidahmed9153
@nahidahmed9153 Жыл бұрын
nice video love it
@ElZyko
@ElZyko Жыл бұрын
I can't see the spike either, even when I download the source code. I'm on firefox 109.0.1. Stop working as soon as I had the image-mask
@kc-ep8yx
@kc-ep8yx Жыл бұрын
Thank you
@kavehghanbarabbasi2013
@kavehghanbarabbasi2013 Жыл бұрын
awesome , mate .. awesome
@omersoncruz1081
@omersoncruz1081 Жыл бұрын
whoaah finally a tutorial for shapes and stufss. Thanks Kevin
@TeamROsky
@TeamROsky Жыл бұрын
omg did I just spot eye tracker your eyes go over your glasses at 1:18 mhhhh
@KevinPowell
@KevinPowell Жыл бұрын
haha, yup, testing using one for my intros 😅
@TeamROsky
@TeamROsky Жыл бұрын
@@KevinPowell haha honestly good idea it really pulls me in with my full attention when openingen your video keep it up!💡
@fredhair
@fredhair Жыл бұрын
"I don't want to use an SVG" Immediately uses an SVG
@ricardodesirat2590
@ricardodesirat2590 Жыл бұрын
Great video! To fix the zoom in and out, maybe a -1px on top and bottom of the ::before & ::after ?
@sheilawilliams5684
@sheilawilliams5684 11 ай бұрын
Thank you!
@NurioonSoftware
@NurioonSoftware Жыл бұрын
How come you have time to create all these contents and i dont have time to watch all of them. You amazing
@gamingmode2868
@gamingmode2868 Жыл бұрын
@25:12 In my case spike does not take background color as a variable instead it takes as a hard coded background color. Any suggestions?
@innerinsights224
@innerinsights224 Жыл бұрын
Can you make a video on how to find work as a web developer?
@graceljoyermena151
@graceljoyermena151 Жыл бұрын
Hello, Sir! Respectfully suggesting, can you make an update video of html and css? I've been looking for tutorials in yt to learn and your channel is a good place to start. TY.
@zorglub8949
@zorglub8949 Жыл бұрын
Why not id's for sections?? :)
@BrandonFunk
@BrandonFunk Жыл бұрын
im stuck on the spikes! webkit-mask-image is crossed out in VScode, and mask-image doesnt work! what am i supposed to do to make it show up? its driving me crazzzy
@scooby554
@scooby554 Жыл бұрын
Hello Kevin, could you show how you configured "Prettier" for HTML and CSS? There's some problem with and tags
@KevinPowell
@KevinPowell Жыл бұрын
What's the issue?
@scooby554
@scooby554 Жыл бұрын
@@KevinPowell On Save it does this to and tags
@bobhearinger
@bobhearinger 10 ай бұрын
6:20 how to set this dark mode? I have a dark theme on windows and chrome, but my websites are light?
@maidnuu
@maidnuu Жыл бұрын
I wonder if you could the waves the same way you do the spikes: make an svg of one wave and repeat it.
@mikhalpalych
@mikhalpalych Жыл бұрын
28:45 In some cases i fixed this with transform scale 1.01 or 1.02
@sobertillnoon
@sobertillnoon Жыл бұрын
Why not scaleY(-1) instead of rotate(.5turn)? Would you still get the graphical issues when zooming?
@ilijapajkanovic9514
@ilijapajkanovic9514 Жыл бұрын
Could you do a video where you combine @mediaquery and animation to have responsive sizing those shapes?
@mthia
@mthia Жыл бұрын
11:47 how did he move the line like this?
@Technoph1le
@Technoph1le Жыл бұрын
Wondering if there's CSS doc, just like JSdoc? 🤔 Can you also make a video about it? Like CSS documentation...
@asappi1
@asappi1 Жыл бұрын
w3schools is great.
@z-tech4703
@z-tech4703 Жыл бұрын
Thank you for this
@DamienCarbery
@DamienCarbery Жыл бұрын
Is it possible to convert the triangle SVG into a CSS data so that you won't need the external file?
@XoIoRouge
@XoIoRouge Жыл бұрын
Your file is saved under `.css` - I'm returning to the field and for the past few months, I've been using `.scss` because I've heard it "can do more things than CSS." I expected this to be using SCSS instead of CSS, but it's not? Can you describe the difference and inform me which you think is better?
@bradleyandrews2444
@bradleyandrews2444 Жыл бұрын
i was thinking how can i have an svg in css instead of in the html it self while still being able to control it color
@a.galvaop.787
@a.galvaop.787 Жыл бұрын
Angels
@blac-whit
@blac-whit Жыл бұрын
Thank you for this {
@--bountyhunter--
@--bountyhunter-- Жыл бұрын
Let's see if I'm lucky enough to get a heart Amazing vid btw
@Klaus53123
@Klaus53123 Жыл бұрын
Hi Kevin, great stuff. I immediately started to play around with it. One issue I couldn’t solve: if I wasn’t only one spike in the centre of the section, I gave the .spike a property of width 60px and height 25px and the .spikes:: before, . spikes::after a width of 60px. I then tried to centre this one spike. I tried to give the .spikes:: before and after elements a left and right auto but that didn’t work. Giving them a 50%left margin works about, but not correctly. Any idea what to do? Best regards Klaus
@GregPerham
@GregPerham 10 ай бұрын
left: calc( 50% - (var(-spike-width) / 2) ); (NB iOS wont let me type two hyphens)
@marcmeijer6044
@marcmeijer6044 Жыл бұрын
Kevin i literally followed your tutorial here and am at Firefox but the spikes is not working. I have no clue . Update tested all browsers with your code an no joy
@brianmanderino355
@brianmanderino355 Жыл бұрын
Are you running the html file directly in the browser? If so, you'll have CORS issues. Kevin runs the Live Server extension in VS Code which loads the page in a local server. That could be your issue.
@tumeden
@tumeden Жыл бұрын
Angels? You mean Angles, right? A simple typo but means something completely different.
@KevinPowell
@KevinPowell Жыл бұрын
haha, oops
@ipgamingnight6492
@ipgamingnight6492 Жыл бұрын
--webkit-mask-image isn't working for me :(
@asappi1
@asappi1 Жыл бұрын
might be because you put 2 "-"'s.
@ipgamingnight6492
@ipgamingnight6492 Жыл бұрын
@@asappi1 i literally copied his html and css later on and still got nothing out of it...
@mahbubalamsarker6292
@mahbubalamsarker6292 Жыл бұрын
yes, this is not working for me as well. tried several way but not working.
@Ryan-ww7un
@Ryan-ww7un Жыл бұрын
Kevin... are you using an eye-contact AI in the post-processing step for your videos? I liked your videos better without the AI. The eye-contact AIs are kinda creepy, and the frequent jitter in the eye's position is jarring. A good example at 1:17
@francois.steinel
@francois.steinel Жыл бұрын
It really feels weird with the effect applied on your eyes at the beginning of the video, feels uncanny valley 😅
@KevinPowell
@KevinPowell Жыл бұрын
Experimenting with it, might not be worth it :D
@bomj-valera
@bomj-valera Жыл бұрын
angels 🤣
@bryanburns3391
@bryanburns3391 Жыл бұрын
Angles not angels! You can delete this if you want just wanted to point it out!
@KevinPowell
@KevinPowell Жыл бұрын
That's one of those typos I'll be making forever, lol
@Ali_vazife
@Ali_vazife Жыл бұрын
Ttttnxxxx❤
@SirBearingtonSupporter
@SirBearingtonSupporter Жыл бұрын
I'm not able to get the spikes mask to work in firefox. I've disabled security.fileuri.strict_origin_policy, as instructed in questions/1363411 (creating a new profile for development) I've tried serving the site (locally) through python3 and apache 2.4 I have no issue clicking on a link that takes me to and displays the SVG in another tab. I opted for 2 different files, though neither work, and using only one produces the same result. In my troubleshooting I moved the assets to the root folder. I've stripped out tags so youtube won't filter it. HTML section class="spikes" div class="wrapper" p Lorem ipsum /p /div /section CSS .spikes (working) --spike-height: 10px; --spike-width: 35px; position: relative; background: var(--gradient-2); color: var(--body-txt); .spikes::before, spikes::after (working) content: ''; position: absolute; width: 100%; height: var(--spike-height); background: var(--body-bg) .spike::before (working) top: 0; .spike::before (NOT working) -webkit-mask-image: url("triangle.svg"); mask-image: url("triangle.svg"); -webkit-mask-size: var(--spike-width) var(--spike-height); mask-size: var(--spike-width) var(--spike-height); Any help would be super appreciative.
@anthonyage9124
@anthonyage9124 Жыл бұрын
I have the same issue, i even copy/paste the code and it simply does not work on Firefox.
@sosinformatique3470
@sosinformatique3470 Жыл бұрын
thanks kevin coming from France your very hepful ! !
@norboost
@norboost Жыл бұрын
You could flip the after element in the triangle example horizontally as well, that way they would be symmetrical on top and bottom.
@Jarrod0067
@Jarrod0067 Жыл бұрын
the worst part about all of your tutorials is... I'm required by contract to support backwards to Safari 11. All of these new properties and selectors break on older iOS
@LePhenixGD
@LePhenixGD Жыл бұрын
21:38 You can actually do it with just linear-gradients ex: background-image: linear-gradient(-135deg, purple 15px, transparent 0%), linear-gradient(135deg, purple 15px, transparent 0%) ;
@smgraphics3012
@smgraphics3012 Жыл бұрын
-webkit-mask-image: url('triangle.svg'); not work
@KDesp73
@KDesp73 Жыл бұрын
Is it me or does he have the nvidia eye contact thing that replaces your eyes so you can read the script?
@julienjububibi6866
@julienjububibi6866 Күн бұрын
Hi guys ! I can't set the aspect ratio of the SVG to none on the second part.. Any idea ?
@nomadshiba
@nomadshiba Жыл бұрын
i think one bad thing about using pseudo elements is if you have two different classes trying to use the same pseudo element, it becomes problematic and thats why we need unlimited pseudo elements like :before(foo) :before(bar) with an id
@KevinPowell
@KevinPowell Жыл бұрын
I'd love to have something like that :)
@shatadal_das
@shatadal_das Жыл бұрын
That's a really great concept. 😀
@renrecommends5347
@renrecommends5347 Жыл бұрын
Such a great video! I’m currently stuck on the spikes section when we put in the WebKit mask image. I’m following the video step by step and I’ve looked over my code and it’s the exact same yet when I input the path into the WebKit, it’s not creating the spikes and stays as regular horizontal bars. I don’t know what I’m doing wrong 😢 any help from anyone figuring out how to deal with this would be great. I’ve never used WebKits before so is it possibly a setting I don’t have set?
@renrecommends5347
@renrecommends5347 Жыл бұрын
Actually, they don’t stay as regular bars, they just disappear I’m using Chrome
@renrecommends5347
@renrecommends5347 Жыл бұрын
@Dustin Yochim so I tried that and it still didn’t work 😭
@untaoshorts
@untaoshorts Жыл бұрын
Same problem here
@untaoshorts
@untaoshorts Жыл бұрын
I found the solution. The problem: (Chrome don't recognize "mask-image: URL" on computer), The Solution: Create a Chrome browser's shortcut. Right-click on the icon and in properties, edit target to "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --disable-web-security --user-data-dir="C:/ChromeDevSession" and save. Then using Chrome open the page using ctrl+o. NOTE: Do NOT use this shortcut for regular browsing .
@rainofwalrus
@rainofwalrus 9 ай бұрын
Great video! I'm in the process of making a Parallax Effect using transparent .png(s), but would some of these mountainous container shapes be more optimal for a Parallax Effect?
Creating an inverted border-radius with CSS
8:26
Kevin Powell
Рет қаралды 136 М.
Avoid These 5 Awful CSS Mistakes
20:42
Kevin Powell
Рет қаралды 194 М.
Man Mocks Wife's Exercise Routine, Faces Embarrassment at Work #shorts
00:32
Fabiosa Best Lifehacks
Рет қаралды 5 МЛН
Новый уровень твоей сосиски
00:33
Кушать Хочу
Рет қаралды 4,8 МЛН
Watermelon magic box! #shorts by Leisi Crazy
00:20
Leisi Crazy
Рет қаралды 7 МЛН
Can I copy this cool effect with CSS?
37:06
Kevin Powell
Рет қаралды 176 М.
You don't need a frontend framework
15:45
Andrew Schmelyun
Рет қаралды 126 М.
Please stop using px for font-size.
15:18
Coder Coder
Рет қаралды 168 М.
Make Awesome SVG Animations with CSS // 7 Useful Techniques
12:20
5 super useful CSS properties that don't get enough attention
16:23
Kevin Powell
Рет қаралды 145 М.
How to create a theme switcher with HTML & CSS
28:21
Kevin Powell
Рет қаралды 111 М.
The problems with viewport units
13:23
Kevin Powell
Рет қаралды 362 М.