Search
 
SCRIPT & CODE EXAMPLE
 

CSS

scss color loop

$alarmRgb: 255, 213, 0;
$infoRgb: 25, 97, 166;
$warnRgb: 240, 111, 50;
$errorRgb: 228, 35, 38;
$successRgb: 0, 149, 52;

$pulseList:(
  alarm: $alarmRgb,
  info: $infoRgb,
  warn:  $warnRgb,
  error: $errorRgb,
  success: $successRgb
);

@each $key, $val in $pulseList {
  @keyframes pulse-#{$key}  {
    0% {
      box-shadow: 0 0 0 0 rgba(unquote(#{$val}), 0.7);
    }

    70% {
      box-shadow: 0 0 0 10px rgba(unquote(#{$val}), 0);
    }

    100% {
      box-shadow: 0 0 0 0 rgba(unquote(#{$val}), 0);
    }
  }
}
Comment

PREVIOUS NEXT
Code Example
Css :: css 2 divs nebeneinander 
Css :: tailwindcss cdn v3 
Css :: how to color links 
Css :: css make all text center 
Css :: purge tailwind css 
Css :: scrollbar 
Css :: nmap output ip only 
Css :: css background image 
Css :: css buttons 
Css :: tailwind css next 
Css :: make css variable negative 
Css :: css flex cards 
Css :: learn css animation 
Css :: select2 make previously selected options non deletable 
Css :: dot in image css 
Css :: html textgröße ändern css 
Css :: stop mysqld.exe cmd 
Css :: wordpress classic editor on post type 
Css :: promise.resolve 
Css :: css hover animation text 
Css :: Changing Image depending on Mobile or Desktop HTML & CSS 
Css :: scss a link style 
Css :: background remover 
Css :: how to apply hover through inline css 
Css :: applying multiple transform values to an object css 
Css :: repeat css 
Css :: table tr sortable helper css 
Css :: transparent circle css 
Css :: css box-sizing 
Css :: @page css 
ADD CONTENT
Topic
Content
Source link
Name
4+4 =