reactbits-mcp-server
Version:
MCP Server for React Bits - Access 99+ React components with animations, backgrounds, and UI elements
108 lines (95 loc) • 1.7 kB
CSS
.menu-wrap {
width: 100%;
height: 100%;
overflow: hidden;
}
.menu {
display: flex;
flex-direction: column;
height: 100%;
margin: 0;
padding: 0;
}
.menu__item {
flex: 1;
position: relative;
overflow: hidden;
text-align: center;
box-shadow: 0 -1px #fff;
}
.menu__item-link {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
position: relative;
cursor: pointer;
text-transform: uppercase;
text-decoration: none;
white-space: nowrap;
font-weight: 600;
color: #fff;
font-size: 4vh;
}
.menu__item-link:hover {
color: #060010;
}
.menu__item-link:focus:not(:focus-visible) {
color: #fff;
}
.marquee {
position: absolute;
top: 0;
left: 0;
overflow: hidden;
width: 100%;
height: 100%;
pointer-events: none;
background: #fff;
transform: translate3d(0, 101%, 0);
transition: transform 0.6s ease-expo;
}
.marquee__inner-wrap {
height: 100%;
width: 200%;
display: flex;
transform: translateX(0);
}
.marquee__inner {
display: flex;
align-items: center;
position: relative;
height: 100%;
width: 200%;
will-change: transform;
animation: marquee 15s linear infinite;
}
.marquee span {
color: #060010;
white-space: nowrap;
text-transform: uppercase;
font-weight: 400;
font-size: 4vh;
line-height: 1.2;
padding: 1vh 1vw 0;
}
.marquee__img {
width: 200px;
height: 7vh;
margin: 2em 2vw;
padding: 1em 0;
border-radius: 50px;
background-size: cover;
background-position: 50% 50%;
}
.menu__item-link:hover+.marquee {
transform: translate3d(0, 0%, 0);
}
@keyframes marquee {
from {
transform: translateX(0);
}
to {
transform: translateX(-50%);
}
}