Project Demo
Create your first Portfolio with Kodofy (A Product of dark CSS). Visit Kodofy.com
html code
Flip Text Animation
Create
Portfolio
Landing Page
Websites
Portfolio
with Kodofy!
css code
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: "Roboto", sans-serif;
background: #212121;
display: grid;
place-items: center;
height: 100vh;
text-align: center;
}
.container {
color: #999;
text-transform: uppercase;
font-size: clamp(24px, 4vw, 36px);
font-weight: 700;
}
.flip-wrapper {
height: 50px;
overflow: hidden;
display: inline-block;
vertical-align: middle;
}
.flip-track {
display: flex;
flex-direction: column;
}
.flip-item {
height: 50px;
display: flex;
align-items: center;
justify-content: center;
color: white;
padding: 4px 14px;
}
.flip-track {
animation: flip 6s infinite;
}
.portfolio {
background: #83248f;
}
.landing {
background: #3bae6b;
}
.websites {
background: #DC143C;
}
@keyframes flip {
0%,
20% {
transform: translateY(0px);
}
33%,
53% {
transform: translateY(-50px);
}
66%,
86% {
transform: translateY(-100px);
}
100% {
transform: translateY(-150px);
}
}