Advertisement
artpc

equalizer

Apr 14th, 2021
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.82 KB | None | 0 0
  1. name: Głosnik
  2. show_name: true
  3. icon: 'mdi:speaker'
  4. styles:
  5. custom_fields:
  6. wave:
  7. - background-color: 'rgba(0, 0, 0, 0)'
  8. - position: absolute
  9. - right: 5%
  10. - top: 5%
  11. - font-size: 13px
  12. - line-height: 20px
  13. - display: |
  14. [[[
  15. if (states["input_boolean.przelacznik_nodered"].state == 'on') return '';
  16. else return 'none';
  17. ]]]
  18. - '--icon-color': |
  19. [[[
  20. if (states["input_boolean.przelacznik_nodered"].state == 'on') return 'var(--mail-color)';
  21. else return 'var(--primary-color)';
  22. ]]]
  23. card:
  24. - border: 2px solid var(--primary-color)
  25. - border-radius: 10px
  26. icon:
  27. - color: var(--primary-color)
  28. name:
  29. - font-variant: small-caps
  30. - color: var(--primary-color)
  31. custom_fields:
  32. wave: |
  33. [[[
  34. return `
  35. <div class="loader-container">
  36. <div class="loader-3">
  37. <div class="item-1"></div>
  38. <div class="item-2"></div>
  39. <div class="item-3"></div>
  40. <div class="item-4"></div>
  41. <div class="item-5"></div>
  42. </div>
  43. </div>`
  44. ]]]
  45. type: 'custom:button-card'
  46. style: |
  47. .loader-3{
  48. width: 40px;
  49. height: 40px;
  50. }
  51.  
  52. .loader-3 div {
  53. height: 100%;
  54. width: 3px;
  55. display: inline-block;
  56. }
  57. .loader-3 div .item-1{
  58. height: 50%;
  59. }
  60. .loader-3 .item-1 {
  61. animation: loader-3-first-div 1.2s infinite linear;
  62. background-color: red;
  63. }
  64.  
  65. .loader-3 .item-2 {
  66. animation: loader-3-second-div 1.2s infinite linear;
  67. animation-delay: -1.1s;
  68. background-color: darkorange;
  69.  
  70. }
  71.  
  72. .loader-3 .item-3 {
  73. animation: loader-3-third-div 1.2s infinite linear;
  74. animation-delay: -1.0s;
  75. background-color: gold;
  76.  
  77. }
  78.  
  79. .loader-3 .item-4 {
  80. animation: loader-3-fourth-div 1.2s infinite linear;
  81. animation-delay: -0.9s;
  82. background-color: green;
  83. }
  84.  
  85. .loader-3 .item-5 {
  86. animation: loader-3-last-div 1.2s infinite linear;
  87. animation-delay: -0.8s;
  88. background-color: DarkOrchid;
  89. }
  90.  
  91. @keyframes loader-3-first-div {
  92. 25%,75% {
  93. transform: scaleY(0.2);
  94. }
  95. 0%,50%,100%{
  96. transform: scaleY(0.6);
  97. }
  98. }
  99. @keyframes loader-3-second-div {
  100. 25%,75% {
  101. transform: scaleY(0.4);
  102. }
  103. 0%,50%,100%{
  104. transform: scaleY(1);
  105. }
  106. }
  107. @keyframes loader-3-third-div {
  108. 25%,75% {
  109. transform: scaleY(0.4);
  110. }
  111. 0%,50%,100%{
  112. transform: scaleY(1);
  113. }
  114. }
  115. @keyframes loader-3-fourth-div {
  116. 25%,75% {
  117. transform: scaleY(0.4);
  118. }
  119. 0%,50%,100%{
  120. transform: scaleY(1);
  121. }
  122. }
  123. @keyframes loader-3-last-div {
  124. 25%,75% {
  125. transform: scaleY(0.2);
  126. }
  127. 0%,50%,100%{
  128. transform: scaleY(0.6);
  129. }
  130. }
  131.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement