Skip to content
PixFortUI
Back
Glossy Halftone Pill Button preview
CodeFreeButtons

Glossy Halftone Pill Button

3D glossy pill button with fading polka dots and tactile hover.

Use this component

The code is below. Use Copy code to copy it.

Share this component

HTML and CSS code

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Glossy Polka Pill Button</title>
  <link rel="stylesheet" href="style.css">
</head>
<body>

  <button class="glossy-pill-btn" type="button">
    <span class="btn-text">Explore</span>
  </button>

</body>
</html>

About this component

Tactile 3D Glossy Button

Features a smooth pill shape with a vibrant 3D gradient and a top light sheen. Includes staggered polka-dot patterns on both sides that fade toward the center. Responds with a gentle lift on hover and a realistic press effect when clicked. Built with pure HTML and CSS variables for quick color and label customization.

How to use it

  1. Copy the HTML into your page where the component should appear.
  2. Add the CSS to your stylesheet, or into a <style> block in the page head.
  3. Change the text, links and images to match your project.
Loading related components…