Skip to content

Commit

Permalink
minor animation fix for radio buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
lokesh-coder committed Jul 20, 2016
1 parent 3d4eadd commit 4965c17
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pretty-checkbox",
"version": "2.0.1",
"version": "2.0.2",
"description": "Scalable css3 pretty checkbox and radio buttons with custom font icon library",
"main": "src/pretty.min.css",
"dependencies": {},
Expand Down
14 changes: 14 additions & 0 deletions src/pretty.css
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,20 @@ i[class*="ion-"] {
transform: scale(0);
}

.pretty.smooth > input[type='radio']:checked ~ label > i.default:before {
-webkit-transform: scale(0.8);
-moz-transform: scale(0.8);
-o-transform: scale(0.8);
transform: scale(0.8);
}

.pretty.smooth > input[type='radio']:checked ~ label > i.default:after {
-webkit-transform: scale(1);
-moz-transform: scale(1);
-o-transform: scale(1);
transform: scale(1);
}

.pretty.smooth.toggle i:before {
-webkit-transform: none;
-moz-transform: none;
Expand Down
Loading

0 comments on commit 4965c17

Please sign in to comment.