Performance
PassFrame rate: 60 fps average, p5 59.5 · Long tasks: 0 tasks, 0 ms total, longest 0 ms · Source gzip 1.5 KB · Runtime 1.4 KB
lazy-lionfish-15MITFormUiverse.io
A form built with plain HTML and CSS by vinodjangid07. Collected from Uiverse.io under the MIT licence and shown here live.
Quality report
The grade and score come from automated checks run at build or test time. If a check did not run, it is marked Not tested — numbers are never invented.
Frame rate: 60 fps average, p5 59.5 · Long tasks: 0 tasks, 0 ms total, longest 0 ms · Source gzip 1.5 KB · Runtime 1.4 KB
Issues 0 · Screen reader: Pass
No continuous motion
No overflow
Frame rate and long-task figures were measured in headless Chromium with software WebGL. They are only comparable between components on this site, and do not represent real devices.
Not applicable: no visible animation at rest. Hover-triggered animation was not tested.
No axe-core violations.

Checked Nov 15, 2026 · Figures come from an automated script, not from hand-written samples.
Shown at real size.
The copy starts with the licence notice. Keep it when you use the code.
<form class="discountForm">
<span class="DiscountHeading">TAKE 10% OFF.</span>
<p class="DiscountSubheading">Here is your discount! The promo code will be sent to your email.</p>
<div class="inputContainer">
<input placeholder="Enter your email" type="email" name="email" id="email-address">
<button type="submit" class="submitButton">Get it!</button>
</div>
<button class="exitBtn">×</button>
</form>/* From Uiverse.io by vinodjangid07 - Tags: form, discount */
.discountForm {
width: 250px;
height: 300px;
background-color: rgb(255, 255, 255);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 20px 30px;
gap: 20px;
position: relative;
box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.082);
}
.DiscountHeading {
font-size: 1.5em;
color: rgb(15, 15, 15);
font-weight: 700;
}
.DiscountSubheading {
font-size: 0.8em;
color: black;
text-align: center;
}
.inputContainer {
width: 100%;
display: flex;
flex-direction: column;
gap: 10px;
}
#email-address {
height: 30px;
width: 100%;
border: 1px solid rgb(228, 228, 228);
background-color: white;
padding: 0px 10px;
outline: none;
text-align: center;
}
.submitButton {
width: 100%;
height: 30px;
border: none;
background-color: rgb(15, 15, 15);
color: white;
font-weight: 600;
cursor: pointer;
}
.submitButton:hover {
background-color: rgb(36, 36, 36);
}
.exitBtn {
position: absolute;
top: 5px;
right: 5px;
box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.171);
background-color: rgb(255, 255, 255);
border-radius: 50%;
width: 25px;
height: 25px;
border: none;
color: black;
font-size: 1.1em;
cursor: pointer;
}Controls · HTML · CSS · JS
Edit the code and tune it with the controls. The preview updates as you type.

This component runs from a bundled build, so its script is read-only here. Edit the HTML and CSS; the full source is in the Code tab.
Edit every component live, tune it with controls, download the full source and copy the advanced prompts.
$49 one-timePlaceholder price
Test mode: no real payment is taken.
Free: preview, copy buttons and the lesson notes.
A clean white card leads with TAKE 10% OFF, a one-line promise and an email field joined to a Get it button, a focused coupon offer.
Discount pop-ups, first-order offers and newsletter incentives.
Change the 250px by 300px card, the heading size, the button colour and the soft 20px shadow.
Build a "Ten percent off email form" component in plain HTML, CSS and JavaScript (no framework). A clean white card leads with TAKE 10% OFF, a one-line promise and an email field joined to a Get it button, a focused coupon offer. Use it for: Discount pop-ups, first-order offers and newsletter incentives. Expose these controls: Change the 250px by 300px card, the heading size, the button colour and the soft 20px shadow. Support light and dark themes, respect prefers-reduced-motion with a still frame, keep text readable and controls keyboard accessible. Write original code; do not copy from paid or restricted component libraries.
A longer prompt with tuning, accessibility and integration steps.