Skip to content

Instantly share code, notes, and snippets.

@orahul1
Last active October 13, 2018 08:53
Show Gist options
  • Select an option

  • Save orahul1/7891118958d0cca13010a51b4dda1b74 to your computer and use it in GitHub Desktop.

Select an option

Save orahul1/7891118958d0cca13010a51b4dda1b74 to your computer and use it in GitHub Desktop.
wYqOge
<body>
<div class="welcome_popup">
<div class="profile_pic">
<img src="https://pbs.twimg.com/profile_images/817369685192605696/iWkgUdBf_400x400.jpg">
</div>
<div class="text">
<p class="welcome"> Welcome <p>
<p class="user"> Doctor001844 </p>
</div
</div>
</body>
body{
margin: 50px;
position: relative;
}
.welcome_popup{
width: 400px;
height: 85px;
background-color: #EEEEEE;
box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
display: flex;
border-top-right-radius: 160px;
border-bottom-right-radius: 160px;
border-top-left-radius: 160px;
border-bottom-left-radius: 160px;
margin: 0 auto;
-webkit-animation-name: slideInDown;
animation-name: slideInDown;
animation-duration: 1s;
img{
border-radius: 50%;
height:75px;
width: 75px;
background-color: #fff;
padding:5px;
}
.text{
padding: 10px 0px 10px 10px;
p{
margin:0;
padding: 2px;
}
.welcome{
color: #000;
font-family: 'Roboto';
text-transform: uppercase;
font-weight: 500;
color: #808080;
font-size: 20px;
}
.user{
font-family: 'Poppins', sans-serif;
font-size: 30px;
}
}
}
@-webkit-keyframes slideInDown {
from {
-webkit-transform: translate3d(0, -100%, 0);
transform: translate3d(0, -100%, 0);
visibility: visible;
}
to {
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
}
}
@keyframes slideInDown {
from {
-webkit-transform: translate3d(0, -100%, 0);
transform: translate3d(0, -100%, 0);
visibility: visible;
}
to {
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment