• Skip to main content
  • Skip to primary sidebar

WordPress, Genesis Framework and Storefront customization tutorials

  • Archive
    • Genesis
    • WooCommerce
    • WordPress
  • Premium
  • Blog
  • About
    • Tools I Use
  • Contact
  • Login
Home » box-shadow

box-shadow

Neumorphism Box-Shadow Effect

2020-08-26 by Gabor Leave a Comment

Neumorphism Box-Shadow Effect

View Demo

HTML

<body>
    <div class="container">
        <div class="card">
            <div class="box">
            
            </div>
        </div>
    </div>
</body>

SCSS

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #232427;

    .container{
        max-width: 1200px;
        margin: 40px 0;

        .card{
            position: relative;
            min-width: 320px;
            height: 440px;
            box-shadow: inset 5px 5px 5px rgba(0,0,0,0.2), 
                        inset -5px -5px 15px rgba(255,255,255,0.1),
                        5px 5px 15px rgba(0,0,0,0.3),
                        -5px -5px 15px rgba(255,255,255,0.1);
            border-radius: 15px;
            margin: 30px;
            
            .box{
                position: absolute;
                top: 20px;
                left: 20px;
                right: 20px;
                bottom: 20px;
                background: #2a2b2f;
                border-radius: 15px;
                box-shadow: 0 20px 50px rgba(0,0,0,.2);
            }
        }
    }
}

Filed Under: CSS Tagged With: box-shadow

Primary Sidebar

  • Facebook
  • GitHub
  • Instagram
  • LinkedIn
  • Twitter
  • YouTube
WP Rocket - WordPress Caching Plugin
UpdraftPlus Premium

Disclosure: Some of the links in this site are affiliate links. I will be paid a commission if you use this link to make a purchase.

  • Privacy Policy
  • Flames Design
© 2021 WP Flames - All Right Reserved