Slow In

help to make the world transition!

目前为 2024-09-12 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name Slow In
  3. // @namespace http://tampermonkey.net/
  4. // @version v1.1
  5. // @description help to make the world transition!
  6. // @author PCwqyy
  7. // @match http://*/*
  8. // @match https://*/*
  9. // @run-at document-start
  10. // @icon https://cdn.luogu.com.cn/upload/usericon/567385.png
  11. // @grant none
  12. // @license MIT
  13. // ==/UserScript==
  14.  
  15. (function() {
  16. var Body514=document.querySelector("body");
  17. var Displayer514=document.createElement('div');
  18. Displayer514.id="transdisplayer"
  19. var Style514=document.createElement('style');
  20. Style514.textContent="\
  21. @keyframes transss{\
  22. 0%{opacity: 1;}\
  23. 100%{opacity: 0;}\
  24. }\
  25. @keyframes transsss{\
  26. 0%{opacity: 0;}\
  27. 100%{opacity: 1;}\
  28. }\
  29. #transdisplayer{\
  30. width:100vw;\
  31. height:100vh;\
  32. z-index:1145141919810;\
  33. position: fixed;\
  34. left: 0px;\
  35. top: 0px;\
  36. animation: transss 0.9s;\
  37. background-color: white;\
  38. }\
  39. *{animation: transsss 1s;}\
  40. ";
  41. Body514.appendChild(Style514);
  42. Body514.appendChild(Displayer514);
  43. setTimeout(()=>{Displayer514.style.display="none";},950);
  44. })();