This "knockout" effect is one of the coolest things I've come across! Here's how to do it!

Поділитися
Вставка
  • Опубліковано 27 сер 2024
  • In today's tutorial, I'm diving deep into a unique website effect I stumbled upon recently. While browsing for design inspiration, I discovered an amazing knockout card design on the Frame.xyz site. These cards featured a cool geometric pattern that allowed the glowing orbs behind them to shine through. Naturally, I had to figure out how it was done and share it with you!
    Join me as I take you step-by-step through the entire process of replicating this knockout card effect on your own website. We'll cover everything from the initial setup to the detailed CSS required to achieve this look. And as a bonus, I'll show you a creative adaptation that combines this effect with glassmorphism for an even more stunning result.
    🗨 Join Our Free Community: theadmin.bar/y...
    📨 Get the Best of The Admin Bar Delivered: theadmin.bar/y...
    🔁 Sell More Care Plans: theadmin.bar/y...
    🧮 Use My Website Price Calculator: theadmin.bar/y...
    📜 Get My Proposal Template: theadmin.bar/y...
    ☑️ Get More Done with My Checklists: theadmin.bar/y...
    🔴 Live Event Schedule: theadmin.bar/y...
    🔧 The Tools I Use: theadmin.bar/y...
    ⚡ My Agency, OGAL Web Design: theadmin.bar/y...

