Typography · 24 of 33
Elastic Bounce
Hover letters for elastic scale effect
<h2 class="elastic-text">
<span class="elastic-char">B</span><span class="elastic-char">o</span><span class="elastic-char">u</span><span class="elastic-char">n</span><span class="elastic-char">c</span><span class="elastic-char">e</span>
</h2>
.elastic-text {
display: flex;
justify-content: center;
gap: 2px;
font-size: 3.5rem;
font-weight: 600;
}
.elastic-char {
display: inline-block;
/* Overshooting cubic-bezier gives the elastic feel */
transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.elastic-char:hover {
transform: scale(1.4) translateY(-10px);
color: #7c5cff;
}