you can do something like

action disappearing_platform
{
while(me)
{
my.passable=(my.passable== off);
my.invisible=(my.invisible== off);
sleep(5);
}
}

but this could cause a problem if the platform turns non-passable when another entity (like the player) is at the platform's position. the entity would get stuck in the platform until it turns passable again.