Obliterate Boxiness with CSS Shapes

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 ธ.ค. 2024

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

  • @milleniummoses
    @milleniummoses 6 ปีที่แล้ว +40

    WOW! There you go again with awesome content and presentation. I never knew this existed. Dev knowledge and soon-to-be skills just went up a notch.

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

    Really looking forward from you, for a new amazing content & tutorials for the amazing CSS .

  • @mmahgoub
    @mmahgoub 6 ปีที่แล้ว +24

    This channel is a treasure! Thanks!

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

    Wow! You just teach hard staff in light and easy way, and i understood your explanation. i am always scared this clip-path and polygon things. but now i know how it works. it is awesome!

  • @SaleKnezevic
    @SaleKnezevic 5 ปีที่แล้ว +2

    Thank you. I love you. So much useful stuff spoken in such a wonderful manner.
    Obviously not referring to just this video.

  • @HAKIMI-DXB
    @HAKIMI-DXB 4 ปีที่แล้ว

    I have learned a lor from your viseos. one of the best content. easy to understand. thanks

  • @007KrausBean
    @007KrausBean 6 ปีที่แล้ว

    This CSS and the one you did about "CSS Grid like you are Jan Tschichold" are awesome. Looks like the topic of your talk at Generate NYC (I was there and loved it) about making the web more beautiful like magazine layouts can come true now. AWESOME! Keep up the amazing work!

  • @crooker2
    @crooker2 6 ปีที่แล้ว +4

    That's it! With css grid and css shapes... Web design technology is done. We can now do any kind of layouts for the Web. Magazine quality layouts are finally possible (without hacking). :) thanks!

  • @EndSub
    @EndSub 5 ปีที่แล้ว +29

    Somehow I refer to you as the Bob Ross of CSS

  • @sanjaybhatikar
    @sanjaybhatikar 2 ปีที่แล้ว

    Very clever tips from the Goddess of Style 🙂🙏

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

    Your videos are amazing. Thanks for all your contributions to the web community!

  • @NikosKatsikanis
    @NikosKatsikanis 5 ปีที่แล้ว +1

    Nice work and editing!

  • @anisdabdi2567
    @anisdabdi2567 5 ปีที่แล้ว +1

    love your content, professsional, simple, and valuable

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

    Hi Jen, I love CSS-Shapes like you and I love you for your vdeos.
    Anyway about images like grapes, instead of polygon, I prefer to use "shape-outside" passing in the img url and then using the property "shape-image-threshold" by a value from 0 to 1; 0.5 is pretty good and the result is perfect. It also works in Firefox

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

      Yup, that works, too! I teach it less often because getting the image to work with the CORES security limitations can be frustrating. But if you can get the servers to behave, using an image as a mask is a great solution. Especially in a CMS.

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

    Oh wow excellent. I totally forgot all about these things LOL I think the big reason is a lot of the designs for the website have forgotten that they could even do something like this. But you're totally right. It looks Way more fluid and visually interesting.

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

    Great info! Thanks for sharing you're know-how! The polygon shape can be so powerful.

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

    Thanks for the simple and intuitive presentations. This is amazing!

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

    Thank you for posting this video. It's very informative and inspiring. I look forward to experimenting with it.

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

    thanks a lot ma'am... you're my hero in web designing!

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

    how come I havent seen this video before...amazing approach :)

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

    I'm amazed learned so many new stuff

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

    This is awesome stuff! Thank you! Subscribed.

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

      Thank you.

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

      Layout Land you are very welcome

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

    I always learn something from you. So amazing!

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

    Youre videos are amazing! Thank you!

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

    Love your videos, Jen. Just curious as to whether or not that Mozilla Polygon tool ready yet? Anyway, it's stuff like this that makes the web closer and closer to being 'finished' as a content delivery tool...! :)

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

    Thank you! I am new to css/html, is there a way to use float in css grid? Thanks again!

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

    This was a good one, thanks for sharing

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

    Hi, Jen, is there any way in CSS to warp text to fill the bounds of a shape?
    I'm trying to replicate the logo for the web series Chrontendo in HTML/CSS for a fansite I'm working on to present interactive transcripts of the episodes but can't seem to find a way to perform a barrel distortion on the Georgia Bold font that is necessary to complete the logo's appearance.
    I want to keep the wordmark/logo as text, so that it can be transliterated into other scripts/writing systems if a user translates the page.
    Thank you in advance for your answer.

  • @denniskamonde6836
    @denniskamonde6836 6 ปีที่แล้ว +3

    Thanks a lot you're the best! This is amazing

  • @RealToughCandy
    @RealToughCandy 6 ปีที่แล้ว +4

    Love it. Thanks.

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

    I've been eating for this for soooooooo long... 😱

  • @tonyclarke8977
    @tonyclarke8977 4 ปีที่แล้ว

    How did they float triangles on both sides in the last picture?

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

    very important Tutorial

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

    Damn. Where have you been? Great content. Thank you.

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

    Very effective tip, thanks !

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

    Please come back!!!

  • @Anthony-wg7fn
    @Anthony-wg7fn 4 ปีที่แล้ว

    is the firefox extension for the polygon editor available?

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

    Your videos are amazing. You take what would normally be about 50 lines of bootstrap garble and turn it into like 4 lines of CSS lol

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

    I did not understand what she said about the magazine layout (George has rules) and using triangles. Can anyone explain?

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

      Hi
      Jen goes in to a bit more detail about the staircase layout in this talk jensimmons.com/presentation/modern-layouts-getting-out-our-ruts (about 22 minutes in), I really recommend watching the whole presentation but you will want to pause it every couple of minutes to try out the things that she's talking about :)
      I found these two articles alligator.io/css/shapes-with-shape-outside/ and css-tricks.com/working-with-shapes-in-web-design/ along with bennettfeely.com/clippy useful in creating this test lottiehancock.co.uk/shapes/george.htm feel free to play around with it in Chrome using the CSS Shapes editor extension.

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

      I didn't, either. This is the second one of her videos I've watched, and both left me wishing she'd explain things more. She's an excellent web designer, but in both videos she's talked more about how she thinks this or that is beautiful without explaining the code that was used to make the examples. I prefer tutorial videos that actually explain what the viewer needs to learn in order to recreate the example. I wish her videos were more instructional with less "meta-information".

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

    Thank you for the video. Do you have a book or recommend a good one, about this subject?

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

    Great video! How is the browser interpreting where the edge of the photo is? Is it just looking at white background color?

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

      You can point to a mask with shape-outside, and then the browser uses the alpha channel of that image to find the edge by which to flow the text. The examples in my video, however, are using defined shapes - polygons, circles, etc. And the browser is using the shape that's been defined to be the edge. For example, in the grape-photo demo, the CSS itself has a string of numbers that are a polygon. That defines the edge. In any case, no it never looks at the white background. Even when using an image as a mask, the alpha channel is used, not white.

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

      I understand the polygon (grapes) example, and the alpha channel (as src), but ironically, I'm a bit confused about the simplest example: shape-outside:circle/oval.
      What determines the radius of the circle? How do we get a circle/oval nicely spaced around the object rather than too small and cropping in on the photo? Is the radius measured (and set as the min distance) from the center of the image to the edge (whereupon you could add margin if desired)?
      Thank you so much for your time. Pardon my density. I'm thrilled to have stumbled onto your videos!

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

      Ah, those are good questions. I didn't go into all the detail. The default, I believe is that it's finding the center point of the image, and creating an oval where the widest points are at the edge of the image margin box which you can change to any other box, content / padding / border). You can also adjust the center point & edge points. There's far more information at developer.mozilla.org/en-US/docs/Web/CSS/shape-outside than in my head at the moment. We'll be fixing that page up soon, too. Making it more useful. You can also read the spec at: drafts.csswg.org/css-shapes/

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

      Perfect. Thank you.

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

    Awesome tutorial

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

    Great content as always ... shape-outside: circle() does not work in Firefox 60.0.1 64 bit Windows 10. The simple example provided in the video does work in Chrome but not in Firefox.

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

    Is there a way we could create those triangles to be responsive. As in as the page becomes smaller so do the triangles thus manipulating the text within them? I've been trying to recreate them to no avail

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

      Yes! If you create a polygon using percent units, instead of fixed sizes (like px or rem) they will resize with their containing block. The containing block (the element that wraps them) has to also be fluid, of course. If it's a fixed width, nothing will squish.

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

    Does this not work with flexbox?

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

      Well, CSS Shapes only works on an element that is floated. And you cannot float a Grid item or Flexbox item. So, no, you wouldn't be able to directly mix Flexbox and Shapes. However, you could create a layout that's using Flexbox, and float a child of a Flex item, and apply a Shape to that. Say:

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

    This really something we as (originally) print-designers have been waiting for. Especially the decent tools for text-wrap. Is Mozilla going to do a Blog-post or screencast like this about the vector-outline tool when it's finished? Thanks for taking the time to explain and upload this wonderfull technique.

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

      Yes, I will be making videos about our Shape Path Editor once it's done. In the meanwhile, you can see a sneak peak at vimeo.com/250359252

  • @Azamkhan-rb8ji
    @Azamkhan-rb8ji 3 ปีที่แล้ว

    Which editor u have used??

  • @--------------------------2792
    @--------------------------2792 2 ปีที่แล้ว

    Jen Your are awesome ⭐

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

    Thank you !

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

    Uau! Amei. Incrível, de verdade.

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

    great video

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

    Thanks for that , way too cool.

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

    Thanks!

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

    There is no Adobe codepen.io

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

      Gosh, they took down their examples after I made this video. I'll have to create some new demos this spring to better show what's possible with CSS Shapes.

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

    Loved it!!!

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

    HOLAY MOLAYY!! AMAZING!

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

    I was trying to recreate the triangular white space example but couldn't seem to figure it out. Can you help me with that, please? I have a black on either side of a paragraph each with mirror image triangles facing each other. I put color in the divs just so I could see what I was doing. I used clippy.com to get the polygon numbers. Here's the codepen: codepen.io/pen/?editors=1100#

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

    Awesome

  • @mr.zeonilyt4599
    @mr.zeonilyt4599 6 ปีที่แล้ว +1

    thank u mam subscribed

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

    Shape-outside circle property of css isn't working mam please reply i really need this code

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

    Great content overall

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

    :o