Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Neumorphsim App</title>
    <link rel="stylesheet" href="style.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.11.2/css/all.min.css" integrity="sha256-+N4/V/SbAFiW1MPBCXnfnP9QSN3+Keu+NlB+0ev/YKQ=" crossorigin="anonymous" />
</head>
<body>
    <div class="display">
        <div class="container">
            <div class="top-buttons">
                <div class="btn"><i class="fas fa-angle-left"></i></div>
                <div class="btn"><i class="fas fa-search search"></i></div>
            </div>
            <div class="app-details">
                <div class="profile">
                    <div class='profile-inner'>
                        <p>3144 Followers</p>
                        <p>173 Following</p>
                        <p id="out">Sign Out ></p>
                    </div>
                </div>
                <h2>Welcome Back, <span>Kyle</span>!</h2>
                <div class="bar"></div>
                <div class="choice-buttons">
                    <a class="btn">Browse</a>
                    <a class="btn">Subscriptions</a>
                </div>
            </div>
            <div class="suggestions">
                <h2>
                    We think you might like these articles:
                </h2>
                <div class="articles">
                    <span>The Web in 2020 to 2025. <i class="fas fa-angle-double-right btn"></i></span>
                    <span>Hidden Javascript Gems <i class="fas fa-angle-double-right btn"></i></span>
                    <span>CSS trends of tomorrow.. <i class="fas fa-angle-double-right btn"></i></span>
                </div>
            </div>
            <div class="footer">
                <div class="btn tab left">
                    <i class="fas fa-home"></i>
                    <p>Home</p>
                </div>
                <div class="btn tab">
                    <i class="fas fa-newspaper"></i>
                    <p>News</p>
                </div>
                <div class="btn tab">
                    <i class="fas fa-user"></i>
                    <p>Profile</p>
                </div>
                <div class="btn tab right">
                    <i class="fas fa-bars"></i>
                    <p>Menu</p>
                </div>
            </div>
        </div>
      </div>
<footer style="margin-top: 50px;">
        <a style="text-decoration: none;color: #444;" href="https://www.davidhaz.com/">www.davidhaz.com</a></footer>
    <script src="app.js"></script>
</body>
</html>
              
            
!

CSS

              
                @import url("https://fonts.googleapis.com/css?family=Poppins:300,600,800&display=swap");

*,*::after,*::before{
    box-sizing: border-box;
}

