Mirroring Effect on Text.

How to add mirroring animation over text <script src=”https://unpkg.com/scroll-out/dist/scroll-out.min.js”> </script> <script src=”https://unpkg.com/splitting/dist/splitting.js”> </script> <span id=”jjrd-head-text” class=”text text–turning” data-scroll=”out” data-splitting=””>ERP + eCommerce</span> /* transform */ .jjrd-benefits .text .char { display:inline-flex; -webkit-animation-delay: calc(0.25s + var(–char-index) * 0.1s); animation-delay: calc(0.25s + var(–char-index) * 0.1s); transition: all 0.25s calc(0.25s + var(–char-index) * 0.1s); }. .jjrd-benefits .text–turning [data-scroll=’out’] .char {… Continue reading Mirroring Effect on Text.

Published
Categorized as Magento

how to add Lottie animation video to a div using javascript

To add a Lottie animation to a div using JavaScript, you can follow these steps: First, include the Lottie library in your HTML file by adding the following script tag in the head section:<head> <script src=”https://cdnjs.cloudflare.com/ajax/libs/bodymovin/5.5.9/lottie.min.js”></script> </head> Next, create a container div in your HTML file where the Lottie animation will be loaded. For example:<div… Continue reading how to add Lottie animation video to a div using javascript

Published
Categorized as Magento

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

clip-path

The clip-path property lets you clip an element to a basic shape or to an SVG source. Note: The clip-path property will replace the deprecated clip property. The clip-path CSS property creates a clipping region that sets what part of an element should be shown. Parts that are inside the region are shown, while those… Continue reading clip-path

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

Common Breakpoints

There are some commonly used breakpoints in daily programming. If you’re using a CSS framework (like Bootstrap, Bulma, etc.) you can also use their breakpoints. Now let’s see some common breakpoints for widths of devices: 320px — 480px: Mobile devices 481px — 768px: iPads, Tablets 769px — 1024px: Small screens, laptops 1025px — 1200px: Desktops, large screens 1201px and more —  Extra large screens,… Continue reading Common Breakpoints

Extension for Speed optimization Magento 2

‘Magepow’ is having a free extension to optimize the website and increase the performance MagePow Speed Optimizer The speed of your website is slow, which has a negative effect on Google rating and ranking and especially on the customer experience. Magento 2 Speed Optimizer or Magento 2 Speed Optimize (also known as Google page speed… Continue reading Extension for Speed optimization Magento 2