Slow In

help to make the world transition!

  1. // ==UserScript==
  2. // @name Slow In
  3. // @namespace http://tampermonkey.net/
  4. // @version v1.1.2
  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.getElementsByTagName("body");
  17. var Id114=setInterval(()=>{
  18. if(Body514.length!=0)
  19. {
  20. var Displayer514=document.createElement('div');
  21. Displayer514.id="transdisplayer"
  22. var Style514=document.createElement('style');
  23. Style514.textContent=`
  24. @keyframes transss{
  25. 0%{opacity: 1;}
  26. 100%{opacity: 0;}
  27. }
  28. @keyframes transsss{
  29. 0%{opacity: 0;}
  30. 100%{opacity: 1;}
  31. }
  32. #transdisplayer{
  33. width:100vw;
  34. height:100vh;
  35. z-index:1145141919810;
  36. position: fixed;
  37. left: 0px;
  38. top: 0px;
  39. animation: transss 0.9s;
  40. background-color: white;
  41. }
  42. *{animation: transsss 1s;}
  43. `;
  44. Body514[0].appendChild(Style514);
  45. Body514[0].appendChild(Displayer514);
  46. setTimeout(()=>{Displayer514.style.display="none";},950);
  47. clearInterval(Id114);
  48. }
  49. });
  50. })();