【Misskey】画像が表示された時にキラっとさせるカスタムCSS

  1. /* 画像が表示された時にキラっとさせる */
  2. div.xnU59.xesxE.image {
  3. display:inline-block;
  4. position:relative;
  5. overflow:hidden;
  6. }
  7. div.xnU59.xesxE.image:after {
  8. content:"";
  9. height:100%;
  10. width:30px;
  11. position:absolute;
  12. top:-180px;
  13. left:0;
  14. background-color: #fff;
  15. opacity:0;
  16. -webkit-transform: rotate(45deg);
  17. -webkit-animation: reflection 2s ease-in-out;
  18. }
  19. @keyframes reflection {
  20. 0% { -webkit-transform: scale(0) rotate(45deg); opacity: 0; }
  21. 80% { -webkit-transform: scale(0) rotate(45deg); opacity: 0.5; }
  22. 81% { -webkit-transform: scale(4) rotate(45deg); opacity: 1; }
  23. 100% { -webkit-transform: scale(50) rotate(45deg); opacity: 0; }
  24. }