This is a simple example demonstrating how to create a swinging text effect using JavaScript. The entire functionality is contained within a single index.js file.
This project showcases a basic implementation of a swinging text effect. It utilizes HTML canvas and JavaScript to create an animation where the text swings back and forth.
Ensure you have an HTML file with a element. Give this element an id, for example: id="canvas". Link the index.js file to your HTML file. When the page loads, the JavaScript code will automatically execute and create the swinging text effect.
The provided code animates the text "Swinging Text" swinging horizontally on the canvas.
Contributions are welcome. If you have suggestions or improvements, feel free to open an issue or submit a pull request.
This project was created as a simple demonstration of creating animation effects using HTML canvas and JavaScript.