Skip to content

Instantly share code, notes, and snippets.

View Turbler's full-sized avatar

Tetra Turbler

View GitHub Profile
def printen(string):
print(string, end="")
def printanimatestaggered(string,animation,stagger):
i=0
printen(f'''<div style="background:black; margin:-2em -1em;padding: 2em;color:white;animation-name:{animation};animation-duration:0ms;animation-iteration-count:1;animation-timing-function:step-end;display:inline-block;animation-fill-mode:both;font-family:monospace;">''')
printen('''<div style="display:inline-block;animation:inherit;">''')
for char in string:
i+=1
if char ==" ":
printen('''</div> <div style="display:inline-block;animation:inherit;">''')