improve (nyan): center the cat in the middle of the screen

This commit is contained in:
Mickael Kerjean 2019-05-24 10:48:14 +10:00
parent ca495ed943
commit 787660f680

View file

@ -33,13 +33,13 @@
</script>
<style>
#n-lder{ max-width: 100%; overflow: hidden; }
#n-lder #cat{ position: absolute; top: 50%; left: 0%; margin-left: -250px; margin-top: -125px; width: 100%; height: 150px; }
#n-lder #cat{ position: absolute; top: calc(50% + 45px); left: 0%; margin-left: -250px; margin-top: -125px; width: 100%; height: 150px; }
#n-lder.loading #cat{ left: 20%; left: calc(50% + 125px); transition: left 4s ease-out; }
#n-lder.loading.done #cat { left: 100%; left: calc(100% + 250px); transition: left 0.5s linear; }
#n-lder #cat svg{ height: 160px; width: 250px; position: absolute; }
#n-lder #cat #hide-behind{ position: absolute; top: 0; left: 55px; bottom: 0; right: -250px; }
#n-lder #rbw{ position: absolute; top: 50%; left: 0; overflow: hidden; height: 145px; margin-top: -110px; width: 100%; }
#n-lder #rbw{ position: absolute; top: calc(50% + 45px); left: 0; overflow: hidden; height: 145px; margin-top: -110px; width: 100%; }
#n-lder #rbw .w{ width: 10000px; }
#n-lder #rbw .rbw { z-index: -1; font-size: 16em; float: left; position: relative; }
#n-lder #rbw .rbw .wv { height: 20px; width: 55px; }