Mar 30, 2024
1 min read

Collezione di pulsanti

  • Ui
  • Pulsanti

Una varietà di pulsanti che riflettono diversi stili e funzioni per offrire un'esperienza utente ricca e dinamica. Pulsanti eleganti e interattivi, che cambiano colore e rivelano sorprese al passaggio del mouse, aggiungendo un tocco di gioco e raffinatezza. Alcuni pulsanti sono più audaci e robusti, perfetti per attirare l'attenzione con il loro design deciso, mentre altri mantengono un aspetto minimalista e sofisticato, con effetti sottili che enfatizzano la modernità.


<!-- Pulsante 1 -->

  <button
    type="button"
    class="text-black hover:text-pink-600 items-center shadow shadow-black text-lg font-semibold inline-flex px-6 focus:outline-none justify-center text-center bg-white border-black ease-in-out transform transition-all focus:ring-pink-600 focus:shadow-none border-2 duration-100 focus:bg-black focus:text-white sm:w-auto py-3 rounded-lg h-16 tracking-wide focus:translate-y-1 w-full"
    >Divertente</button
  >


<!-- Pulsante 2 -->
  <button class="relative group overflow-hidden px-6 h-16 bg-black text-white w-auto ">
    <div class="transition duration-300 group-hover:-translate-y-16 w-full">
      <div class="h-16 flex items-center justify-center">
        <span class="text-m uppercase font-bold">Sorpresa</span>
      </div>
      <div class="h-16 flex items-center justify-center">
        <span class="text-m uppercase font-bold">WOW !</span>
      </div>
    </div>
  </button>

<!-- Pulsante 3 -->
  <button
    class="relative inline-block py-1.5 text-lg before:absolute before:inset-0 before:origin-bottom before:scale-y-[.03] before:bg-black/60 dark:before:bg-white/60 before:transition before:duration-300 hover:before:scale-y-100 hover:before:scale-x-125 hover:before:bg-black/10 dark:hover:before:bg-white/10"
    style="transform: translate3d(0px, 0px, 0px);">
    <span class="relative">Elegante</span>
  </button>

<!-- Pulsante 4 -->

  <button
    class="border-black border-2 text-black font-bold tex-lg bg-yellow-200 hover:bg-yellow-300 active:bg-yellow-400 rounded-full h-16 px-5 hover:shadow-[4px_4px_0px_rgba(0,0,0,1)] w-[200px]"
    >Brutalista</button
  >

<!-- Pulsante 5 -->

<button
class="relative inline cursor-pointer text-xl font-medium before:bg-black dark:before:bg-white before:absolute before:-bottom-1 before:block before:h-[2px] before:w-full before:origin-bottom-right before:scale-x-0 before:transition before:duration-300 before:ease-in-out hover:before:origin-bottom-left hover:before:scale-x-100">
Link</button
>

<!-- Pulsante 6 -->
  <button
    id="back-to-top"
    aria-label="Back to top of page"
    class="text-lg group flex w-fit p-4 gap-2 items-center border rounded hover:bg-black/5 hover:dark:bg-white/10 border-black/15 dark:border-white/20 transition-colors duration-300 ease-in-out"
  >
    <svg
      xmlns="http://www.w3.org/2000/svg"
      width="20"
      height="20"
      viewBox="0 0 24 24"
      fill="none"
      stroke-width="2.5"
      stroke-linecap="round"
      stroke-linejoin="round"
      class="stroke-current group-hover:stroke-black group-hover:dark:stroke-white rotate-90"
    >
      <line
        x1="19"
        y1="12"
        x2="5"
        y2="12"
        class="scale-x-0 group-hover:scale-x-100 translate-x-3 group-hover:translate-x-0 transition-all duration-300 ease-in-out"
      ></line>
      <polyline
        points="12 19 5 12 12 5"
        class="translate-x-1 group-hover:translate-x-0 transition-all duration-300 ease-in-out"
      ></polyline>
    </svg>
    <div
      class="w-full group-hover:text-black group-hover:dark:text-white transition-colors duration-300 ease-in-out"
    >
      Torna su
    </div>
  </button>

  <!-- Pulsante 7 -->

  <button
    class=" text-gray-900 bg-gradient-to-r from-emerald-200 via-emerald-400 to-emerald-500 hover:bg-gradient-to-br focus:ring-4 focus:outline-none focus:ring-emerald-300 dark:focus:ring-emerald-800 shadow-lg shadow-emerald-500/50 dark:shadow-lg dark:shadow-emerald-800/80 font-medium rounded-lg text-sm px-5 py-2.5 text-center me-2 mb-2 "
    >Gradiente</button
  >

  <!-- Pulsante 8 -->
<button class="py-2.5 px-5 me-2 text-sm font-medium text-gray-900 bg-white rounded-lg border border-gray-200 hover:bg-gray-100 hover:text-blue-700 focus:z-10 focus:ring-4 focus:outline-none focus:ring-blue-700 focus:text-blue-700 dark:bg-gray-800 dark:text-gray-400 dark:border-gray-600 dark:hover:text-white dark:hover:bg-gray-700 inline-flex items-center">
<svg aria-hidden="true" role="status" class="inline w-4 h-4 me-3 text-gray-200 animate-spin dark:text-gray-600" viewBox="0 0 100 101" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z" fill="currentColor"/>
<path d="M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z" fill="#1C64F2"/>
</svg>
Carico...
</button>