Create Thumbnail of pdf and video file with certain width and height – JavaScript Function
The following code creates a 480 X 320 px thumbnail and calls the upload function to upload...
Read Moreby Puneet Sharma | Jan 23, 2025 | Code Snippets, JavaScript | 0 |
The following code creates a 480 X 320 px thumbnail and calls the upload function to upload...
Read Moreby Puneet Sharma | Dec 19, 2024 | Code Snippets, JavaScript, jQuery | 0 |
Let’s create an HTML form with many different types of inputs with values and a hidden submit button and a reset button. Now, create a jQuery script that detects changes in input fields, unhides the submit and reset...
Read Moreby Puneet Sharma | Dec 13, 2024 | Code Snippets, JavaScript, UI Components | 0 |
Here is a code with the demo I just found on Codepen, that handles pasting OTP also. See the Pen...
Read Moreby Puneet Sharma | Aug 30, 2024 | Code Snippets, CSS, CSS Animations | 0 |
Here is a very simple example with a demo and source code for making a cool loader animation with...
Read Moreby Puneet Sharma | Aug 20, 2024 | Code Snippets, CSS Animations, JavaScript | 0 |
Here is a code with a demo for matrix raindrop-like animation from top to bottom with 0 and 1 as...
Read Moreby Puneet Sharma | Mar 6, 2024 | Code Snippets, CSS | 0 |
@media (max-width:1800px) { } @media (max-width:1400px) { } @media (max-width:1300px) { } @media (max-width: 1199.98px) { } @media (max-width: 1199.98px) { } @media (max-width: 991.98px) { } @media (max-width: 767.98px) { }...
Read Moreby Puneet Sharma | Jul 28, 2023 | Code Snippets, GSAP | 0 |
This is just a code snippet. I will add a demo when I get time. gsap.registerPlugin(ScrollTrigger, SplitText); // Register plugin first // Timeline for split text var tl = gsap.timeline(), mySplitText = new...
Read Moreby Puneet Sharma | Jun 15, 2023 | Code Snippets | 0 |
Here is a jQuery code snippet that will replace all your images with the SVG codes and retain all classes that images have, getting added to the SVG class attribute. // Replace image tag with svg const replaceWithSVG = () => {...
Read Moreby Puneet Sharma | May 25, 2023 | Code Snippets | 0 |
Here is a script that will help you replace an image tag with an SVG extension image file with SVG code. This can be helpful when you don’t want too much SVG code inside your HTML file. (function () {...
Read Moreby Puneet Sharma | Feb 4, 2023 | Code Snippets, CSS | 0 |
Zebra stripes are a popular design element that can be used to add visual interest and organization to tables and other elements. By default, zebra stripes are created using alternating colors of white and light gray. However,...
Read Moreby Puneet Sharma | Feb 4, 2023 | Code Snippets, CSS, CSS Animations | 0 |
Here is a simple CSS solution (javascript not needed here) to achieve the active state elastic animations that go from left to right during the active state of a particular nav tab. Let “.bg-elastic” is the...
Read Moreby Puneet Sharma | Feb 2, 2023 | Code Snippets, CSS | 0 |
Hi, if you want to zoom your website on a bigger screen like QHD and UHD i.e > 1920px you can...
Read More
You must be logged in to post a comment.