19 - Mini project Resize Ball โ changing the size of a ball (JS lessons)
๐ Task: Resize Object
Create an application "Resize Ball".
There is a ball on the page and 4 control buttons:
โ, โ, โ, โ.
When the buttons are clicked, you need to change the size of the object.
- โ โ decreases the height of the ball
- โ โ increases the height of the ball
- โ โ decreases the width of the ball
- โ โ increases the width of the ball
๐ Resize logic:
- On each click, the value increases or decreases
๐งช Example:
- Width was: 75px
- Pressed โ : becomes 85px
- Pressed โ : back to 75px
โ ๏ธ Advanced task:
- The size should not be less than 20px
- You can add a maximum size (max 450px)