def METHOD_NAME(self, checked):
    anim = QPropertyAnimation(self, b'offset', self)
    anim.setDuration(120)
    anim.setStartValue(self.offset)
    anim.setEndValue(self._end_offset[checked]())
    anim.start()