Awesome UI Interactions with the CSS Clip Path Property

  Рет қаралды 337,060

DesignCourse

DesignCourse

5 жыл бұрын

Hey all! Today, we're going to take a close look at the CSS clip-path property. Specifically, we'll take a look at 3 different examples of how to use clip-path to create a micro interaction that reveals a card of information.
Codepen demo:
codepen.io/designcourse/pen/v...
Let's get started!
- - - - - - - - - - - - - - - - - - - - - -
Subscribe for NEW VIDEOS!
My site: designcourse.com
My personal FB account: logodesigner
Coursetro FB: coursetro
Coursetro's Twitter: / designcoursecom
Join my Discord! / discord
^-Chat with me and others
- - - - - - - - - - - - - - - - - - - - - -
Who is Gary Simon? Well, I'm a full stack developer with 2+ decades experience and I teach people how to design and code. I've created around 100+ courses for big brands like LinkedIn, Lynda.com, Pluralsight and Envato Network.
Now, I focus all of my time and energy on this channel and my website Coursetro.com.
Come to my discord server or add me on social media and say Hi!

Пікірлер: 224
@DesignCourse
@DesignCourse 5 жыл бұрын
What have you done with clip-path? Show me!
@mirrorlineentertainments9950
@mirrorlineentertainments9950 5 жыл бұрын
What is your choice, XD, Sketch or Invision. Would love to know your opinion as a designer
@m3rl1on
@m3rl1on 5 жыл бұрын
Nothing yet
@thedeveloper4207
@thedeveloper4207 5 жыл бұрын
@@mirrorlineentertainments9950 XD or Figma....Invision next....Sketch maybe never
@keyos27
@keyos27 5 жыл бұрын
@@thedeveloper4207 Why never?
@keyos27
@keyos27 5 жыл бұрын
@@mirrorlineentertainments9950 Tools are just tools. They all work in a similar way. What really matters is how you build your design.
@SocksWithSandals
@SocksWithSandals 4 жыл бұрын
I've been doing front end for 15 years and never heard of clip path before. Never too old to learn!
@mathiasebner1976
@mathiasebner1976 5 жыл бұрын
Love the video, pls do more UI interactions and aimations, it's so fun!
@wrends
@wrends 5 жыл бұрын
wow! i've been searching for this so long...thank you sir!
@rajitgupta1140
@rajitgupta1140 4 жыл бұрын
The fact that you are making tutorials on responsive css already made me sub😊 Keep up the good work!
@mdwebdevelopment7499
@mdwebdevelopment7499 5 жыл бұрын
The best ever design content I have found on youtube.
@wh4le287
@wh4le287 4 жыл бұрын
It never ceases to amaze me how powerful CSS can be. Setting this up with JS must be a nightmare... As always, great video!
@truejohnsolo
@truejohnsolo 5 жыл бұрын
DUDE that is so cool! 😱😱 Was watching this while I'm out and about and I can't wait to get to my computer and experiment with that!
@HikwaMehluli
@HikwaMehluli 5 жыл бұрын
Always wanted to try clip path but never got around to it. Thank you for this , straightforward explanation & inspiring tutorial. ❤️ from 🇿🇼
@stevenwilson5556
@stevenwilson5556 Жыл бұрын
Love your videos. clean and easy to follow and they are well presented in efficient manner. Also your sound is good which is always appreciated or more unappreciated when sound is bad haha. Cheers
@Brandonstiles
@Brandonstiles 5 жыл бұрын
Great info! I'd never used clip path so I'm stoked to experiment
@user-yk1lz7gb2t
@user-yk1lz7gb2t 3 жыл бұрын
Thanks a lot sir. I really enjoyed every second of your video. After a lot of googling finally I figured out how to use clip-path
@spinnerz
@spinnerz 3 жыл бұрын
Wow this is effective and easy to use! A lot of video's I can play at 1.5 but your speed is great. Thanks for the tutorial.
@luckie6593
@luckie6593 4 жыл бұрын
I just learnt a bunch of CSS and VScode tricks. amazing stuff. you earned a new sub!!
@ericpodhorecki5427
@ericpodhorecki5427 3 жыл бұрын
just go straight to 5:45... that's where the clip-path comes in... good vid as always..
@coldqueen9255
@coldqueen9255 5 жыл бұрын
This is amazing! Please do more animations like this. I want to try making this with click event and add it to a div which already contains a paragraph.
@jackb7705
@jackb7705 4 жыл бұрын
Use box-sizing: border-box; over width: calc(100% - 2em); This will take padding in to account when calculating widths. You don't want to be duplicating your code. Keep it DRY!
@musthavechannel5262
@musthavechannel5262 4 жыл бұрын
Also no units needed for 0, *rgba(255, 255, 255, 0);* can be *rgba(0, 0, 0, 0);* or simply *opacity: 0;* but don't forget to animate the opacity property in transition.
@lolow313
@lolow313 4 жыл бұрын
I always use this at the beginning of every css file: *{ box-sizing: border-box; }
@tijsvlphotography
@tijsvlphotography 3 жыл бұрын
@@musthavechannel5262 You're correct with using opacity. But if you use rgba(0,0,0,0) the color would be changing during the .5s transition. So halfway during the transition the text would actually be rgba(127,127,127,0.5). Hardly noticeable that the "i" is gray at half opacity, but it's still an unwanted side effect you'd want to avoid. I'm with you on using opacity though.
@RajPhotoEditingMuchMore
@RajPhotoEditingMuchMore 3 жыл бұрын
Amazing sir, thanks a lot 😊😊🙏
@luisrogelio98
@luisrogelio98 5 жыл бұрын
So cool didn't even know this was a thing , so many cool User interactions could be done with this
@kipsangaaraplimo1442
@kipsangaaraplimo1442 5 жыл бұрын
Great sir...Thanks am gonna do this tonight till dawn!
@JOHN-mq4pp
@JOHN-mq4pp 4 жыл бұрын
😂😂 Till dawn
@FullStackMaster
@FullStackMaster 5 жыл бұрын
Thanks for this cool tips on css. I am looking for applying this to my project!
@lcr833
@lcr833 5 жыл бұрын
Great video and very good explanations. Cheers!
@MichaelCampbell01
@MichaelCampbell01 4 жыл бұрын
You're teaching me things I didn't know I needed, and now I can't live without. Thanks... I think? ;-)
@quentinli5802
@quentinli5802 4 жыл бұрын
i really like that circle part. thanks sir
@stanleymasinde357
@stanleymasinde357 4 жыл бұрын
This kinda opened my eyes. Thanks a lot
@kasta867
@kasta867 4 жыл бұрын
Love to see some love for pure Sass/Css animations! You earned a subscribe from me!
@sherozehaidervlogs3283
@sherozehaidervlogs3283 4 жыл бұрын
Thank you sir very much Your way of teaching is so brilliant by the way i am hovering many channel videos but most of the video that I like is yours.
@user-hr8ny3di3r
@user-hr8ny3di3r 5 жыл бұрын
That was awesome! I really love all these stylish gradients and animations in css. Thanks for the great vid!
@johngreen7535
@johngreen7535 3 жыл бұрын
ooohhh that will make my projects look way better! thank you!
@devarshbhatt5612
@devarshbhatt5612 5 жыл бұрын
Great Tutorial, Very Helpful! Thank you very much!
@PterPmntaM
@PterPmntaM 4 жыл бұрын
Good series of video i saw in your channel, thanks for all.
@AbdellahRamadan
@AbdellahRamadan 5 жыл бұрын
Hello Gary. Thanks for the great video.
@luis96xd
@luis96xd 3 жыл бұрын
Wow, excellent video, I liked this effect! Thanks 😄
@csstutorials6333
@csstutorials6333 5 жыл бұрын
Good video, like always I learned something new :D
@pemessh
@pemessh 4 жыл бұрын
Like always, amazing video
@yusi9437
@yusi9437 2 жыл бұрын
How does youtube know what I need to watch suddenly? Thx a lot for this Gary 😄
@LumbreraEnMiCamino
@LumbreraEnMiCamino 5 жыл бұрын
Please, more tutorials like this one!!!
@AlexanderSavchenko91
@AlexanderSavchenko91 4 жыл бұрын
Thanks a lot! Easy and awesome! can't wait to put it somewhere :)
@Horoe
@Horoe 4 жыл бұрын
This is the first video I watched about sass and my brain is fried.
@raggebatman
@raggebatman 4 жыл бұрын
If you understand CSS then Sass won't be that hard. It's really useful as it greatly shortens down repetitive code, for example putting classes inside of the container class which would compile it to ".container .class" There's also functions, variables (which are a thing in CSS now but still) and a bunch more. Quite interesting, W3Schools has a really good tutorial on it if you think it sounds useful
@Awelmann1
@Awelmann1 2 жыл бұрын
Lots of cool syntax i didnt know before
@dannyr2976
@dannyr2976 2 жыл бұрын
Excellent tutorial, thank you!
@DavidElstob73
@DavidElstob73 5 жыл бұрын
Awesome. Just updated a client's website with this little trick. Thanks. :)
@razenkellesly20
@razenkellesly20 5 жыл бұрын
Creative As usual . Thanks
@C2theCity
@C2theCity 5 жыл бұрын
Amazing, didn't know so much was possible without any real coding like JavaScript or jQuery. Thanks!
@not2day646
@not2day646 5 жыл бұрын
Ya css has gotten pretty powerful over the years.
@AlbertoChamorro
@AlbertoChamorro 5 жыл бұрын
Thanks for this video, it's so cool!
@mayurravindra9433
@mayurravindra9433 3 жыл бұрын
Thank You Sir!❤
@msdhaliwal
@msdhaliwal 4 жыл бұрын
you made it look super easy 👌🏻
@ikkyusan
@ikkyusan 3 жыл бұрын
Pretty cool 🤓 Thanks!
@user-vx6gt5lr4t
@user-vx6gt5lr4t 4 жыл бұрын
You are hero man 👏🏼 Keep going forward..
@MastoSto
@MastoSto 5 жыл бұрын
Thanks again Jeremy Renner!
@uncle-xxi
@uncle-xxi 4 жыл бұрын
Really cool stuff!
@najimali32
@najimali32 4 жыл бұрын
Crazy man😻. Will try it.
@leolr111
@leolr111 5 жыл бұрын
Great tutorial!, thanks for share, greetings from Mexico :)
@nicholasc.5944
@nicholasc.5944 3 жыл бұрын
Quite an interesting css property
@Ara_Ara2
@Ara_Ara2 5 жыл бұрын
GREAT VIDEO but i think you should do like a review at the end and explain what's happening because sometimes it can be confusing
@blendjams
@blendjams 4 жыл бұрын
With grid you can use place items, which is a combination of both justify and align items
@elgs1980
@elgs1980 3 жыл бұрын
Thank you so much!
@EzequielRegaldo
@EzequielRegaldo 5 жыл бұрын
Hi ! thanks for your videos :D u can use "place-items: center" instead "justify-items and align-items" or "place-items: start auto" for example if u want to combine both
@PaulMcCannWebBuilder
@PaulMcCannWebBuilder 5 жыл бұрын
Hate to be 'that guy', but place-items doesn't work in Edge. : (
@hamzayoutube419
@hamzayoutube419 4 жыл бұрын
thks
@enkr1
@enkr1 4 жыл бұрын
Inspiration! thank you!!
@naimurhasanrwd
@naimurhasanrwd 5 жыл бұрын
Awesome plan
@piyushgupta809
@piyushgupta809 5 жыл бұрын
awesome tutorial !
@anawhite2562
@anawhite2562 4 жыл бұрын
this is AWESOME!
@adityarocker7205
@adityarocker7205 3 жыл бұрын
really fantastic
@wgalloPT
@wgalloPT Жыл бұрын
Honestly, KISS principle applies here.....amazing tutorial, thank you...
@Driinufyer98
@Driinufyer98 4 жыл бұрын
Cool video thanks for sharing
@play.dvdagreat
@play.dvdagreat 3 жыл бұрын
The outro is lit
@quytanairhouse
@quytanairhouse 3 жыл бұрын
Wow, tks so much, it's great video
@richy2496
@richy2496 4 жыл бұрын
Really cool !
@g00dvibes47
@g00dvibes47 5 жыл бұрын
I’m a big fan on using radial menus on mobile devices and other software where appropriate but never really thought about using it in a web app; thanks for the great content! Would be interested in seeing how to leverage this technique with something like Angular to manage view click events inside of the expanded radial. Anyway, thanks again
@phamtiensang3316
@phamtiensang3316 3 жыл бұрын
Omg, thanks alot !!!!!. I learn a lot from your video :333
@GamingTSH
@GamingTSH 3 жыл бұрын
bro Programming BY TSH This channel is so good bro .....channel name - Programming BY TSH
@StoryTeller25423
@StoryTeller25423 5 жыл бұрын
I managed to follow the video really good doing it now as you say it but dude you are so fast the number of times i had to pause was just so much slow-down alil bit Thank you
@xXDarkice
@xXDarkice 5 жыл бұрын
your ui video was awesome
@Soap_js
@Soap_js 3 жыл бұрын
well done
@ankushsonone8433
@ankushsonone8433 3 жыл бұрын
Awesome brother
@GamingTSH
@GamingTSH 3 жыл бұрын
bro Programming BY TSH This channel is so good bro .....channel name - Programming BY TSH
@MrEttirammstein
@MrEttirammstein 3 жыл бұрын
Very helpful 👍👍👍👍
@superknife0512
@superknife0512 5 жыл бұрын
Really awesome
@judeagagad2826
@judeagagad2826 4 жыл бұрын
Thank you Hawk-eye
@alexgochenour8740
@alexgochenour8740 4 жыл бұрын
That was brilliant. Concise, with a ton of great techniques. Thanks!
@zzvenuszz
@zzvenuszz 4 жыл бұрын
it's look really nice.
@casiothestrong
@casiothestrong 5 жыл бұрын
@DesignCourse, why would you transition color of the span instead of opacity? Browsers recalculate a lot of layout information for all CSS properties except for opacity and transform. Those two properties are utilized in the Paint method of a browser so it's FAR less taxing on the computer/mobile device. Another way to optimzie the transitions/animations of your elements would be to use the 'will-change' property which is supported by most major browsers to tell the browser itself to optimize those transitions. This will ensure a smoother and less taxing UI for computer and mobile users. Just want to share this for all up-coming developers who want to learn the best practices. PS: Great tutorial. I love this concept behind this element.
@grzesieksgs
@grzesieksgs 4 жыл бұрын
In additon, You should mention that `will-change` shouldn't be overused, and attached possibly just before transition happens, because it forces browser to create new layout layer ;)
@sjn_
@sjn_ 4 жыл бұрын
I would say, these online web tutors should always mention this as a side note whenever they're animating the properties that are expensive. The clip-path may be easier to create this effect but not so performant on mobile devices. There should be more tutorials on creating animations like these but by only using transform as much as possible. I did something like what he showed in the video but using only transform property and it was pretty difficult to achieve compared to the clip-path, height/width method but much more smoother.
@dealloc
@dealloc 4 жыл бұрын
When designing or programming, performance is important, but it is also too easy to jump in the rabbit hole of pre-optimization which is bad, because then you're writing code for optimization rather than readability most of the times, and that can hurt maintainability. Build first, optimize later. I like to think of performance as an accessibility, but don't overdo it. Sometimes it comes with costs too. E.g. the overuse of things like will-change, memoization, etc. can cause a design or an app to become slower over time. Test different devices and browsers to see if it affects performance, or has different visual artifacts. If your animations causes performance issues, just remove them. The less animation, the better. They may look fancy, but animations can hurt accessibility if it's overdone, so use it sparingly. Also opacity and color are different operations. Depending on what you're trying to achieve, you may have to consult to using one or the other. For example can animating opacity cause antialiasing on text to glitch in some browsers and devices such as WebKit/Safari, Opera, etc.
@jackb7705
@jackb7705 4 жыл бұрын
Makes far more sense to use `opacity` or `display: none` over just changing color. What if I want to change the font color to orange? You'll get a weird gradient change from orange to white to transparent by using the color property.
@turnbrain3049
@turnbrain3049 5 жыл бұрын
Great video, I really love your videos. I think we can do this using css border raduis and css transition.
@gobadri
@gobadri 4 жыл бұрын
Hey you bad guy :D, you made me just stick to Montserrat then you switch it!! Now I'll go this path again with Nunito I think :D
@srmatthews6448
@srmatthews6448 5 жыл бұрын
THANK YOU 🙏
@keshav2kumar
@keshav2kumar 7 ай бұрын
Amazing
@prakash1to7
@prakash1to7 4 жыл бұрын
what a crazy reaction at 06:25 - "what is the fourth one?"
@vengateshvaidyanathang550
@vengateshvaidyanathang550 4 жыл бұрын
Thanks a lot
@DiegoPovedaOficial
@DiegoPovedaOficial 5 жыл бұрын
Thank you...so re awesome
@Arctect
@Arctect 5 жыл бұрын
very, very cool
@leonardomayairegui2848
@leonardomayairegui2848 4 жыл бұрын
Love it
@mohammedfathi9129
@mohammedfathi9129 5 жыл бұрын
you are the best
@mkm1015
@mkm1015 4 жыл бұрын
Gary, you are an awesome dude. So much knowledge & tips on your channel. Thank you for everything, seriously. A quick question- I want to get into graphic design but don't know should I focus just on one thing (logo deisgn or web design for example) or be a ninja master like you?? :) I mean you know EVERYTHING ( logo design, web/UI deisgn, front-end dev) Specialize or generalize? What is in demand?
@CTechMedia
@CTechMedia 4 жыл бұрын
really helpfull
@prakashale1627
@prakashale1627 5 жыл бұрын
Nice dude
@vinothkumarv9722
@vinothkumarv9722 4 жыл бұрын
Hi love css and also u r teaching is awesome .... love you friend please give me more vidoe like this types of ui intraction... :)
@zayarlyn
@zayarlyn 2 жыл бұрын
awesome
@choonajashaboo9956
@choonajashaboo9956 5 жыл бұрын
It is very very cool.
@yordissj2
@yordissj2 4 жыл бұрын
Maestro de maestro :D
@bafercms1413
@bafercms1413 5 жыл бұрын
This is impractical unless the container DIV has an absolute position with the z-index of zero and then on the span:hover event get changed to the largest z-index. So there is a need for a little javascript after all.
@m3rl1on
@m3rl1on 5 жыл бұрын
Oooh shiny
@jampietri583
@jampietri583 3 жыл бұрын
Nice metal outro song
STOP The CSS Grid Confusion - 2 Ways to GRID!
26:09
DesignCourse
Рет қаралды 178 М.
Top 10 CSS One Liners That Will Blow Your Mind
13:34
developedbyed
Рет қаралды 922 М.
When You Get Ran Over By A Car...
00:15
Jojo Sim
Рет қаралды 28 МЛН
- А что в креме? - Это кАкАооо! #КондитерДети
00:24
Телеканал ПЯТНИЦА
Рет қаралды 7 МЛН
Did you believe it was real? #tiktok
00:25
Анастасия Тарасова
Рет қаралды 56 МЛН
Cool UI Effect with SVG Clip Path, CSS Aspect Ratio & More..
21:29
DesignCourse
Рет қаралды 60 М.
CSS Tips And Tricks I Wish I Knew Before
12:12
Lama Dev
Рет қаралды 444 М.
Learn CSS Positioning Quickly With A Real World Example
8:32
Slaying The Dragon
Рет қаралды 610 М.
CSS Anchor Is The Best New CSS Feature Since Flexbox
15:39
Web Dev Simplified
Рет қаралды 360 М.
Curved/Custom DIV Shape Tutorial - CSS & SVG
4:35
Red Stapler
Рет қаралды 253 М.
10 modern layouts in 1 line of CSS
21:39
Chrome for Developers
Рет қаралды 1,1 МЛН
The new CSS pseudo-classes explained - :is() :where() :has()
13:50
Kevin Powell
Рет қаралды 132 М.
Top 10 Advanced CSS Responsive Design Concepts You Should Know
20:16
Web Dev Simplified
Рет қаралды 508 М.
10 Tailwind Classes I Wish I Knew Earlier
13:31
Web Dev Simplified
Рет қаралды 170 М.
Jatuh dua berturut turut
0:15
CIREBON VLOG JEH
Рет қаралды 39 МЛН
devil Pk jesus 😱❤️😈#devil #jesus #shorts
0:15
Jesus Vs thank Devil
Рет қаралды 21 МЛН
Best Father #katebrush #shorts
0:17
Kate Brush
Рет қаралды 13 МЛН
ToRung short film: 🙏get a free meal🤤
0:41
ToRung
Рет қаралды 27 МЛН
Решила папу порадовать
0:33
FanClub Garik Ugarik
Рет қаралды 8 МЛН