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
Author: Abin Devasia
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.
How to Detect scroll direction
It can be detected by storing the previous scrollTop value and comparing the current scrollTop value with it. JavaScript :
How to detect when the user scrolls to the bottom of the div with jQuery
There are some properties/methods you can use: code is mentioned below.
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?
How to play and pause a video by on click
How to get and set video src by clicking on div using jquery.
$(“.new-video #sub-video”).parent().click(function(e){const videoSource = ($(this).children().attr(‘src’))$(‘.video source’).attr(‘src’, videoSource)});
Where to Find Slider Content Type in Magento Page Builder
To begin, open the Magento Page Builder workspace of the page, block, or dynamic block where you want to place the slider.In the left panel, expand Media to show the Slider content type. In Magento Page Builder Slider, there are two separate toolboxes, each with its own set of controls. One is used for the… Continue reading Where to Find Slider Content Type in Magento Page Builder
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
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