Skip to content

Commit c520650

Browse files
committed
adding Slack animation
1 parent 287d99f commit c520650

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

layouts/partials/header.html

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,8 @@ <h4>{{ .title }}</h4>
195195
{{ end }}
196196
</select>
197197
</div>
198-
<a href="{{ "slack" | absURL }}" class="btn btn-primary" target="_blank">
199-
<i class="ti-comments pr-2"></i>{{ T "join_slack" }}
198+
<a href="{{ "slack" | absURL }}" class="btn btn-primary d-flex align-items-center" target="_blank">
199+
<img src="/images/slack.png" class="slack-icon-pulse" alt="Slack" style="width: 16px; height: 16px; margin-right: 8px;">{{ T "join_slack" }}
200200
</a>
201201
</div>
202202
</nav>
@@ -215,6 +215,18 @@ <h4>{{ .title }}</h4>
215215
to { transform: rotate(360deg); }
216216
}
217217

218+
@keyframes pulse {
219+
0% { transform: scale(1); }
220+
50% { transform: scale(1.2); }
221+
100% { transform: scale(1); }
222+
}
223+
224+
.slack-icon-pulse {
225+
display: inline-block;
226+
animation: pulse 2s infinite ease-in-out;
227+
vertical-align: middle;
228+
}
229+
218230
.language-selector {
219231
display: inline-block;
220232
margin-right: 10px;

0 commit comments

Comments
 (0)