A customizable blur bubble select component built with Tailwind CSS.
To use this component in your project, copy the code and paste it into your HTML file. You can customize the component by modifying the Tailwind CSS classes.
<div
class="relative group rounded-lg w-64 bg-neutral-700 overflow-hidden before:absolute before:w-12 before:h-12 before:content[''] before:right-0 before:bg-violet-500 before:rounded-full before:blur-lg before:[box-shadow:-60px_20px_10px_10px_#F9B0B9]"
>
<svg
y="0"
xmlns="http://www.w3.org/2000/svg"
x="0"
width="100"
viewBox="0 0 100 100"
preserveAspectRatio="xMidYMid meet"
height="100"
class="w-8 h-8 absolute right-0 -rotate-45 stroke-pink-300 top-1.5 group-hover:rotate-0 duration-300"
>
<path
stroke-width="4"
stroke-linejoin="round"
stroke-linecap="round"
fill="none"
d="M60.7,53.6,50,64.3m0,0L39.3,53.6M50,64.3V35.7m0,46.4A32.1,32.1,0,1,1,82.1,50,32.1,32.1,0,0,1,50,82.1Z"
class="svg-stroke-primary"
></path>
</svg>
<select
class="appearance-none hover:placeholder-shown:bg-emerald-500 relative text-pink-400 bg-transparent ring-0 outline-none border border-neutral-500 placeholder-violet-700 text-sm font-bold rounded-lg focus:ring-violet-500 focus:border-violet-500 block w-full p-2.5"
>
<option class="bg-neutral-700">HTML</option>
<option class="bg-neutral-700">React</option>
<option class="bg-neutral-700">Vue</option>
<option class="bg-neutral-700">Angular</option>
<option class="bg-neutral-700">Svelte</option>
</select>
</div>This component is fully responsive and adapts to different screen sizes. Use the viewport controls above to preview how it looks on different devices.
Optimized for screens smaller than 640px
Optimized for screens between 640px and 1024px
Optimized for screens larger than 1024px