Making Cool Diagonal Sections With Webflow

Поделиться
HTML-код
  • Опубликовано: 13 июн 2024
  • Learn how to build Custom designed websites with Webflow:
    zpr.io/gcukf
    -
    Flux is proudly sponsored by Webflow, start a new account with an awesome discount:
    bit.ly/FluxWebflowDiscount
    -
    Instagram: / ransegall
    Twitter: / ransegall
    -
    Gear & Book Recommendations: bit.ly/2ohFOuj

Комментарии • 49

  • @michielvanbruggen
    @michielvanbruggen 4 года назад +1

    That was so much easier than I thought it would be! Thanks!

  • @spencerchow9296
    @spencerchow9296 4 года назад +16

    I used Webflow to create a triangle before. I did it with the boarder instead of rotating the div block. Following CSS Triangle generator, try something like this:
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 200px 200px;
    border-color: transparent transparent #007bff transparent;
    and you will get a proper triangle.

    • @lukedorny
      @lukedorny 3 года назад

      Completely agree. I also instantly thought of this as a better solution, too. 👍 However, if you wanted a gradient in the background, a different solution is needed.

  • @craigthomas4565
    @craigthomas4565 4 года назад

    That is great Ran. Looking forward to seeing more of your tips using Webflow.

  • @eth_fish
    @eth_fish 4 года назад

    Wow, so simple! Thanks for sharing

  • @AdrianJDeNiz
    @AdrianJDeNiz 4 года назад

    Thank you so much this was so helpful!

  • @saraelisa8938
    @saraelisa8938 4 года назад +1

    Coool! That's super, thank you so much🙏🙏

  • @nicolasmarquez5956
    @nicolasmarquez5956 4 года назад

    Very Clever! I also use images to do things like that, but the rotation trick is very nice!

  • @johnleighdesigns
    @johnleighdesigns 3 года назад

    This is a great couple of approaches using a div or svg to get an angle - ive used a div within a single section and that div I gave some negative margin also made it absolute positioning at bottom of the section to keep it at bottom

  • @gregosborne9336
    @gregosborne9336 4 года назад

    Super handy Ran! good job explaining it :)

  • @Oli_Timmis
    @Oli_Timmis 4 года назад +7

    Interesting way of doing it, I like it! I personally use SVGs, that way you can have whatever shaped/angle section divider you want!

    • @audreydesaulniers5176
      @audreydesaulniers5176 4 года назад

      how do you do that though?

    • @Oli_Timmis
      @Oli_Timmis 4 года назад +3

      @@audreydesaulniers5176 Just create an SVG shape (either using an online generator or in your preferred design software, like Figma or Adobe XD etc.). Then set this SVG as a background image in Webflow. Adjust its positioning and fit until you achieve your desired effect.

  • @MORDEKAIZ
    @MORDEKAIZ 4 года назад

    Thank you

  • @DrewEastmead
    @DrewEastmead 4 года назад

    awesome video; thank you!

  • @amirboring
    @amirboring 3 года назад

    Thaks man, very helpful.

  • @jonb5150
    @jonb5150 8 месяцев назад

    Very helpful, thanks!

  • @mehdesigner4572
    @mehdesigner4572 Год назад

    Great video! You can also use Skew method that works just fine and you don't have to deal with the rectangle issue and make it 120% or something like that.

  • @artaxel96
    @artaxel96 3 года назад

    Thanks for the great tip! After doing the diagonal divider, i tried to put content inside the 2nd section right below the divider and I couldn't understand how to adjust it that way, so it's aligned to top of the section right under the diagonal line and the actual height of the section shrinks as well. Could you help me with that please? Thanks in advance!

  • @NomadCulture
    @NomadCulture 2 года назад

    Hey my man it's a great tip, but I couldn't make it stretch, so I always just add an SVG background image.

  • @akashchoudhary5736
    @akashchoudhary5736 3 года назад +1

    Instead just use a gradient background and make transition from one color to another very sharp, it will look like you have two sections with different colors !!

  • @jackcannotbefound
    @jackcannotbefound 4 года назад +4

    Couldn’t you skew the div block on its y axis to keep the width?

    • @Disclosureclips01
      @Disclosureclips01 4 года назад

      I thought the same but it skews bottom and top part of the div block last time i tried..

    • @jackcannotbefound
      @jackcannotbefound 4 года назад

      A-R-S the rotation here would make the bottom angled too though?

    • @coreymoen
      @coreymoen 4 года назад

      Agreed, plus if you used Skew you wouldn't have to fix with a page wrapper!

    • @jackcannotbefound
      @jackcannotbefound 4 года назад

      Corey Moen that’s what I thought!

  • @RodrigoMendoza7
    @RodrigoMendoza7 4 года назад +3

    Hi Ran! I suggest you to try pseudo-elements and clip-path (it's a css property). Through pseudo-elements, you wouldn't need to create an (empty) actual element on the markup. You just do it through CSS and it behaves like a normal HTML element, therefore, you can style it as well (applying the css property I suggested to make the same diagonal effect, for instance). In this particular case, I think it's only a matter of applying that css property on the section with the gradient, that should do it.

    • @lennartgastler332
      @lennartgastler332 4 года назад +1

      exactly what I thought :) 👍

    • @Disclosureclips01
      @Disclosureclips01 4 года назад

      Can u do that with the free account?

    • @crarls27
      @crarls27 4 года назад +1

      Do you mean through custom css?

    • @Disclosureclips01
      @Disclosureclips01 4 года назад

      crarls27 last time i checked to add custom css you have to have a paid account

    • @RodrigoMendoza7
      @RodrigoMendoza7 4 года назад

      @@crarls27 Yes. I'm not sure though if you can get to that level of CSS customization in Webflow.

  • @razvacos7469
    @razvacos7469 3 года назад

    how can be built a blog sidebar and an ecommerce sidebar with filters?

  • @ramverma9675
    @ramverma9675 4 года назад

    Which fonts did you used in your intro ?

  • @polinakarasova1694
    @polinakarasova1694 3 года назад

    That doesn't work since the rotated div is still visible on huge screens and covers the content on small screens

  • @alexandergraham2581
    @alexandergraham2581 2 года назад

    Why not an embed svg?

  • @constantinross7911
    @constantinross7911 4 года назад +1

    Im not familiar with web-flow but couldn't we give the overflow-x: hidden; to the body directly?

    • @anujpanchal1390
      @anujpanchal1390 4 года назад +1

      Yes it works just perfect. I have been using it. Very cool.

    • @EmilVillumsen
      @EmilVillumsen 4 года назад

      You can only give overflow:hidden to the body, not x or y specifically in Webflow

    • @constantinross7911
      @constantinross7911 4 года назад

      @@EmilVillumsen If it is not possible through the UI, can't you just write custom css?

  • @delfs413
    @delfs413 4 года назад

    im not understanding why these videos is not getting more views.

  • @tonys490
    @tonys490 3 года назад

    Wish there is a pen tool on webflow !

  • @anirudhvktakkar
    @anirudhvktakkar 2 года назад

    Wouldn't a clip path be far easier?

  • @tanguygall5759
    @tanguygall5759 Год назад

    The second way doesn’t work on safari unfortunately

  • @polymadsdesign6372
    @polymadsdesign6372 4 года назад

    @Flux Please create a guide / video on a/b testing with webflow! (maybe using google optimize or Optimizely)! :)