Simple Analog Clock using HTML, CSS and JavaScript
If you want to make an analog clock using JavaScript then this article will help you. We all know that there are two types of watches, one analog and the…
If you want to make an analog clock using JavaScript then this article will help you. We all know that there are two types of watches, one analog and the…
In this article, I am going to show you how to build a calculator using javascript code. I have already designed many more types of calculators using HTML CSS and JavaScript programming code. If you are a beginner and want to know how to build a JavaScript calculator then this tutorial will definitely help you.
Here I have explained in full step by step which programming code I have used to create any element. We all know what a calculator is and why it is used. These are mainly used for mathematical calculations. In the design shown in this article, you can do small mathematical calculations like addition, subtraction, multiplication, division, etc.
HTML helped build its structure and buttons. CSS code designed it. The most significant role here is played by JavaScript code which is used to perform calculations and activate the buttons in the calculator.
➤ In this case, I have used seven operator buttons which basically help to do this calculation such as addition, subtraction, multiplication, division, equal, cancel, backspace, etc.
➤ In this case, I have used eleven number buttons like 0 to 9.
➤ There is a beautiful display where all these calculations can be seen.
Follow the demo section below to watch the live demo of this calculator. Here you will find the required source code which you can copy and use in your project.
See the Pen
basic calculator by Foolish Developer (@fghty)
on CodePen.
As you can see in the demo above, this is a nice and simple JavaScript calculator. In which I used eighteen buttons with the number and operator buttons and put a nice display. I used a different color for the background of the operator numbers and added a hover color to it.
If you want to make this design, you should definitely follow the tutorial below. First of all, you create an HTML and a CSS file. In this case, I have used a very small amount of CSS programming code so you can not create a separate CSS file. If you want to create a CSS file, then you must attach that file to the HTML file.
In this article, you will learn how to make a digital clock with the help of HTML CSS, and JavaScript programming code. In a previous article, I showed you how…
In this article, you will learn how to create sidebar menus of Neumorphism design using HTML and CSS programming code. Earlier I designed many more types of sidebar menus using…
You will learn how to create word counters with the help of JavaScript. You will see that there are many websites on the internet that are much more popular for counting words or characters. I will try to explain in this tutorial a basic structure of how these designs work.
A simple word counter depending on the general JavaScript programming code. First of all, I have made a box (Textarea) here. When you write something in that box, every character you write in that box will be a live count. The counted results can be seen in the box below.
Basically, this design will count the number of characters, each character you write in this box will count with space. I used a small amount of HTML and CSS code to create the box and design the background.
Here all the work is handled by JavaScript, that is, everything shown in the box that counts these words is handled by JavaScript. If you want to know better how this word (character) counter works then you can see the demo below.
See the Pen
word counter by Foolish Developer (@fghty)
on CodePen.
As you can see, I made a rectangular box here. When you type something in that box, it will count live. The counted results can be seen through a small box below.
In the background of this box, I have used white color and added a blue border all around to enhance the beauty. Follow the tutorial below to make this design. In this case, first of all, let me say that I have used the bootstrap CDN link. Be sure to add a link to these two in the head section of your HTML file.
First of all, you create HTML and CSS files. Then copy the following HTML structure and add it to your HTML file.
<!DOCTYPE html>
<html lang=”en”>
<head>
<link rel=”stylesheet” href=”https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css”>
<meta charset=”UTF-8″>
<meta http-equiv=”X-UA-Compatible” content=”IE=edge”>
<meta name=”viewport” content=”width=device-width, initial-scale=1.0″>
<title>Document</title>
<style>
/* CSS Code */
</style>
</head>
<body>
<div class=”column”>
</div>
<script>
// Javascript code
</script>
</body>
</html>
Using the CSS code below I basically designed this word counter in the background.
Learn how to create a pop-up login form using HTML, CSS, and JavaScript. The popup login form is a great modern UI design login form. In the meantime, I have…
Create a Drop-down menu bar by viewing this article using Html and CSS. The drop-down menu will help organize the content of the website. Earlier I showed you how to…
Learn how to create a navigation menu bar using Html and CSS. The nav menu bar is found on almost all websites which enhances the quality of the website. Earlier…
Learn how to make a flip card using Html and CSS code. Flip Card is a great UI design that you can create with the help of basic Html and CSS. The flip card basically helps to add a lot of information to a card. You can add some information on the front and back of this card.
As a result, this type of flip card is used to add a lot of information in one place. When you click on this card or move the mouse, the backside of this card will appear in front. The structure I have created in this article is basically a subscribe box and in this case, information related to a YouTube channel has been added. Under normal circumstances, I used the background red color on the front of this card and a youtube logo image.
The back of this design can be seen when you hover the mouse over the card. On the backside, I added the profile image, name, some information about that youtube channel. I have added a subscribe button with all this information. Clicking on it will subscribe to the channel.
See the Pen
Flip subscribe Card by Foolish Developer (@fghty)
on CodePen.
In the following tutorial, I have shared complete information for making this design. I have shared with you the method of making this flip card with all the information step by step. I hope you can learn how to make a flip card by following the tutorial below.
First of all, I have used the basic HTML structure below which has been used to create the front and back sites of the card.
The CSS code below has helped to design the front and backside of this card and add a variety of colors. On the front I used red and on the back I used white. Height: 13px and width: 26px have been used for this card.
<!DOCTYPE html>
<html lang=”en”>
<head>
<meta charset=”UTF-8″>
<meta http-equiv=”X-UA-Compatible” content=”IE=edge”>
<meta name=”viewport” content=”width=device-width, initial-scale=1.0″>
<title>Document</title>
<style>
</style>
</head>
<body>
<div class=”card-wrap”>
<div class=”card”>
<div class=”card-front”>
<!– Card Fonts –>
</div>
<div class=”card-back”>
<!– card Back –>
</div>
</div>
</div>
</body>
</html>
@import url(‘https://fonts.googleapis.com/css2?family=Cabin:wght@400;500;600;700&display=swap’);
*{
box-sizing: border-box;
margin: 0;
padding: 0;
}
html{
height: 100vh;
justify-content: center;
font-family: ‘Cabin’, sans-serif;
background-image: linear-gradient(60deg, #66757F, #292F33);
display: flex;
align-items: center;
}
.card-wrap{
border-radius: 0.37rem;
perspective: 1000px;
height: 13.65rem; /* Card Height */
width: 27.15rem; /* card width */
}
.card{
height: inherit;
width: inherit;
position: relative;
transition: transform 1s;
transform-style: preserve-3d;
}
.card-front,.card-back{
width: inherit;
backface-visibility: hidden;
position: absolute;
height: inherit;
border-radius: 0.37rem;
}
.card-front{
background-color: #d30404; / * Card front background color */
display: flex;
align-items: center;
justify-content: center;
}
.card-back{
background-color: #CCD6DD;
transform: rotateY(180deg);
}
The hover effect is used in the card as I said before. When you click on this card you will see the back of this card. For this, I have used a small amount of CSS code below which means that when you click on the top of the card the card will rotate at a 180-degree angle.
.card-wrap:hover .card{
transform: rotateY(180deg);
}
First of all, we have added the profile image on the front of this card i.e. YouTube logo with the help of our own HTML and CSS code.
<div class=”card-logo”>
<img src=”https://i.pinimg.com/originals/19/7b/36/197b365922d1ea3aa1a932ff9bbda4a6.png”/>
</div>
.card-logo img{
width: 290px;
}
Again we will design the back of this card i.e. we will add all the information on the back. As I said before I added a profile image and some information on the back. The following HTML and CSS code helped to create and design the profile image.
Box-shadow has been used to make this profile image more interesting. I have used a border radius of 50% in this case. The following HTML code helps to make the various information on the card and the subscribe button on the card to make this image completely round.
<div class=”user”>
<img src=”https://lh3.googleusercontent.com/a-/AOh14Gj99VObFyE8W_h8RrcwZO_aYiIHu5AAa_XpnOym=s600-k-no-rp-mo” alt=”user-profile-picture”>
</div>
.card-back .user img{
width: 35%;
float: left;
border-radius: 50%;
margin: 1.6rem 1.1rem;
box-shadow: 3px 3px 10px #66757F;
}
In this article, I am going to show you how to create a full-screen navigation menu bar. You can create a full-page menu bar using only HTML and CSS code. Earlier I have created many types of navigation menus such as site menu bar, top menu bar, responsive menu bar, etc. You can visit our new website Tecnoacquisti to know more about this.
Full-screen navigation is a kind of menu design where you can arrange the topics in your website or blog neatly. So that your user can easily find the topics. In most cases, the top menu bar can be noticed in most websites which is the most popular. But in some cases, this type of full skin menu bar is used which can be made very easily and simply.
In this case, there is a button on the homepage, which when clicked, the menu bar can be seen across the entire page. Hope you like this design.
See the Pen
fullpage menu 1 by Foolish Developer (@fghty)
on CodePen.
Hopefully looking at the design above you like this Full-screen Overlay Responsive Navigation menu. If you want to make it and want to know how I made this design then you can follow the tutorial below.
Below you can watch the video tutorial to know the complete step-by-step. Here you can find out which programming code has been used to create which element.