animated avatar

This commit is contained in:
xaoxuu 2021-07-04 23:22:43 +08:00
parent 3b489d6146
commit f7ff081871
1 changed files with 3 additions and 0 deletions

View File

@ -32,6 +32,9 @@ function layoutDiv() {
el += '<div class="logo-wrap">';
if (md_text(theme.sidebar.logo.avatar)) {
el += '<a class="avatar" href="' + url_for(md_link(theme.sidebar.logo.avatar) || "/") + '">';
if (theme.style.animated_avatar.animate) {
el += '<div class="bg" style="opacity:0;background-image:url(' + theme.style.animated_avatar.background + ');"></div>';
}
el += '<img no-lazy class="avatar" src="' + md_text(theme.sidebar.logo.avatar) + '">';
el += '</a>';
}