Skip to content

Instantly share code, notes, and snippets.

@pacochi
Created January 11, 2023 07:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pacochi/3bc86d6d685a29ab2fcf115e6a76fbb1 to your computer and use it in GitHub Desktop.
Save pacochi/3bc86d6d685a29ab2fcf115e6a76fbb1 to your computer and use it in GitHub Desktop.
鏡開き
/* ==UserStyle==
@name 鏡開き
@namespace hen.acho.co
@version 1.0.0
@description ぱかー
@author pacochi
==/UserStyle== */
.status__wrapper[aria-label$='unarist@mstdn.maud.io'] .account__avatar {
/* 自分が見ているサーバのファイルにする */
--una-mochi-bg: url('https://img.pawoo.net/cache/accounts/avatars/000/083/683/original/773acc2b2ad5a9db.png');
}
.status__wrapper[aria-label$='unarist@mstdn.maud.io'] .account__avatar::before,
.status__wrapper[aria-label$='unarist@mstdn.maud.io'] .account__avatar::after {
content: '';
background-image: var(--una-mochi-bg);
display: block;
position: absolute;
top: 0px;
width: 24px;
height: 48px;
background-size: 48px 48px;
}
.status__wrapper[aria-label$='unarist@mstdn.maud.io'] .account__avatar::before {
left: 0px;
transform-origin: left;
animation: 1s linear 0s infinite open_mirror_l;
}
.status__wrapper[aria-label$='unarist@mstdn.maud.io'] .account__avatar::after {
left: 24px;
background-position: 24px 0px;
transform-origin: right;
animation: 1s linear 0s infinite open_mirror_r;
}
@keyframes open_mirror_l {
from {
transform: perspective(144px) rotateY(0deg);
}
to {
transform: perspective(144px) rotateY(-90deg);
}
}
@keyframes open_mirror_r {
from {
transform: perspective(144px) rotateY(0deg);
}
to {
transform: perspective(144px) rotateY(90deg);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment