I am looking to see if it is possible to create an animated 'shimmer' effect on a flexbox. The 'panels' have to be able to change shape to accommodate 1 line of text to 3 or 4 lines of text. I was wondering if this might require javascript or jquery rather than pure CSS. This will also have to be responsive to be able to work on a mobile screen as well as a desktop.
.panel-container {
display: flex;
width: 100vw;
}
.profile-panels {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
width: 100vw;
margin: 20px 0 0 0;
}
.profile-smaller-panel h4 {
margin: 0 0 0 0;
padding: 16px 0 0 0;
font-family: Arial;
font-size: 16px;
}
.profile-smaller-panel {
display: flex;
flex-wrap: wrap;
flex-direction: column;
justify-content: center;
align-items: center;
margin: 0 10px;
}
.profile-blocks {
display: flex;
flex-direction: column;
flex-wrap: wrap;
justify-content: center;
align-items: center;
font-family: 'therestone', 'Roboto', 'Arial';
box-shadow: 0 2px 4px 0 rgb(0 0 0 / 20%), 0 3px 5px 0 rgb(0 0 0 / 20%);
max-width: 200px;
cursor: pointer;
border-radius: 4px;
padding: 5px 10px;
}
<div class="panel-container">
<div class="profile-panels">
<div class="profile-smaller-panel">
<div class="profile-blocks" tabindex="1">Lorem ipsum dolor sit</div>
</div>
<div class="profile-smaller-panel">
<div class="profile-blocks" tabindex="2">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</div>
</div>
<div class="profile-smaller-panel">
<div class="profile-blocks" tabindex="3">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam eget pharetra lacus, sit amet elementum velit</div>
</div>
<div class="profile-smaller-panel">
<div class="profile-blocks" tabindex="4">Lorem ipsum dolor sit amet. Etiam eget pharetra lacus, sit amet elementum velit</div>
</div>
</div>
</div>