Skip to content

Instantly share code, notes, and snippets.

@javaadpatel
Created August 6, 2021 21:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save javaadpatel/d7a69d0f109068bb3ba400ebbc73fe70 to your computer and use it in GitHub Desktop.
Save javaadpatel/d7a69d0f109068bb3ba400ebbc73fe70 to your computer and use it in GitHub Desktop.
Author Card CSS
.firstinfo, .badgescard {
display: flex;
justify-content: center;
align-items: center;
}
.author_card {
position: relative;
animation: animatop 0.9s cubic-bezier(0.425, 1.14, 0.47, 1.125) forwards;
}
.author_card .card {
width: 100%;
padding: 20px;
border-radius: 3px;
background-color: white;
box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
position: relative;
overflow: hidden;
}
.author_card .card:after {
content: "";
display: block;
width: 200px;
height: 500px;
background: cadetblue;
position: absolute;
animation: rotatemagic 0.75s cubic-bezier(0.425, 1.04, 0.47, 1.105) 1s both;
}
.badgescard {
padding: 10px 20px;
border-radius: 3px;
background-color: #ececec;
width: 90%;
box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
position: absolute;
z-index: -1;
left: 5%;
bottom: 10px;
animation: animainfos 0.5s cubic-bezier(0.425, 1.04, 0.47, 1.105) 0.75s forwards;
}
.badgescard span {
font-size: 1.6em;
margin: 0px 6px;
opacity: 0.6;
}
.firstinfo {
flex-direction: row;
z-index: 2;
position: relative;
}
.firstinfo img {
border-radius: 50%;
width: 120px;
height: 120px;
}
.firstinfo .profileinfo {
padding: 0px 20px;
}
.firstinfo .profileinfo h1 {
font-size: 1.8em;
}
.firstinfo .profileinfo h3 {
font-size: 1.2em;
color: #009688;
font-style: italic;
}
.firstinfo .profileinfo p.bio {
padding: 10px 0px;
color: #5a5a5a;
line-height: 1.2;
font-style: initial;
}
.badgelink {
color: inherit;
text-decoration: none !important;
}
.badgesicons {
margin-bottom: -6px;
}
.profile_card_title {
margin-top: -15px;
}
@keyframes animatop {
0% {
opacity: 0;
bottom: -500px;
}
100% {
opacity: 1;
bottom: 0px;
}
}
@keyframes animainfos {
0% {
bottom: 10px;
}
100% {
bottom: -42px;
}
}
@keyframes rotatemagic {
0% {
opacity: 0;
transform: rotate(0deg);
top: -24px;
left: -253px;
}
100% {
transform: rotate(-6deg);
top: -24px;
left: -78px;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment