InterviewSolution
| 1. |
Why Is The Block Display Style Used For Animations? |
|
Answer» In html only the block LEVEL elements can have custom HEIGHTS and widths. So when a user defines an animation method for usage such as show, hide, slide up etc the display css property of the block being animated is set to display block style. On completion of the animation the display style of the block would be CHANGED to its original value. This procedure does not work properly for inline elements and the following workarounds can be applied to it:
In html only the block level elements can have custom heights and widths. So when a user defines an animation method for usage such as show, hide, slide up etc the display css property of the block being animated is set to display block style. On completion of the animation the display style of the block would be changed to its original value. This procedure does not work properly for inline elements and the following workarounds can be applied to it: |
|