how to load Lottie animation on hover using javascript

To load a Lottie animation on hover using JavaScript, we can use these steps: First, you need to include the Lottie library in your HTML file. You can do this by adding the following script tag in the head section of your HTML file: <head> <script src=”https://cdnjs.cloudflare.com/ajax/libs/bodymovin/5.5.9/lottie.min.js”></script> </head> 2. Next, you need to create a… Continue reading how to load Lottie animation on hover using javascript

Published
Categorized as Magento

How to run a new Lottie animation when playing one is completed using the adEventListener method with the complete event.

To run a new Lottie animation when playing one is completed using the addEventListener method with the “complete” the event, you can follow these steps: First, create a Lottie animation using the lottie.loadAnimation() method and assign it to a variable. For example: const animation1 = lottie.loadAnimation({container: document.getElementById(‘animation1’),renderer: ‘svg’,loop: false,autoplay: false,path: ‘animation1.json’}); Here, we’ve created a… Continue reading How to run a new Lottie animation when playing one is completed using the adEventListener method with the complete event.

Published
Categorized as Magento

How to Detect scroll direction

It can be detected by storing the previous scrollTop value and comparing the current scrollTop value with it. JavaScript :

Published
Categorized as Magento

What is a Lottie animation?

A Lottie is a JSON-based animation file format that allows you to ship animations on any platform as easily as shipping static assets. They are small files that work on any device and can scale up or down without pixelation. LottieFiles lets you create, edit, test, collaborate on, and ship a Lottie in the easiest way… Continue reading What is a Lottie animation?

Published
Categorized as Magento

Difference between background-size: cover and background-size: contain

background-size: contain ensures that the entire background image will fit the background area, keeping its original aspect ratio. If the background area is smaller than the image, the image will shrink so that it can fit the background area. If the background area is either taller or wider than the image, then any parts of the… Continue reading Difference between background-size: cover and background-size: contain

Published
Categorized as Magento

How to create an integration Token in Magento 2 manually

Step 1: Go to System -> Integrations Menu. Step 2:  Click add new integration to open a new integration form. Step 3: Enter the integration name as the form in the above picture. Step 4: Grant access to the API resources. Step 5: Save to create a new consumer public & secret keys for integration. Step 6: Activate integration for creating an access token… Continue reading How to create an integration Token in Magento 2 manually

Published
Categorized as Magento