EasyWeb is a versatile JavaScript API designed to simplify web development tasks and facilitate event handling, animations, and more. This API offers functionalities for easy integration across various web frameworks and provides flexibility in configuration.
- Event Handling: Simplifies event attachment and removal on HTML elements.
- Configuration: Easily load and manage configurations using
loadConfig
method with customizable paths. - Animation Support: Utilize pre-defined CSS-based animations from the provided
animated.json
configuration file. - Custom Animation Creation: Define and create your own animations using JSON configuration.
- Scroll Control: Enable or disable page scrolling easily.
- Element Animation: Initiate element animations using
animate
andstopAnimation
methods. - Transition Management: Apply transitions to elements using
transition
andremoveTransition
methods. - Utilities: Includes utilities like
getClickCoordinates
,delayExecution
,isAnimationSupported
,isTransitionSupported
,getWindowSize
, and more.
To start using EasyWeb in your project:
- Include the EasyWeb script in your HTML:
<script src="path/to/EasyWeb.js"></script> or <script src="https://api.quantiumflow.com/EasyWeb.js"></script>
// Sample code snippet demonstrating EasyWebEvents usage
const element = document.getElementById('myElement');
// Registering an event
EasyWebEvents.on(element, 'click', (event) => {
// Perform actions on click
});
// Configuring and triggering an animation
EasyWebEvents.animate(element, 'fadeInOut', 1500, 'ease-in-out');
Find the API documentation here.