is now part of Shuffle™. The new editor includes templates for Tailwind CSS, Bootstrap, Bulma, and Material-UI.
Switch to Shuffle →
← Tailwind CSS classes list

Tailwind CSS class: .translate-x-2

<div class="bg-gray-300 w-64 h-6 m-2"><div class="translate-x-2 transform bg-teal-400 h-6 w-6 text-center">2</div></div>

Preview

2

Check .translate-x-2 in a real project

Click one of the examples listed below to open the Shuffle Visual Editor with the UI library that uses the selected component.

CSS source

.translate-x-2 { --transform-translate-x: 0.5rem; }

More in Tailwind CSS Transform