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

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 พ.ค. 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/yt-community
    📨 Get the Best of The Admin Bar Delivered: theadmin.bar/yt-tfc
    🔁 Sell More Care Plans: theadmin.bar/yt-wom
    🧮 Use My Website Price Calculator: theadmin.bar/yt-calculator
    📜 Get My Proposal Template: theadmin.bar/yt-proposal
    ☑️ Get More Done with My Checklists: theadmin.bar/yt-checklists
    🔴 Live Event Schedule: theadmin.bar/yt-events
    🔧 The Tools I Use: theadmin.bar/yt-tools
    ⚡ My Agency, OGAL Web Design: theadmin.bar/yt-agency

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

  • @TheAdminBar
    @TheAdminBar  หลายเดือนก่อน +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 หลายเดือนก่อน

      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 หลายเดือนก่อน +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 4 วันที่ผ่านมา

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

  • @jack2media
    @jack2media หลายเดือนก่อน

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

  • @davidwalls2304
    @davidwalls2304 28 วันที่ผ่านมา

    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.

  • @franktielemans6624
    @franktielemans6624 9 วันที่ผ่านมา

    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.

  • @evaniveson
    @evaniveson หลายเดือนก่อน +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  หลายเดือนก่อน +2

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

  • @thewebstylist
    @thewebstylist หลายเดือนก่อน

    Very cool style

  • @suzannebaker8053
    @suzannebaker8053 หลายเดือนก่อน

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

    • @TheAdminBar
      @TheAdminBar  หลายเดือนก่อน

      So glad it was helpful!

  • @sophiemulders
    @sophiemulders หลายเดือนก่อน

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

    • @TheAdminBar
      @TheAdminBar  หลายเดือนก่อน

      Glad you enjoyed!

  • @EdHallPhotoFL
    @EdHallPhotoFL หลายเดือนก่อน

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

    • @TheAdminBar
      @TheAdminBar  หลายเดือนก่อน

      Glad you enjoyed it!

  • @JohnMWeaver
    @JohnMWeaver หลายเดือนก่อน

    You are incredible!

    • @TheAdminBar
      @TheAdminBar  หลายเดือนก่อน

      aw, shucks - you are!

  • @iamYasin22
    @iamYasin22 หลายเดือนก่อน

    Always love your content

    • @TheAdminBar
      @TheAdminBar  หลายเดือนก่อน

      Thanks so much, Yasin! 🙌

  • @AprendiendoConAmberD
    @AprendiendoConAmberD หลายเดือนก่อน

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

    • @TheAdminBar
      @TheAdminBar  หลายเดือนก่อน +1

      Glad you liked it!

  • @AmandaLucaseu
    @AmandaLucaseu หลายเดือนก่อน

    Great tutorial Kyle 👍🏻

    • @TheAdminBar
      @TheAdminBar  หลายเดือนก่อน

      Thanks, Amanda!

  • @MrOliver1444
    @MrOliver1444 หลายเดือนก่อน

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

    • @TheAdminBar
      @TheAdminBar  หลายเดือนก่อน

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

  • @piratebasscaptain
    @piratebasscaptain หลายเดือนก่อน

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

    • @TheAdminBar
      @TheAdminBar  หลายเดือนก่อน +1

      Thanks so much - really glad you enjoyed it 🙌

  • @JocelinCarvajal
    @JocelinCarvajal หลายเดือนก่อน

    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  หลายเดือนก่อน

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

  • @anmariejames2646
    @anmariejames2646 หลายเดือนก่อน

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

    • @TheAdminBar
      @TheAdminBar  หลายเดือนก่อน

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

  • @metalfuryskulls
    @metalfuryskulls หลายเดือนก่อน

    Really clever Kyle, well done on reverse engineering that!

    • @metalfuryskulls
      @metalfuryskulls หลายเดือนก่อน

      …love the glass effect too!

  • @rh619
    @rh619 หลายเดือนก่อน

    awesome tutorial

    • @TheAdminBar
      @TheAdminBar  หลายเดือนก่อน

      Thank you! 🙌

  • @Earthcrosser
    @Earthcrosser หลายเดือนก่อน

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

    • @TheAdminBar
      @TheAdminBar  หลายเดือนก่อน

      Thank you and welcome aboard!

  • @bulletsingh
    @bulletsingh หลายเดือนก่อน

    You are OP 🔥

    • @TheAdminBar
      @TheAdminBar  หลายเดือนก่อน

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

  • @webgeneral
    @webgeneral หลายเดือนก่อน

    Brilliant!

    • @TheAdminBar
      @TheAdminBar  หลายเดือนก่อน

      Hope you can put it to use!

    • @webgeneral
      @webgeneral หลายเดือนก่อน

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

  • @leonardo_iann
    @leonardo_iann หลายเดือนก่อน

    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  หลายเดือนก่อน +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.

  • @advanced-developers
    @advanced-developers หลายเดือนก่อน

    Good

  • @LupusDesign
    @LupusDesign 4 วันที่ผ่านมา

    Super tutorial - but I avoid Gutenberg!

  • @nostressirish2767
    @nostressirish2767 หลายเดือนก่อน

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

    • @TheAdminBar
      @TheAdminBar  หลายเดือนก่อน +1

      🙌 Appreciate it!

  • @jack2media
    @jack2media หลายเดือนก่อน

    Could you do it for elementor?

    • @TheAdminBar
      @TheAdminBar  หลายเดือนก่อน

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

  • @RJAdams
    @RJAdams หลายเดือนก่อน

    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  หลายเดือนก่อน

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