From a fullstack developer...I love these sort of 'cool discoveries' and your channel has been delivering for YEARS (at least for me)! Oh btw, if you hit Ctrl + Alt + F in vscode, it will automatically format your code! I noticed that you hit tab very often!
muy buen tutorial, muchas gracias, muy buenos los atributos que utilizaste, no conocía el aspect ratio. por cierto ¿qué le sucedió a tu cabello?... me gustan tus videos.
It hurts me when I see people clicking the taskbar to switch between programs. ALT + Tab is your best friend when it comes to switching quickly. Other than that, this video was really cool and inspiring. Think I'm going to test something like this out except with some more complicated shapes. I'm hoping it won't be too difficult. I'm assuming I can't use the aspect ratio thing if I want it to work on all browsers.
I tried to recreate this with another simple shape that I made in Illustrator, scaled it to 1px * 1px and exported it as an svg. I cleaned up the svg and added the defs an clipPath bit, gave it an id,... Wrote the CSS and it didn't work. First thing I noticed when I look at the exported SVG was that the viewbox is not 0 0 1 1 but 0 0 0.1 0.1. Second, I see it exported in group, it has an ID from the layer and even a data attribute (data-name). I deleted all that code, so I only have the path. Also, when I look at your svg I see a transform translate property in the path. Where is this coming from? I don't have that, I only have the path coords in the svg. Strange thing is, when I copy paste your path from the codepen, it does work.
I'm trying to do something similar but moving the clip-path to css file instead of having that in the html, but I'm having troubles with the centering of the clip-path. Anyone tried that?
Hi I found one issue... there is huge blank space under your design. How to get rid of that? If I use clip-path then svg itself is always place somewhere on the worst palce :D Does anyone has any advice ? Thanks ))
Man I was dealing with that in Figma, even if I would set the height 1 and width was less than 1px (constrained proportions) it was being bigger than 1px. Then I just removed "constrain proportions" and set the width and height both to 1px and boom, problem solved!
Gary, first of all thanx for your tuts. But with all the respect, if you can't explain something - it means you dont understad it. Maybe this tut would be better if you make it with a shape that is not the same width and height.
What are some other UI effects/practices/techniques should I feature?
Can u make like all typical animations like slide up and reveal, and all those? From scratch without using any library?
Hi Gary!! This was awesome! Can you please share that article about the "hack" that you mention in the video? Thanks!
Modal forms with calendar, time pickers and so on :)
Hey I don't know why but on clipping that svg the image just disappeared 😓
You mention an article, that explains why you should use the "0 0 1 1" viewbox but you never linked to it
Floating head tutorials!
From a fullstack developer...I love these sort of 'cool discoveries' and your channel has been delivering for YEARS (at least for me)!
Oh btw, if you hit Ctrl + Alt + F in vscode, it will automatically format your code! I noticed that you hit tab very often!
"The deer is actually right here, unfortunately I cut it's head off "
-Gary Simon 2021
Counts as a zombie too :P
gARRY SIMON'S FACE IS ALSO CUT OFF BUT IT IS LIVING
Its head actually got moved to bottom left side
Dude, you are a Godsend. Your channel is a goldmine. Thanks for sharing your skills.
I just want to say one thing I love you OMG it helps me a lot after 3 hours of searching and you come to save the day ♥♥
I admire how consistent and productive you are with your videos. Each video teaches me so much. Thanks!!
nice closing
Today, I was searching for how to make a Svg clip path, Thank You it was great help.
muy buen tutorial, muchas gracias, muy buenos los atributos que utilizaste, no conocía el aspect ratio. por cierto ¿qué le sucedió a tu cabello?... me gustan tus videos.
4:08 so that scale factor == size in px ?
I was actually more interested in the css filter rule and how it applied the shadows
You're the best Gary!!! Keep it up!!
Hey, can you share link to the article with this 1x1px svg hack?
1:12 the dear is actually right here
Could you share the article that you talking about SVG file please ?
I'm a web developer, That's interesting article.
Thanks.
If you find it, share it with me please.
I have so much fun watching your Tuto
You are the best sir, please keep it up!
Your videos are gold🔥🙏
I tried the viewbox trick with a more complex shape but it ended up slightly cropped on the edges...
When is designcourse.com getting released , eagerly waiting
me too but I haven't found any release info yet
Epic work
It hurts me when I see people clicking the taskbar to switch between programs. ALT + Tab is your best friend when it comes to switching quickly. Other than that, this video was really cool and inspiring. Think I'm going to test something like this out except with some more complicated shapes. I'm hoping it won't be too difficult. I'm assuming I can't use the aspect ratio thing if I want it to work on all browsers.
I tried to recreate this with another simple shape that I made in Illustrator, scaled it to 1px * 1px and exported it as an svg.
I cleaned up the svg and added the defs an clipPath bit, gave it an id,... Wrote the CSS and it didn't work.
First thing I noticed when I look at the exported SVG was that the viewbox is not 0 0 1 1 but 0 0 0.1 0.1.
Second, I see it exported in group, it has an ID from the layer and even a data attribute (data-name).
I deleted all that code, so I only have the path.
Also, when I look at your svg I see a transform translate property in the path. Where is this coming from?
I don't have that, I only have the path coords in the svg.
Strange thing is, when I copy paste your path from the codepen, it does work.
The same thing happened to me you are right bro
Just try using with only by adding id to clipPath tag don't delete anything
You should probably use more the browser inspect so that one can see live the changes.
Couldnt this also be done by overlaying those 2 pictures and setting a mix-blend-mode?
Love it 😍
Got idea for my next vid, thanks 😊
Hi Gary!, that's cool!, greetings from Paraguay!
How can we change the shape of svg using animation?
I'm trying to do something similar but moving the clip-path to css file instead of having that in the html, but I'm having troubles with the centering of the clip-path. Anyone tried that?
awesome tutorials
2:59 That's what she said
ohhh.....
Can you do it side by side screen instead of keep switching it
Dope🔥
You are great boss👍
I just love that you cut out the eyes and the face of the deer :O Huge fail
Awsm
Hi I found one issue... there is huge blank space under your design. How to get rid of that?
If I use clip-path then svg itself is always place somewhere on the worst palce :D
Does anyone has any advice ? Thanks ))
I’m not at an editor to test this out, but you can try adding a div around the content, then using flexbox, then aligning the items to center.
you can include your svg without pasting it into your HTML with clip-path: url( [path-to-your-svg].svg#your-id )
cool
awesome but too frequent advertisements are killing it
First one to comment..you are simply the best
what does the hair say?
Man I was dealing with that in Figma, even if I would set the height 1 and width was less than 1px (constrained proportions) it was being bigger than 1px. Then I just removed "constrain proportions" and set the width and height both to 1px and boom, problem solved!
Ok this is actually scary.
I always use Figma to make stuff like this and then import it as an img. Is that fine??
Image reduces page speed.
12:14 I though there was going to be a punchline
Gary, first of all thanx for your tuts.
But with all the respect, if you can't explain something - it means you dont understad it.
Maybe this tut would be better if you make it with a shape that is not the same width and height.
First comment squad😘😘😘😘
In my opinion, I will cut off the deer too and move it in front to look better.
i can't for the life of me get this to work, so frustrating!
How are your pets ?
Why....Why would you use svg for as simple element as box with rounded corners?
If you already showing clip-path at least do some unique shape.
Flying head
Please put a trigger warning before showing decipitated animals (and Garies)