html{
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body{
    margin: 0;
    height: 100vh;
    width: 100%;
    background: linear-gradient(318.32deg, #C3D1E4 0%, #DDE7F3 55%, #D4E0ED 100%);
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    align-content: center;
    font-family: 'Poppins', sans-serif;
}

.display {
    
    width: 300px;
    height: auto;
    position: relative;
    border-radius: 18px;
    box-shadow: 4px 2px 16px rgba(136, 165, 191, 0.48), -4px -2px 16px #FFFFFF;
    -webkit-tap-highlight-color: transparent;
    transition: all 600ms ease;
    .container {
        margin: 0;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        border-radius: 16px;
        transition: all .2s ease-in-out !important;
        
    }

}

.btn.active{
    box-shadow: inset 3px 3px 7px rgba(136, 165, 191, 0.48), inset -3px -3px 7px #FFFFFF !important;
    i {
        text-shadow: 1px 1px 1px #d6e1ef99, 0 0 0 #000, 1px 1px 1px #d6e1ef00;
        transition: all 600ms ease;
    }
    transition: all 600ms ease;
}

i {
    user-select: none;
    transition: all .2s ease-in-out;
    font-size: 32px;
    position: relative;
    color: rgba(201, 215, 230, 0.8);
    text-shadow: 2px 2px 2px #d6e1ef99, 0 0 0 #000, 2px 2px 2px #d6e1ef00;
}

.search{
    font-size: 22px;
}

//

.top-buttons{
    width: 100%;
    position: relative;
    top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    .btn{
        cursor: pointer;
        margin: 0px 20px 50px 20px;
        display: flex;
        justify-content: center;
        align-items: center;
        box-shadow: 4px 2px 16px rgba(136, 165, 191, 0.48), -4px -2px 16px #FFFFFF;
        width: 45px;
        height: 45px;
        border-radius: 10px;
    }
}



.app-details{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    h2{
        font-family: 'Poppins';
        font-weight: 300;
        letter-spacing: -1px;
        color: #444;
        text-shadow: 4px 2px 6px rgba(136, 165, 191, 0.48), -4px -2px 6px #FFFFFF;
        span{
            color: #5ABCB9;
        }
    }
}

.profile{
  cursor: pointer;
    position: relative;
    width: 100px;
    z-index: 5;
    height: 100px;
    border: 1 px solid #DDE7F3;
    background-image: url(https://images.unsplash.com/photo-1532318065232-2ba7c6676cd5?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=837&q=80);
    box-shadow: 4px 2px 6px rgba(136, 165, 191, 0.48), -4px -2px 6px #FFFFFF;
    background-size: 200px;
    background-position: -55px -20px;
    background-repeat: no-repeat;
    border-radius: 100%;
    filter: grayscale(20%);
}

.profile:hover .profile-inner{ 
    transform: rotateY(0deg) rotateX(0deg) scale(1.5);
    transition: 500ms ease-in;
    cursor: pointer;
}

.profile-inner{
    position: relative;
    transform: rotateY(90deg) rotateX(-180deg);
  cursor: pointer;
    width: 100%;
    height: 100%;
    background-color: rgba(90, 188, 185, 0.95);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-shadow: 4px 2px 6px rgba(0, 0, 0, 0.48);
    border-radius: 100%;
    transition: all 300ms ease-out;
    p{
        margin: 0;
        font-size: 10px;
        i{
            font-size: 10px;
        }
    }
    #out{
        margin-top: 10px;
        text-decoration: underline;
    }
}

.bar{
    position: relative;
    top: -20px;
    height: 2px;
    width: 60%;
    background-color: #444;
    box-shadow: 4px 2px 6px rgba(136, 165, 191, 0.48), -4px -2px 6px #FFFFFF;
}


.choice-buttons{
    width: 100%;
    display: flex;
    justify-content: space-between;
    .btn{
        margin: 0;
        font-size: 12px;
        width: 45%;
        padding: 10px;
        text-align: center;
        cursor: pointer;
        box-shadow: 4px 2px 12px rgba(136, 165, 191, 0.48), -4px -2px 12px #FFFFFF;
        border-radius: 10px;
        color: #444;
        text-shadow: 4px 2px 6px rgba(136, 165, 191, 0.48), -4px -2px 6px #FFFFFF;
        transition: all 300ms;
    }
}

.footer{
    margin: 0;
    padding: 0;
    width: 100% ;
    height: 60px;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    box-shadow: 4px 2px 12px rgba(136, 165, 191, 0.48), -4px -2px 12px #FFFFFF;
    display: flex;
    align-self: flex-end;
    justify-content: center;
}

.tab{
    cursor: pointer;
    width: 25%;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
    justify-content: center;
    align-items: center;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    i{
        font-size: 20px;
        margin: 0;
    }
    p{
        font-size: 15px;
        margin: -2px;
        color: rgba(68, 68, 68, 0.4);
        text-shadow: 4px 2px 6px rgba(136, 165, 191, 0.48), -4px -2px 6px #FFFFFF;
    }
}

.left{
    border-bottom-left-radius: 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    i{
        color: rgba(90, 188, 185, 0.5);
    }
    p{
        color: rgba(90, 188, 185, 0.5);
    }
}

.right{
    border-bottom-right-radius: 16px;
}

.suggestions{
    width: 100%;
    height: 30%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
    .articles{
        margin-top: 10px;
        width: 90%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        i{
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
            margin-left: 10px;
            padding: 10px;
            width: 25px;
            height: 25px;
            font-size: 15px;
            box-shadow: 2px 2px 12px rgba(136, 165, 191, 0.48), -2px -2px 12px #FFFFFF;
            border-radius: 100%;
            cursor: pointer;
        }
        span{
            display: flex;
            margin-bottom: 25px;
            font-size: 15px;
            color: #444;
            text-shadow: 4px 2px 6px rgba(136, 165, 191, 0.48), -4px -2px 6px #FFFFFF;
            transition: all 200ms ease;
        }
        span:hover{
            cursor: pointer;
            text-shadow: 0px 0px 1px rgba(0, 0, 0, 0.48);
            transform: scale(1.05);
            transition: 200ms ease;
        }
    }
    h2{
        color: rgba(68, 68, 68, 0.4);
        text-shadow: 4px 2px 6px rgba(136, 165, 191, 0.48), -4px -2px 6px #FFFFFF;
        text-align: center;
        font-weight: 300;
        margin: 0px 50px;
        font-size: 15px;
    }
}
              
            
!

JS

              
                const btns = document.querySelectorAll('.btn');

for (const btn of btns) {
        btn.addEventListener('mouseover', () => {
                btn.classList.add('active');
        })
        btn.addEventListener('mouseout', () => {
                btn.classList.remove('active');
        })
}
              
            
!
999px

Console