def join(self, run=False): if run: self.opacity = 0 x_pos = self.x self.x += 100 animation(self, ({'x': x_pos, 'd': .1}, {'opacity': 1, 'd': .15}))
def focus(self, source): if isinstance(source, str): animation(self, ({'opacity': 0, 'd': .1}, )) clocker(lambda dt: animation(self, ({ 'opacity': 1, 'd': .3 }, )), 'once', .12) clocker(lambda dt: self._changing(source), 'once', .12)
def leave(self, run=False): if run: self.opacity = 1 animation(self, ({ 'x': self.x - 100, 'd': .05 }, { 'opacity': 0, 'd': .15 }))
def showing(self): animation(self, ({'height' : 600, 'd': .2},))
def showing(self): animation(self, ({'opacity' : 1, 'd': .3},))
def fading(self): animation(self, ({'opacity' : 0, 'd': .3},))
def fading(self): animation(self, ({'opacity' : 1, 'd': .2},))
def blink(self, run=False): if run: self.opacity = 0 animation(self, ({'opacity': 1, 'd': .15}, ))
def focus(self, source): if isinstance(source, str): animation(self, ({'opacity': 0, 'd': .1},)) clocker(lambda dt : animation(self, ({'opacity': 1, 'd': .3},)), 'once', .12) clocker(lambda dt : self._changing(source), 'once', .12)
def showing(self): animation(self, ({'height': 600, 'd': .2}, ))