Here are a few suggestions for better customisation
Adjustability whether the direction of movement should be after the animation is completed (i.e. when the staircase slowly goes out). Whether the same running direction as when it starts. Always downwards or always upwards.
Option to set the fade time
Different times can be set for animation upwards or downwards (depending on which sensor is triggered)