Star Rates with radio buttons and CSS

Developer
Size
2,650 Kb
Views
4,048

How do I make an star rates with radio buttons and css?

What is a star rates with radio buttons and css? How do you make a star rates with radio buttons and css? This script and codes were developed by Tommy on 30 December 2022, Friday.

Star Rates with radio buttons and CSS Previews

Star Rates with radio buttons and CSS - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Star Rates with radio buttons and CSS</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <h1>Star Rates with radio buttons and CSS :D</h1>
<p> <input type="radio" name="rate" date-rate="5"/> <input type="radio" name="rate" date-rate="4"/> <input type="radio" name="rate" date-rate="3"/> <input type="radio" name="rate" date-rate="2"/> <input type="radio" name="rate" date-rate="1"/>
</p>
</body>
</html>

Star Rates with radio buttons and CSS - Script Codes CSS Codes

@import url(https://fonts.googleapis.com/css?family=Roboto);
* { box-sizing: border-box;
}
body { background-color: #222; font-family: 'Roboto', sans-serif; color: #FFF;
}
h1 { text-align: center;
}
p { width: 300px; margin: 20px auto; min-height: 70px; overflow: hidden;
}
p input { display: inline-block; width: 30px; margin: 15px; float: right; position: relative; cursor: pointer; color: #e6e6e6; -webkit-appearance: none; outline: none;
}
p input:before { content: "\2605"; position: absolute; top: -20px; left: -8px; font-size: 35px; transition: color .1s; background-color: transparent;
}
p input:after { content: attr(date-rate); display: block; margin-left: 2px; transform: translate(1px, 30px);
}
p input:checked, p input:checked:before, p input:checked ~ input:before { color: #ffef00;
}
p input:checked:before { -webkit-animation: stretch-bounce .6s ease-in-out;
}
p input:checked:after { transform: translate(2px, 30px) scale(1.1);
}
@-webkit-keyframes stretch-bounce { 0% { -webkit-transform: scale(1); } 25% { -webkit-transform: scale(1.3); } 50% { -webkit-transform: scale(0.8); } 75% { -webkit-transform: scale(1.2); } 100% { -webkit-transform: scale(1); }
}
Star Rates with radio buttons and CSS - Script Codes
Star Rates with radio buttons and CSS - Script Codes
Home Page Home
Developer Tommy
Username hoehoe
Uploaded December 30, 2022
Rating 3
Size 2,650 Kb
Views 4,048
Do you need developer help for Star Rates with radio buttons and CSS?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Tommy (hoehoe) Script Codes
Create amazing Facebook ads with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!