Skip to content

Commit 4965c17

Browse files
committed
minor animation fix for radio buttons
1 parent 3d4eadd commit 4965c17

File tree

4 files changed

+24
-2
lines changed

4 files changed

+24
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pretty-checkbox",
3-
"version": "2.0.1",
3+
"version": "2.0.2",
44
"description": "Scalable css3 pretty checkbox and radio buttons with custom font icon library",
55
"main": "src/pretty.min.css",
66
"dependencies": {},

src/pretty.css

+14
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,20 @@ i[class*="ion-"] {
565565
transform: scale(0);
566566
}
567567

568+
.pretty.smooth > input[type='radio']:checked ~ label > i.default:before {
569+
-webkit-transform: scale(0.8);
570+
-moz-transform: scale(0.8);
571+
-o-transform: scale(0.8);
572+
transform: scale(0.8);
573+
}
574+
575+
.pretty.smooth > input[type='radio']:checked ~ label > i.default:after {
576+
-webkit-transform: scale(1);
577+
-moz-transform: scale(1);
578+
-o-transform: scale(1);
579+
transform: scale(1);
580+
}
581+
568582
.pretty.smooth.toggle i:before {
569583
-webkit-transform: none;
570584
-moz-transform: none;

0 commit comments

Comments
 (0)