Advertisement
jargon

phasing.css

Mar 22nd, 2025
466
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.64 KB | Gaming | 0 0
  1. @keyframes pulseAlpha {
  2.     0%   { opacity: 0.2; }
  3.     50%  { opacity: 0.7; }
  4.     100% { opacity: 0.2; }
  5. }
  6.  
  7. .ring {
  8.     animation: pulseAlpha 1.2s ease-in-out infinite;
  9. }
  10.  
  11. @keyframes phaseSprite {
  12.     0%, 100% { opacity: 1; }
  13.     50%      { opacity: 0; }
  14. }
  15.  
  16. .phase-frame {
  17.     position: absolute;
  18.     top: 0;
  19.     left: 0;
  20.     width: var(--map-cell-width);
  21.     height: var(--map-cell-height);
  22.     pointer-events: none;
  23.     image-rendering: pixelated;
  24.     animation: phaseSprite 1.2s ease-in-out infinite;
  25. }
  26.  
  27. .phase-frame.frame1 {
  28.     z-index: 1;
  29.     animation-delay: 0s;
  30. }
  31.  
  32. .phase-frame.frame2 {
  33.     z-index: 0;
  34.     animation-delay: 0.6s; /* offset by half the duration */
  35. }
  36.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement