js-widget-collection is a collection of interactive JavaScript widgets designed to demonstrate various animation techniques using CreateJS. This project serves as a playground for experimenting with animated graphics and provides reusable components for web developers.
- Loading Circles: Smooth animated circles that display loading states.
- Circular Progress Circles: Dynamic circular progress bars with customizable parameters.
- 3D Circles: Engaging 3D animations that create depth in web interfaces.
- Responsive Design: Optimized for various screen sizes ensuring a seamless experience across devices.
To get started with Scratchpad locally, follow these steps:
-
Clone the repository
git clone https://github.com/mwmuni/js-widget-collection.git cd js-widget-collection
-
Install dependencies
Ensure you have Node.js installed.
npm install
-
Run the development server
npm start
This will start a development server at
http://localhost:8080
. Open this URL in your browser to view the project. -
Build for production
To build the project for production, run:
npm run build
The optimized files will be output to the
dist/
directory.
Once the development server is running, navigate to http://localhost:8080
to explore the different JavaScript widgets. Each widget is displayed within a card and includes an optional "Show Code" button to view the source code in a modal.
To add new widgets:
- Create a new JavaScript file in the
src/
directory. - Implement your widget using CreateJS or any other preferred library.
- Update the
index.html
file to include a new card for your widget, referencing the new JavaScript file and corresponding canvas element.
- src/: Contains source JavaScript and CSS files.
- dist/: Contains the built and bundled files ready for production.
- public/: Public assets and additional scripts.
- package.json: Project dependencies and scripts.
Contributions are welcome! If you'd like to contribute to Scratchpad, please follow these steps:
-
Fork the repository
-
Create a new branch
git checkout -b feature/YourFeatureName
-
Commit your changes
git commit -m "Add some feature"
-
Push to the branch
git push origin feature/YourFeatureName
-
Open a Pull Request
This project is licensed under the MIT License. See the LICENSE file for details.
For any inquiries or feedback, please contact sieykic@gmail.com.