frontend/src/Bookshelf/BookItem/BookItem.module.css
2021-07-14 17:44:56 +05:00

42 lines
666 B
CSS

.bookCard {
width: 300px;
border: 1px lightgrey solid;
overflow: hidden;
display: flex;
justify-content: stretch;
flex-direction: column;
}
.bookCard:hover .imageContainer {
max-height: 100%;
}
.cardHeading {
flex-grow: 2;
display: flex;
flex-direction: column;
align-items: center;
height: auto;
justify-content: center;
padding: 10px;
}
.cardHeading > * {
width: 100%;
}
.imageContainer {
max-height: 0%;
transition: max-height 0.3s cubic-bezier(0.45, 0.05, 0.55, 0.95);
overflow: hidden;
display: flex;
}
.image {
width: 100%;
max-height: 100%;
align-self: flex-end;
object-fit: cover;
object-position: top;
}