This project is a React application that allows users to manipulate a square shape on the screen using various transform properties.
- Translate the square along X and Y axes
- Rotate the square
- Scale the square
- Adjust the opacity of the square
The main component that renders the entire application. It manages the state for all transform properties and renders the control inputs and the square.
Renders a blue square that can be transformed based on the provided properties.
InputX
: Controls the X-axis translationInputY
: Controls the Y-axis translationRotate
: Controls the rotationScale
: Controls the scalingOpacity
: Controls the opacity
To use this application:
- Clone the repository
- Install dependencies with
npm install
- Run the development server with
npm run dev
- Open the application in your browser
Use the input controls at the top of the page to manipulate the square's properties.