Repeater
Repeater
item-card {
position: relative;
width: 350px;
height: 250px;
}
.bg {
position: absolute;
width: 100%;
height: 100%;
background: rgba(255, 255, 255, 0.3);
box-shadow: 0 4px 20px 0 rgba(31, 38, 135, 0.12);
border-radius: 15px;
display: flex;
justify-content: center;
align-items: center;
}
.front {
opacity: 1;
transition: height 1s, opacity 0.5s ease;
}
.front .image {
opacity: 0.1;
}
.front .date {
position: absolute;
width: 75%;
top: 8px;
text-overflow: ellipsis;
font-size: 1.6em;
}
.front .text {
position: absolute;
top: 85px;
left: 10px;
right: 10px;
text-align: center;
font-size: 1.5em;
}
.back {
height: 0%;
opacity: 0;
transition: height 1s, opacity 0.5s ease;
bottom: 0px;
}
.back .icons {
width: 100%;
display: flex;
justify-content: center;
align-items: center;
bottom: 5px;
}
.back .icons a {
text-decoration: none;
padding: 20px;
}
.item-card:hover .back {
height: 100%;
opacity: 1;
transition: height 1s, opacity 0.5s ease;
}
.item-card:hover .front {
height: 0%;
opacity: 0;
transition: height 1s, opacity 0.5s ease;
}
<%--Repeater--%>
<div class="row">
<asp:Repeater ID="ClassRepeater" runat="server"
DataSourceID="sdsClassInfo">
<ItemTemplate>
<div class="col-4 mb-3">
<div class="item-card">
<div class="front bg">
<div class="image">
<img
src="../../Content/images/Student/icons8-classroom.png" />
<%--<asp:Image runat="server"
ID="Img_Icon" CssClass="img-thumbnail" ImageUrl="" Style="max-height: 300px;" />--
%>
</div>
<div class="date"><%#
Eval("TimeFrom", "{0:T}") %> - <%# Eval("TimeTo", "{0:T}") %></div>
<div class="text">
<%# Eval("CourseName") %>
</div>
</div>