check for valid placement attribute
Adding support for animation