КОМЕНТАРІ • 54

  • @TheAdminBar
    @TheAdminBar  3 місяці тому +7

    I have a goal to hit 10K subs this year - if you're not already, please consider helping me by hitting that subscribe button!

    • @steffox6362
      @steffox6362 2 місяці тому

      I would like to click on subscribe 10 more times, that's how cool I think your channel is!! But unfortunately it only works 1 time. Good luck reaching the 10K 👍

  • @christopher_cardoen
    @christopher_cardoen 2 місяці тому +7

    Thank you for sharing. This is so cool. For those that just want the code. Here it is:
    Glowing bg effect:
    .knockout-wrapper::before, .knockout-wrapper::after {
    content: "";
    position: absolute;
    height: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 100vw;
    filter: blur(100px);
    }
    .knockout-wrapper::before {
    background-color: rgba(128, 0, 128, 0.5); /* Purple */
    left: 10%;
    }
    .knockout-wrapper::after {
    background-color: rgba(0, 0, 255, 0.5); /* Blue */
    right: 10%;
    }
    Glassmorphism effect:
    .knockout-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
    url('icon-url') no-repeat top -20px right -20px;
    mask-image: linear-gradient(black, black), url('icon-url');
    mask-size: 100% 100%, 125px;
    mask-repeat: no-repeat;
    mask-position: center, top right;
    mask-composite: subtract;
    border-radius: inherit;
    z-index: 5;
    }
    .knockout-card {
    position: relative;
    backdrop-filter: blur(10px);
    z-index: 10;
    }

    • @LupusDesign
      @LupusDesign Місяць тому

      I was also taking notes . . . thank you for doing so!

  • @booney87
    @booney87 День тому

    Thanks Kyle for sharing. Get to learn: backdrop-filter and mask-compsite. Keep up with the good work.

  • @davidwalls2304
    @davidwalls2304 2 місяці тому

    Thanks Kyle, great video. You are right, this is a nice effect. I'm going to give this a try on my next build using ACSS. I appreciate the use of CSS in this video.

  • @evaniveson
    @evaniveson 3 місяці тому +2

    Great tutorial Kyle. Love how much you can do with mask now. Those cards look sharp! I also appreciate that you wrote the card styling in CSS instead of the builder. As someone that doesn't use the block editor, it made it really easy to follow along.

    • @TheAdminBar
      @TheAdminBar  3 місяці тому +2

      Thanks so much - really glad you enjoyed it and I appreciate the feedback!

  • @franktielemans6624
    @franktielemans6624 Місяць тому

    Never heard of mask-composite.
    There are also other values. intersect, exclude, substract and add.
    So they included some pathfinder stuff from Illustrator into CSS. Damn cool.

  • @jack2media
    @jack2media 2 місяці тому

    Im reading your future and I see 10k subscribers real soon 🔮

  • @thewebstylist
    @thewebstylist 2 місяці тому

    Very cool style

  • @JohnMWeaver
    @JohnMWeaver 2 місяці тому

    You are incredible!

  • @suzannebaker8053
    @suzannebaker8053 3 місяці тому

    Love this effect! Great tutorial and easy to follow along! Thank you!

  • @sophiemulders
    @sophiemulders 2 місяці тому

    So cool effect!! Definitly saving this idea!!!

  • @anmariejames2646
    @anmariejames2646 2 місяці тому

    Cool looks! I’m pretty new at builds, but I think you explained the CSS very well. Gonna try these.

    • @TheAdminBar
      @TheAdminBar  2 місяці тому

      Thanks so much - I'm glad it was helpful! 🙌

  • @metalfuryskulls
    @metalfuryskulls 2 місяці тому

    Really clever Kyle, well done on reverse engineering that!

  • @EdHallPhotoFL
    @EdHallPhotoFL 3 місяці тому

    Thanks Kyle! that's a great tutorial. LLots of great ideas to work with.

  • @AprendiendoConAmberD
    @AprendiendoConAmberD 3 місяці тому

    That was amazing! 😧 I’m definitely trying it later!

  • @MrOliver1444
    @MrOliver1444 2 місяці тому

    Hey Kyle, that was a good one! Especially the mask stuff. Well done!

    • @TheAdminBar
      @TheAdminBar  2 місяці тому

      Thanks man - I'm really glad you enjoyed it! 🙌

  • @JocelinCarvajal
    @JocelinCarvajal 2 місяці тому

    this is AMAZING!! My CSS is basic at best but I need to learn it so i can do this on my websites!

    • @TheAdminBar
      @TheAdminBar  2 місяці тому

      You got this 🙌 All it takes it practice and trial and error!

  • @AmandaLucaseu
    @AmandaLucaseu 3 місяці тому

    Great tutorial Kyle 👍🏻

  • @iamYasin22
    @iamYasin22 3 місяці тому

    Always love your content

    • @TheAdminBar
      @TheAdminBar  3 місяці тому

      Thanks so much, Yasin! 🙌

  • @bulletsingh
    @bulletsingh 3 місяці тому

    You are OP 🔥

    • @TheAdminBar
      @TheAdminBar  3 місяці тому

      I'll take that as a compliment and Google what it means later 😂

  • @rh619
    @rh619 3 місяці тому

    awesome tutorial

  • @Earthcrosser
    @Earthcrosser 3 місяці тому

    Thank you for this wonderful tutorial! I just subscribed. ;-)

    • @TheAdminBar
      @TheAdminBar  2 місяці тому

      Thank you and welcome aboard!

  • @piratebasscaptain
    @piratebasscaptain 3 місяці тому

    As always great great content, thanks for those videos, really pro job

    • @TheAdminBar
      @TheAdminBar  3 місяці тому +1

      Thanks so much - really glad you enjoyed it 🙌

  • @advanced-developers
    @advanced-developers 2 місяці тому

    Good

  • @leonardo_iann
    @leonardo_iann 3 місяці тому

    Thanks for the video Kyle, top content! Out of curiosity: could any steps in the process have been done with the new updates (global styles) from Gb? Maybe the background gradient?

    • @TheAdminBar
      @TheAdminBar  3 місяці тому +1

      Yeah, a lot of it **could** be done - but I find it to be a lot more difficult. You end up clicking through so many things.

  • @webgeneral
    @webgeneral 3 місяці тому

    Brilliant!

    • @TheAdminBar
      @TheAdminBar  3 місяці тому

      Hope you can put it to use!

    • @webgeneral
      @webgeneral 3 місяці тому

      @@TheAdminBar Me too :D ... 10K should be a peace of cake.

  • @LupusDesign
    @LupusDesign Місяць тому

    Super tutorial - but I avoid Gutenberg!

  • @RJAdams
    @RJAdams 2 місяці тому

    When doing:
    .knockout-card > *{
    z-index: 100;
    }
    and
    .knockout-card::after { background:red; }
    it isn't adding a background... i am wondering if there are somedefaults you have that are making yours work and mine not.

    • @TheAdminBar
      @TheAdminBar  2 місяці тому

      Hummm hard to say without looking at it. Keep in mind, your pseudo-element must have a position, content, a size, and coordinates.

  • @jack2media
    @jack2media 2 місяці тому

    Could you do it for elementor?

    • @TheAdminBar
      @TheAdminBar  2 місяці тому

      Sorry, I don't use Elementor - I have no idea.

  • @nostressirish2767
    @nostressirish2767 3 місяці тому

    Very nice. You get one more sub to reach your 10k goal.