Pure CSS Button with Folded Corner

In this tutorial we will see how to design Pure CSS Button with Folded Corner. Simple CSS is used for this purpose, HTML code and CSS code is given.

HTML Code

HTML Code is given below, in this we have container div with HTML button inside.

<div>
<button class="btn">Click Me</button>    
</div>  

CSS Code

CSS Code is given below, in this code we have used CSS ::before selector and CSS clip-path property to create the folded corner effect.

*
{
    font-family: 'Barlow Condensed',sans-serif;
}
body
{
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: #9CC2D9;
}
.btn
{
    position: relative;
    padding: 10px 50px;
    font-size: 30px;
    font-weight: bold;
    background-color: #372594;
    color: #ddd;
    border: 0px;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.5s;
    clip-path: polygon(10% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 30%);
}
.btn::before
{
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #6855C9;
    left: -2px;
    top: -3px;
    border-bottom-right-radius: 5px;
    box-shadow: 1px 1px 2px 0px #22146E;
    transition: 0.5s;
}
.btn:hover::before
{
    width: 0px;
    height: 0px;
}
.btn:hover
{
   clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 0%);
}

Demo

Video Tutorial

Watch our video tutorial on Pure CSS Button with Folded Corner.

Responsive Sidebar Menu with CSS and JavaScript Cool CSS Button with Hover Animation Pure CSS Custom Radio Buttons Custom Emoji Radio Buttons with CSS Color Picker Design with HTML CSS and JavaScript Custom Radio Buttons with CSS Engraved HTML Buttons With CSS Neumorphic Buttons Design with CSS Cool Profile Card Design with HTML CSS Neumorphic Search Bar Design with HTML and CSS Simple Login Form with Placeholder Animation Pure CSS Button with Folded Corner Background Color Change Slider with HTML CSS and JavaScript 404 Page Not Found Template Design with HTML and CSS Movies Blog Card Design with HTML and CSS Simple CSS Border Animation with before and after Selector Custom Social Select Dropdown Menu with CSS and JavaScript Facebook Offline and Online Notification with CSS and JS New Year 2022 Text Animation with CSS and JS Change Placeholder Color using CSS Custom Select Tag DropDown with CSS and JavaScript Simple Price Range Slider With HTML CSS and JavaScript Profile Card With Hover Effect using HTML and CSS Circle With Two Colors using CSS Simple FAQ Accordion With HTML CSS and JavaScript