.item-container{
perspective: 800px;
background: radial-gradient(#e0e0e0, #aaa);
width: 100%;
height: 100%;
margin:0 auto;
border-radius: 6px;
position: relative;
}
.car-front,
.car-back{
transform-style: preserve-3d;
backface-visibility: hidden;
width: 100%;
height: 90%;
position: absolute;
background: url(https://bit.ly/2BkIWyr) no-repeat center;
transition: 0.8s;
}
.car-front {
background: url(https://bit.ly/2RYUeT0) no-repeat center;
}
.car-back{
transform: rotateY(180deg);
background-position: center;
}
.item-container:hover .car-front{
transform: rotateY(180deg);
}
.item-container:hover .car-back{
transform: rotateY(360deg);
}
@keyframes word-squeeze {
from {
letter-spacing: 32px;
}
to {
letter-spacing: 0;
}
}
.word-squeezing {
animation: word-squeeze 5s ease infinite;
}
h2.word-squeezing {
text-transform: uppercase;
white-space: nowrap;
}
Welcome to My Website
.text {
position:relative;
line-height:2em;
overflow:hidden;
}
.fadingEffect {
position:absolute;
top:0;
bottom:0;
right:0;
width:100%;
background:white;
animation: showHide 5s ease-in alternate infinite;
}
@keyframes showHide {
0% {width:100%}
40% {width:0%}
60% {width:0%;}
100% {width:100%;}
}
.ball {
width: 10px;
height: 10px;
margin: 10px auto;
border-radius: 50px;
background: #ffffff;
display: inline-block;
}
@keyframes mover {
0% { transform: translateY(0); }
50% { transform: translateY(-10px); }
100% { transform: translateY(0px); }
}
.ball:nth-child(1) {
animation: mover 1.0s infinite ease-in-out;
}
.ball:nth-child(2) {
animation: mover 1.02s infinite ease-in-out;
}
.ball:nth-child(3) {
animation: mover 1.04s infinite ease-in-out;
}
.ball:nth-child(4) {
animation: mover 1.06s infinite ease-in-out;
}
.ball:nth-child(5) {
animation: mover 1.08s infinite ease-in-out;
}
.ball:nth-child(6) {
animation: mover 1.1s infinite ease-in-out;
}