Advertisement
Guest User

CSS Hat effects

a guest
May 18th, 2012
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 2.08 KB | None | 0 0
  1. #header .light_1 {
  2.      background-image: url('../img/header_light.png');
  3.      -webkit-animation: hat-glow-effect-1 40s ease-in-out infinite;
  4. }
  5. #header .light_2 {
  6.      background-image: url('../img/header_light_2.png');
  7.      -webkit-animation: hat-glow-effect-2 40s ease-in-out infinite;
  8. }
  9. #header .light_3 {
  10.      background-image: url('../img/header_light_3.png');
  11.      -webkit-animation: hat-glow-effect-3 40s ease-in-out infinite;
  12. }
  13. #header .light_4 {
  14.      background-image: url('../img/header_light_4.png');
  15.      -webkit-animation: hat-glow-effect-4 40s ease-in-out infinite;
  16. }
  17. #header .light_5 {
  18.      background-image: url('../img/header_light_5.png');
  19.      -webkit-animation: hat-glow-effect-5 40s ease-in-out infinite;
  20. }
  21. #header .icons {
  22.      -webkit-animation: levitate 4s ease-in-out infinite alternate both;
  23. }
  24.  
  25.  
  26. /* @Animations */
  27.  
  28. @-webkit-keyframes hat-glow-effect-1 {
  29.   0% {
  30.     -webkit-transform: scale(1.02) translate3d(0, -1px, 0);
  31.     opacity: 1;
  32.   }
  33.   15%, 85%  {
  34.     opacity: 0;
  35.   }
  36.   100% {
  37.     -webkit-transform: scale(1.02) translate3d(0, -1px, 0);
  38.     opacity: 1;
  39.   }
  40. }
  41.  
  42. @-webkit-keyframes hat-glow-effect-2 {
  43.   0%, 5%, 35%, 100% {
  44.     opacity: 0;
  45.   }
  46.   20% {
  47.     -webkit-transform: scale(1.02) translate3d(0, -1px, 0);
  48.     opacity: 1;
  49.   }
  50. }
  51.  
  52. @-webkit-keyframes hat-glow-effect-3 {
  53.   0%, 25%, 55%, 100% {
  54.     opacity: 0;
  55.   }
  56.   40% {
  57.     -webkit-transform: scale(1.02) translate3d(0, -1px, 0);
  58.     opacity: 1;
  59.   }
  60. }
  61.  
  62. @-webkit-keyframes hat-glow-effect-4 {
  63.   0%, 45%, 75%, 100% {
  64.     opacity: 0;
  65.   }
  66.   60% {
  67.     -webkit-transform: scale(1.02) translate3d(0, -1px, 0);
  68.     opacity: 1;
  69.   }
  70. }
  71.  
  72. @-webkit-keyframes hat-glow-effect-5 {
  73.   0%, 65%, 95%, 100% { /* ==100% */
  74.     opacity: 0;
  75.   }
  76.   80% {
  77.     -webkit-transform: scale(1.02) translate3d(0, -1px, 0);
  78.     opacity: 1;
  79.   }
  80. }
  81.  
  82.  
  83.  
  84. @-webkit-keyframes levitate {
  85.   0% {
  86.     -webkit-transform: translate3d(0, -18px, 0);
  87.   }
  88.   100% {
  89.     -webkit-transform: translate3d(0, 18px, 0);
  90.   }
  91. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement