Press keys on your keyboard to interact with the examples below!
Hover over any example to see the code
Press ANY KEY to trigger
Press ↑ ↓ ← → arrow keys
Press W A S D keys
Press the key indicated on each box
Type anything on your keyboard
Press multiple keys simultaneously
Press R to rotate (each press rotates 90°)
Press any keys to change colors
All animations can be customized using CSS variables:
.keys-active {
--keys-delay: 0s;
--keys-duration: 0.3s;
--keys-blend: ease-out;
--keys-direction: normal forwards;
--keys-intensity: 1;
}
Example usage:
<div class="keys-pulse" data-keys
style="--keys-duration: 0.5s; --keys-delay: 0.2s;">
<span class="keys-target">Custom Timing</span>
</div>