From 91b78090180de39a1474887cec4653ed354b1077 Mon Sep 17 00:00:00 2001 From: cagataycivici Date: Thu, 30 Apr 2020 00:54:21 +0300 Subject: [PATCH] adds animation --- src/components/checkbox/Checkbox.css | 9 +++++++++ src/components/radiobutton/RadioButton.css | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/src/components/checkbox/Checkbox.css b/src/components/checkbox/Checkbox.css index aa7995d3d..851d5e231 100755 --- a/src/components/checkbox/Checkbox.css +++ b/src/components/checkbox/Checkbox.css @@ -9,4 +9,13 @@ display: flex; justify-content: center; align-items: center; +} + +.p-checkbox-icon { + transform: scale(0); + transition-property: transform; +} + +.p-checkbox-box.p-highlight .p-checkbox-icon { + transform: scale(1); } \ No newline at end of file diff --git a/src/components/radiobutton/RadioButton.css b/src/components/radiobutton/RadioButton.css index 99b88684a..fdd2de9e6 100755 --- a/src/components/radiobutton/RadioButton.css +++ b/src/components/radiobutton/RadioButton.css @@ -9,4 +9,13 @@ display: flex; justify-content: center; align-items: center; +} + +.p-radiobutton-icon { + transform: scale(0); + transition-property: transform; +} + +.p-radiobutton-box.p-highlight .p-radiobutton-icon { + transform: scale(1); } \ No newline at end of file