Mayank Agarwal has Published 403 Answers

How to Generate a PDF from an HTML Webpage?

Mayank Agarwal

Mayank Agarwal

Updated on 26-Apr-2022 07:49:28

In this article, we are going to explore the conversion of required HTML content into a PDF file. Many a time we have to read and accept the Terms & Conditions, a better way is to download the PDF file read it in spare time, and then accept it. Therefore, ... Read More

How to Declare an Object with Computed Property Name in JavaScript?

Mayank Agarwal

Mayank Agarwal

Updated on 26-Apr-2022 06:59:44

In this article, we are going to explore about the concept of computed properties in an object. We will learn how to declare an object with computed property name. Let’s know about JavaScript objects before actually moving on to computed properties.JavaScript Object − A JavaScript Object contains key-value pairs in ... Read More

How to Create Timeline Animations using Anime.js?

Mayank Agarwal

Mayank Agarwal

Updated on 26-Apr-2022 06:51:10

In this article, we are going to explore and learn about Timeline Animations. Anime.js is a lightweight JavaScript library that has a small but powerful set of APIs. It works upon the DOM attributes, CSS properties, SVG, and JavaScript objects.We can build multiple and complex animations using the Anime.js. Anime’s ... Read More

How to Create a Parallax Effect using HTML, CSS, and JavaScript?

Mayank Agarwal

Mayank Agarwal

Updated on 26-Apr-2022 06:45:17

In this article, we are going to learn about parallax effects and how to create them using HTML, CSS, and JavaScript. We will be using the mouse-move event to show the parallax effect. During the parallax effect, two different images move in parallel to each other. Both the images will ... Read More

How to Create an Image Slider using HTML, CSS, and JavaScript?

Mayank Agarwal

Mayank Agarwal

Updated on 25-Apr-2022 13:44:09

In this article, we are going to create a slider carousel using JavaScript. Along with using JS we will be also using HTML and CSS for representation and defining the basic layout.A carousel is basically a collection of images represented as a slideshow that is used for displaying the images, ... Read More

How to Create a Color Picker in ReactJS?

Mayank Agarwal

Mayank Agarwal

Updated on 25-Apr-2022 12:34:09

In this article, we are going to explore how to create and use a Color Picker in ReactJS. A Color Picker can be defined as a graphical user interface widget that is usually found within some graphics software or used online to select/choose colors and sometimes to create new color ... Read More

How to create an object with prototype in JavaScript?

Mayank Agarwal

Mayank Agarwal

Updated on 25-Apr-2022 12:29:39

In this article, we are going to explore prototypes and their creation in JavaScript. We will learn about how to create objects and how to implement them with the help of examples.Prototypes can be defined as a mechanism that lets the objects of JavaScript inherit features and properties from another ... Read More

JavaScript: How to Create an Object from Key-Value Pairs

Mayank Agarwal

Mayank Agarwal

Updated on 25-Apr-2022 12:23:35

In this article, we are going to explore how to create a JavaScript object from the desired key-value pairs. Let’s understand the steps involved as below−Steps:Step I − We are first going to create an Empty Object.let object = {}Step II − Once the object is initialized with the null ... Read More

How to create an image map in JavaScript?

Mayank Agarwal

Mayank Agarwal

Updated on 25-Apr-2022 12:09:50

An Image map is a special type of image that is broken into various hotspots and each hotspot takes you to a different file. Hotspots are nothing but clickable areas upon images that are created by a user with the help of the tag. This type of map is ... Read More

How to create an FAQ section of a website using JavaScript?

Mayank Agarwal

Mayank Agarwal

Updated on 25-Apr-2022 11:45:16

In this article, we will be creating a FAQ (Frequently asked questions) accordion using JavaScript. The accordion is used to display the questions and will open up on clicking to display the answers. We can see the FAQ section on every website where all the top questions are covered. Today ... Read More

Advertisements