63 lines
1.2 KiB
CSS
63 lines
1.2 KiB
CSS
body {
|
|
font-family: 'Open Sans', sans-serif;
|
|
font-size: 14px;
|
|
margin: 0px;
|
|
height: 100%;
|
|
background-image: url("../img/bg.jpg");
|
|
background-repeat: no-repeat;
|
|
background-size: cover;
|
|
background-position: center;
|
|
color: #EEEEEE;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-direction: column;
|
|
}
|
|
body div.main {
|
|
width: 90%;
|
|
min-width: 600px;
|
|
padding: 20px;
|
|
box-sizing: border-box;
|
|
background: rgba(20, 20, 20, 0.9);
|
|
display: flex;
|
|
flex-direction: row;
|
|
border-radius: 10px;
|
|
}
|
|
body div.main div {
|
|
flex: 1;
|
|
}
|
|
body div.main div.text {
|
|
margin-right: 10px;
|
|
overflow-y: auto;
|
|
}
|
|
body div.main div.img {
|
|
position: relative;
|
|
overflow: hidden;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
body div.main div img {
|
|
border-radius: 10px;
|
|
position: absolute;
|
|
top: 0;
|
|
transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
|
|
animation-name: showcase;
|
|
animation-duration: 18s;
|
|
animation-iteration-count: infinite;
|
|
max-width: 100%;
|
|
max-height: 100%;
|
|
}
|
|
@keyframes showcase {
|
|
0% {
|
|
transform: translateX(110%);
|
|
}
|
|
6%,
|
|
27% {
|
|
transform: translateX(0%);
|
|
}
|
|
34%,
|
|
100% {
|
|
transform: translateX(-110%);
|
|
}
|
|
}
|