Advertisement
Deygus

CSS Animated Checkbox Option

Mar 10th, 2016
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.68 KB | None | 0 0
  1. .form-checkbox-item:active {
  2.     animation : animationFrames ease 1s;
  3.     animation-iteration-count : 1;
  4.     transform-origin : 50% 50%;
  5.     animation-fill-mode : forwards;
  6.     /*when the spec is finished*/
  7.   -webkit-animation : animationFrames ease 1s;
  8.     -webkit-animation-iteration-count : 1;
  9.     -webkit-transform-origin : 50% 50%;
  10.     -webkit-animation-fill-mode : forwards;
  11.     /*Chrome 16+, Safari 4+*/
  12.   -moz-animation : animationFrames ease 1s;
  13.     -moz-animation-iteration-count : 1;
  14.     -moz-transform-origin : 50% 50%;
  15.     -moz-animation-fill-mode : forwards;
  16.     /*FF 5+*/
  17.   -o-animation : animationFrames ease 1s;
  18.     -o-animation-iteration-count : 1;
  19.     -o-transform-origin : 50% 50%;
  20.     -o-animation-fill-mode : forwards;
  21.     /*Not implemented yet*/
  22.   -ms-animation : animationFrames ease 1s;
  23.     -ms-animation-iteration-count : 1;
  24.     -ms-transform-origin : 50% 50%;
  25.     -ms-animation-fill-mode : forwards;
  26.     /*IE 10+*/;
  27. }
  28.  
  29. @keyframes animationFrames{
  30.   0% {
  31.     opacity:0;
  32.     transform:  translate(0px,-25px)  ;
  33.   }
  34.   100% {
  35.     opacity:1;
  36.     transform:  translate(0px,0px)  ;
  37.   }
  38. }
  39.  
  40. @-moz-keyframes animationFrames{
  41.   0% {
  42.     opacity:0;
  43.     -moz-transform:  translate(0px,-25px)  ;
  44.   }
  45.   100% {
  46.     opacity:1;
  47.     -moz-transform:  translate(0px,0px)  ;
  48.   }
  49. }
  50.  
  51. @-webkit-keyframes animationFrames {
  52.   0% {
  53.     opacity:0;
  54.     -webkit-transform:  translate(0px,-25px)  ;
  55.   }
  56.   100% {
  57.     opacity:1;
  58.     -webkit-transform:  translate(0px,0px)  ;
  59.   }
  60. }
  61.  
  62. @-o-keyframes animationFrames {
  63.   0% {
  64.     opacity:0;
  65.     -o-transform:  translate(0px,-25px)  ;
  66.   }
  67.   100% {
  68.     opacity:1;
  69.     -o-transform:  translate(0px,0px)  ;
  70.   }
  71. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement