jisaacso219 commited on
Commit
050170e
·
verified ·
1 Parent(s): a1b6108

Update style.css

Browse files
Files changed (1) hide show
  1. style.css +22 -19
style.css CHANGED
@@ -89,27 +89,30 @@ button:hover {
89
  }
90
  }
91
 
92
- /* Pulsing SHODAN Avatar Effect */
93
  #avatar {
94
- width: 150px;
95
- height: 150px;
96
- border: 2px solid #00ffcc;
97
- border-radius: 50%;
98
- animation: pulse 2s infinite;
99
- background-size: cover;
100
- background-position: center;
101
- margin-bottom: 1rem;
102
- align-self: center;
 
 
 
 
 
 
 
 
103
  }
104
 
105
  @keyframes pulse {
106
- 0% {
107
- box-shadow: 0 0 5px #00ffcc;
108
- }
109
- 50% {
110
- box-shadow: 0 0 25px #00ffccaa;
111
- }
112
- 100% {
113
- box-shadow: 0 0 5px #00ffcc;
114
- }
115
  }
 
 
89
  }
90
  }
91
 
92
+ /* container never pulses by default */
93
  #avatar {
94
+ width: 150px;
95
+ height: 150px;
96
+ border: 2px solid #00ffcc;
97
+ border-radius: 50%;
98
+ overflow: hidden;
99
+ margin-bottom: 1rem;
100
+ align-self: center;
101
+ }
102
+
103
+ /* only pulse while speaking */
104
+ #avatar.speaking {
105
+ animation: pulse 2s infinite;
106
+ }
107
+
108
+ /* also scale the img inside when speaking */
109
+ #avatar.speaking img {
110
+ animation: pulse 2s infinite;
111
  }
112
 
113
  @keyframes pulse {
114
+ 0% { box-shadow: 0 0 5px #00ffcc; transform: scale(1); }
115
+ 50% { box-shadow: 0 0 25px #00ffccaa; transform: scale(1.05); }
116
+ 100% { box-shadow: 0 0 5px #00ffcc; transform: scale(1); }
 
 
 
 
 
 
117
  }
118
+