34
34
.main2 {
display: flex;
animation-play-state: running;
/* main:hover, main:focus {
animation-play-state: running;
} */
@keyframes smooth {
to {
/* single projection */
.main3 {
width: 100%;
padding: 20px 0 0 0;
.projection {
display: flex;
flex-wrap: wrap;
justify-content: space-around;
align-items: center;
padding-bottom: 20px;
margin-bottom: 20px;
border-bottom: 1px solid #eee;
background: rgba(180,160,120,.2);
background-clip: content-box;
.projection:last-child {
margin-bottom: 0;
border-bottom: 0;
margin-left: -6px;
border-bottom: 0;
border-right: 0;
border-bottom: 0;
border-right: 0;
border-left: 0;
/* sibling fade */
span {
padding: 0 16px;
.sibling-fade:hover span:not(:hover) {
opacity: 0.5;
/* shifting card */
.shiftcard {
display: flex;
padding: 24px;
justify-content: center;
align-items: center;
background: #f3f1fe;
.shifting-card {
width: 350px;
display: flex;
flex-direction: column;
align-items: center;
background: #fff;
border-radius: 10px;
margin: 0.5rem;
.shifting-card .content {
text-align: center;
margin: 2rem;
line-height: 1.5;
color: #101010;
/* shape seprator */
.shape-separator {
position: relative;
height: 48px;
background: #9C27B0;
.shape-separator::after {
content: '';
background-image: url("images/blog-image4.jpg");
position: absolute;
width: 100%;
height: 12px;
bottom: 0;
@keyframes shake {
0% {
margin-left: 0rem;
25% {
margin-left: 0.5rem;
75% {
margin-left: -0.5rem;
100% {
margin-left: 0rem;
input:invalid {
/* shake */
.main4 {
display: flex;
color: white;
margin: auto;
border-radius: 3px;
animation-play-state: paused;
animation-play-state: running;
@keyframes shake-baidu {
4% { transform: rotate(5deg); }
.main5 {
width: 100%;
user-select: none;
font: 14px / 1 Helvetica, sans-serif;
.main5 > h5 {
width: 100%;
padding: 16px;
overflow: hidden;
position: relative;
position: absolute;
background-color: #FFF;
border-radius: 8px;
display: flex;
justify-content: center;
align-items: center;
z-index: 1;
position: absolute;
position: absolute;
margin: auto;
/* rotating card */
.card {
perspective: 150rem;
position: relative;
height: 40rem;
max-width: 400px;
margin: 2rem;
box-shadow: none;
background: none;
.card-side {
height: 35rem;
border-radius: 15px;
backface-visibility: hidden;
position: absolute;
top: 0;
left: 0;
width: 80%;
padding: 2rem;
color: white;
.card-side.back {
transform: rotateY(-180deg);
background-color: #4158D0;
.card-side.front {
background-color: #0093E9;
.card:hover .card-side.front {
transform: rotateY(180deg);
.card:hover .card-side.back {
transform: rotateY(0deg);
}
/* title: Responsive layout with sidebar */
.container2 {
display: grid;
height: 100px;
.main6, aside {
padding: 12px;
text-align: center;
.main6 {
background: #d4f2c4;
aside {
background: #81cfd9;
.container3 {
position: relative;
background: #ffffff;
padding: 15px;
.container3::before,
.container3::after {
content: '';
position: absolute;
bottom: 100%;
left: 19px;
border-bottom-color: #dddddd;
.container3::after {
left: 20px;
border-bottom-color: #ffffff;
/* bounce */
.main7{
.ball {
width: 0;
margin: auto;
padding: 20px;
border-radius: 50%;
@keyframes bounce {
40%,
60%,
80%,
to {
transform: translateY(380px);
animation-timing-function: ease-in;
50% {
transform: translateY(260px);
70% {
transform: translateY(300px);
90% {
transform: translateY(360px);
/* bounce loader */
@keyframes bouncing-loader {
to {
opacity: 0.1;
transform: translate3d(0, -16px, 0);
.bouncing-loader {
display: flex;
justify-content: center;
width: 16px;
height: 16px;
background: #8385aa;
border-radius: 50%;
animation-delay: 0.2s;
animation-delay: 0.4s;
div {
box-sizing: border-box;
}
*,
*::before,
*::after {
box-sizing: inherit;
.box {
display: inline-block;
width: 120px;
height: 120px;
padding: 8px;
margin: 8px;
background: #F24333;
color: white;
border-radius: 4px;
.content-box {
box-sizing: content-box;
/* break image */
.imgmale {
display: block;
font-family: sans-serif;
font-weight: 300;
height: auto;
line-height: 2;
position: relative;
text-align: center;
width: 100%;
.imgmale::before {
display: block;
margin-bottom: 8px;
.imgmale::after {
display: block;
font-size: 12px;
/* */
.animated-border-button {
background-color: #263059;
border: none;
color: #ffffff;
outline: none;
position: relative;
}
.animated-border-button::before,
.animated-border-button::after {
content: '';
height: 0;
position: absolute;
width: 24px;
.animated-border-button::before {
right: 0;
top: -4px;
.animated-border-button::after {
bottom: -4px;
left: 0;
.animated-border-button:hover::before,
.animated-border-button:hover::after {
width: 100%;
}
/* swing */
.button-swing {
color: #65b5f6;
background-color: transparent;
border-radius: 4px;
padding: 0 16px;
cursor: pointer;
.button-swing:focus {
animation-iteration-count: 1;
@keyframes swing {
15% {
transform: translateX(5px);
30% {
transform: translateX(-5px);
50% {
transform: translateX(3px);
65% {
transform: translateX(-3px);
}
80% {
transform: translateX(2px);
100% {
transform: translateX(0);