LOADING...

Preview

Pen ID
Unlock Campus Themeforest adv

 

Code



    Codepen
    


            

Anis Mashku

@anismashku

Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. At vero eos et accusam et justo duo dolores.

CSS
body {
    font: 12px "Helvetica";
    background: url('https://dl.dropboxusercontent.com/s/rjnjpcw76egzs08/wood.png');
}
.left { float: left; }
.right { float: right; }
.clear { clear: both; }

.container {
    width: 320px;
    background: #eeeeee;
    overflow: hidden;
    height: 435px;
    margin: 50px auto;
    position: relative;
  -webkit-box-shadow: 0px 5px 10px -5px rgba(0, 0, 0, 0.5);
-moz-box-shadow:    0px 5px 10px -5px rgba(0, 0, 0, 0.5);
box-shadow:         0px 5px 10px -5px rgba(0, 0, 0, 0.5);
}
.navigation {
    background: #3E4858;
}
.navigation ul li {
    border-bottom: 1px solid #323846;
    border-top: 1px solid #515e72;
}
.navigation ul li a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    padding: 10px;
    overflow: hidden;
    font: 17px 'Pathway Gothic One', sans-serif;
}
.cover {
    background: url('https://dl.dropboxusercontent.com/s/b9zehob0bif4zr0/newyork.jpg') no-repeat center;
    height: 180px;
    border-bottom: 5px solid #ffffff;
    position: relative;
    -webkit-box-shadow: 0px 5px 5px -5px rgba(50, 50, 50, 0.3);
    -moz-box-shadow:    0px 5px 5px -5px rgba(50, 50, 50, 0.3);
    box-shadow:         0px 5px 5px -5px rgba(50, 50, 50, 0.3);
}
.cover .head {
    padding: 10px;
    background: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}
.cover .head .menu {
    background: url('https://dl.dropboxusercontent.com/s/zgj5vdngzkemvpe/list-icon.png') no-repeat center;
    height: 32px;
    width: 35px;
    position: relative;
    cursor: pointer;
    opacity: 0.7;
    -webkit-transition: 0.25s;
    -moz-transition: 0.25s;
    -o-transition: 0.25s;
    transition: 0.25s;
}
.cover .head .menu.active,
.cover .head .menu:hover {
    opacity: 1;
}
.cover .avatar {
    position: absolute;
    background: #000;
    border: 5px solid #ffffff;
    cursor:pointer;
    top: 125px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100px;
    height: 100px;
    overflow: hidden;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    -webkit-box-shadow: 0px 5px 5px -5px rgba(50, 50, 50, 0.3);
    -moz-box-shadow:    0px 5px 5px -5px rgba(50, 50, 50, 0.3);
    box-shadow:         0px 5px 5px -5px rgba(50, 50, 50, 0.3);
}
.cover .avatar .light {
    background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZmZmZmZiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNmZmZmZmYiIHN0b3Atb3BhY2l0eT0iMCIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
    background: -moz-linear-gradient(top,  rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,1)), color-stop(100%,rgba(255,255,255,0)));
    background: -webkit-linear-gradient(top,  rgba(255,255,255,1) 0%,rgba(255,255,255,0) 100%);
    background: -o-linear-gradient(top,  rgba(255,255,255,1) 0%,rgba(255,255,255,0) 100%);
    background: -ms-linear-gradient(top,  rgba(255,255,255,1) 0%,rgba(255,255,255,0) 100%);
    background: linear-gradient(to bottom,  rgba(255,255,255,1) 0%,rgba(255,255,255,0) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#00ffffff',GradientType=0 );
    top: -65px;
    width: 100px;
    height: 120px;
    position: absolute;
    left: 15px;
    transform:rotate(-30deg);
    -ms-transform:rotate(-30deg); /* IE 9 */
    -webkit-transform:rotate(-30deg); /* Safari and Chrome */
}

.main {
    padding: 60px 10px 10px;
    text-align: center;
}
.main h1 {
    font-weight: bold;
    text-shadow: 0 -1px 0 #888888;
    color: #cecece;
    font-size: 30px;
    margin-bottom: -3px;
}
.main h6 {
    font: italic 16px "NotoSans";
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.main p {
    font: 14px/18px "Arial";
}
.social {
    margin: 10px 0 20px;
    text-align: center;
}
.social ul li {
    display: inline;
}
.social ul li a {
    display: inline-block;
    width: 30px;
    height: 30px;
    margin-left: 10px;
    transition: all .5s;
    -moz-transition: all .5s; /* Firefox 4 */
    -webkit-transition: all .5s; /* Safari and Chrome */
    -o-transition: all .5s; /* Opera */
}
.social ul li a.linkedin {
    background: #39C url("http://migkapa.com/site/lab/css3hover/images/linked-icon.png") no-repeat center;
}
.social ul li a.twitter {
    background: #019AD2 url("http://migkapa.com/site/lab/css3hover/images/twitter-icon.png") no-repeat center;
}
.social ul li a.facebook {
    background: #3B5998 url("http://migkapa.com/site/lab/css3hover/images/facebook-icon.png") no-repeat center;
}
.social ul li a.dribbble {
    background: #EA4C89 url("http://migkapa.com/site/lab/css3hover/images/dribble-icon.png") no-repeat center;
}
.social ul li a:hover {
    transform:rotate(360deg);
    -ms-transform:rotate(360deg); /* IE 9 */
    -moz-transform:rotate(360deg); /* Firefox */
    -webkit-transform:rotate(360deg); /* Safari and Chrome */
    -o-transform:rotate(360deg); /* Opera */
}

.btn {
    border: none;
    background: #bdc3c7;
    color: #ffffff;
    padding: 7px 0 6px;
    line-height: 22px;
    text-decoration: none;
    text-shadow: none;
    width: 100px;
    display: inline-block;
    text-align: center;
    -webkit-transition: 0.25s;
    -moz-transition: 0.25s;
    -o-transition: 0.25s;
    transition: 0.25s;
}
.btn.success {
    background-color: rgba(88, 214, 141, 0.7);
}
.btn.danger {
    background-color: rgba(236, 112, 99, 0.8);
}
JS
        $(document).ready(function(){
            $('.menu').click(function(){
                $(this).toggleClass('active');
                $(this).parents('.container').find('.navigation').slideToggle('fast');
            });
            $('.actions').hover(
                function(){
                    $(this).find('.btn').removeClass('success').addClass('danger').text('Unfollow');
                },
                function(){
                    $(this).find('.btn').removeClass('danger').addClass('success').text('Following');
                }
            );
        });

Description

Simple user profile widget, based on mobile view and trying to incorporate flat design.
Term
Mon, 11/27/2017 - 21:24

Related Codes

Pen ID
Pen ID
Pen ID
Square Adv