December 28, 2024
1 min read
Essential Code Snippet For Web Developers

With this code we will get a height of a div and use that height in another place. And the height value will change automatically based time intervale.

Custom.js
setInterval(function () {
   var topp = $('.header_area').outerHeight() - 50;
   console.log(topp);
           
   $('#header_paddig').css('height', topp);
}, 2000);

Leave a Reply

Your email address will not be published. Required fields are marked *

Sequential Fading jQuery Text Animation

This code animates text using jQuery, creating a seamless, captivating effect with elegant fades, enhancing user engagement and enriching web design.

ACF

Advanced Custom Fields code snippet

Advance custom field Link Field, Flexible content Field, Gallery and tricks code snippet

Adding and Removing Class Based on Element Visibility in the Viewport

Add class on element if it come in view and remove not in view

Most View or Popular Post on WordPress

WordPress Post query by user views without plugin and simple code snippet

Web Development Project in mind?

if you looking for a web developer for paid contribution to your project I am available for work.

Mukto
Mukto

Click the button below to chat with me.