Awesome Animated Search bar using HTML & CSS

In this article, I am going to show you how to create an animated search bar using HTML and CSS code. The search bar is an important design that is used in every website. There are different types of search bars.

 In some cases, the search bar is completely fixed, in some cases pop-ups, and in some cases animated. In the case of animated search bars, the icon is basically visible. When you click on that icon, the entire search bar is visible. The design I have shown in this tutorial is a complete animated search bar. Normally only icons are seen in this search bar. When you click on that icon, the full search box will appear and you will see the place to input.

 In this case, I have basically used a small amount of JavaScript programming code. You can use the demo below to know how it works.

(more…)

Continue ReadingAwesome Animated Search bar using HTML & CSS

Simple Analog Clock using HTML, CSS and JavaScript

In this article, I will show you how to make an analog clock using HTML CSS and JavaScript programming code. Earlier I made many more types of analog and digital clocks with the help of JavaScript programming code. If you know basic CSS and JavaScript, you can easily create an analog clock

This type of design is largely based on JavaScript programming code. The time that is seen in this case depends on the time of your device. As you can see in the picture above it is a rectangular analog clock. In this, I have added numbers from 1 to 12 which indicate time. Of these I have used three hands, one hand will indicate the time, one minute, and the other the second. I have designed each hand to be a different color. I have used an image to make the numbers that appear in the background.

 If you want to add these numbers manually, you can see another analog watch design I made. Manually I added this number from 1 to 12 to the watch made in that article. Basically in the case of analog clocks, it will take the time of your device once then it will run at its own interval every second.
You can watch the demo below to know better.

See the Pen
analog clock 2
by shantanu jana (@fghty)
on CodePen.

Hopefully from the demo above you know how this digital clockworks. If you want to get the required source code on this watch, you can copy that source code from the section above.

(more…)

Continue ReadingSimple Analog Clock using HTML, CSS and JavaScript

How to Create a digital clock with date using JavaScript

In this article, you are going to learn how to make a digital clock using HTML, CSS, and JavaScript programming code. Earlier I shared with you many more types of analog and digital clock-making methods. In this article, I have shown you how to make a completely simple digital watch design.

 There are basically two types of clock, an analog and a digital. Digital clocks are much easier to make than analog clocks. In this watch, I have added a date with time, not just time. That means together you will see time, date, month, date everything

This design is based on JavaScript programming code. If you know the basic JavaScript programming code then you will definitely know how to make this design.

Simple Digital clock using Javascript [Live Demo]

If you want to know how it works then you can watch the live demo below. From below you can copy the required source code i.e. HTML, CSS, and JavaScript, and use it in your own work.

See the Pen
digital clock 2
by shantanu jana (@fghty)
on CodePen.

If you want to know how to make this digital with the help of video then you can follow the video tutorial below. This is a youtube video where I showed you step by step how I made this digital watch. We hope this tutorial helps you.

How to Create a digital clock using JavaScript 

First of all, you create an HTML and CSS file. You can add CSS code to the Html file using style tags. In this case, I have used a very small amount of HTML and CSS code, so even if you do not create a separate file for the CSS code. 

Step 1: Create the basic structure of the clock

The HTML programming code below is basically the basic HTML structure. You copy the following structure and paste it into your HTML file. The CSS codes below are mainly used to design the background of this digital watch. The CSS code below has helped to create and design the box you saw in the demo.

   <div class=”time”>
       
  </div>
       

body {
    font-family: “Work Sans”, sans-serif;
    margin-left: 50px;
    margin-top: 150px;
    background: rgb(230, 230, 230);
}
.time {
    background: rgb(12, 12, 12);
    color: #fff;
    border: 7px solid rgb(255, 252, 252);
    box-shadow: 0 2px 10px 0 rgba(0,0,0,0.16), 0 2px 10px 0 rgba(0,0,0,0.12);
    padding: 8px;
    text-align: center;
    width: 500px;
}

Step 2: Add time, am / pm, date options (more…)

Continue ReadingHow to Create a digital clock with date using JavaScript

Create Image Slider Using HTML, CSS, and javaScript

In this article, we are going to learn how to create a simple image slider using HTML, CSS, and JavaScript programming code. 

Image sliders are now used for different tasks on different websites. This type of slider is mainly used on the homepage of the website or in the gallery within the website. 

Create Image Slider Using HTML, CSS, and javaScript

Using this type of CSS image slider you can arrange a large number of pictures neatly together. In any case, developers usually think of using different plugins or jQuery to create sliders.

If you want to create an image slider with simple JavaScript without using plugins or jQuery then this article will definitely help you.

Image Slider Using HTML CSS JavaScript

This is a very simple and beautiful image slider. In this case, I have used three images and used the left and right buttons to change them. I have used a border around the simple image slider which indicates the size of this slide well. 

In this case, there is a place to give specific text for each image, which means you can add some information about that image.

If you want to see its live demo, you can see the demo below. From there you can copy the required source code and use it in your own project.



See the Pen
image slider 3
by shantanu jana (@fghty)
on CodePen.

If you want to get the required source code, you can download the required source code using the download button below the article. 

How to Create Image Slider in HTML CSS

If you are a beginner and want to know how I made this design then you should definitely follow the tutorial below. 

Below I have shown which programming code I have used to create any element of this design. This requires you to have knowledge of basic HTML CSS and JavaScript.

Step 1: Basic structure of the image slider

First of all, you have to create an HTML and CSS file. Then attach that CSS file to the HTML file.
Copy the HTML programming code below and paste it into the body section of your HTML file. 

 <div class=”carousel-container”>
        <!–Nav Button(prev, next)–>
        <div class=”carousel”>
         <1–Image item–>      
        </div>
 </div>

The code below is the basic design of the image slider. The following CSS codes have been used to design the background of this slider.

   body{
     background-color: rgb(58, 58, 58);
     margin-top: 100px;
        }
   .carousel-container {
  width: 600px;
  height: 400px;
  position: relative;
  margin: 0 auto;
}



Step 2: Add two buttons to change the image

If you have seen the demo above, you will understand that I have used two buttons to change the images in this slider. The HTML and CSS code below helped to create and design that button.

<div class=”navigation”>
    <div class=”prev nav-btn”><</div>
   <div class=”next nav-btn”>></div>
</div>

.navigation .prev {   position: absolute;   z-index: 10;   font-size: 25px;
  top: 40%;
  left: 10px;
  font-weight: 700;
}
.navigation .next {
  right: 10px;
  position: absolute;
  font-size: 25px;
  z-index: 10;
  top: 40%;
}
.navigation .nav-btn {
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.4);
}
.navigation .nav-btn:hover {
  background: white;
}

Step 3: Add images to the slider using Html code (more…)

Continue ReadingCreate Image Slider Using HTML, CSS, and javaScript

Sidebar Menu Using HTML, CSS & JavaScript

Sidebar Menu Using HTML, CSS & JavaScript

In this article, you will learn how to create sidebar menus using HTML, CSS, and JavaScript programming code. I have designed many more sidebar menus before. Hope you like these sidebar menus like those designs. 

In this case, I have used HTML to build and CSS programming code to design. In this case, a small amount of JavaScript has been used to activate the menu button. If you want to create a sidebar menu without JavaScript programming code, you can see the other designs I made. Clicking on the menu button here will hide the entire menu bar. 

When you click on that button again, the full menu bar will appear. This sidebar menu is designed in a modern way and has everything you need to make a sidebar beautiful and attractive. 

Sidebar Menu Using HTML CSS JavaScript

First of all, here I used a profile image. Below that is a place to give names and descriptions. Below that, I have added many menu items here. I added icons to each menu item. Adding icons makes menu items look more beautiful and attractive.

If you want, you can change these menu items to your liking. Here in the background, I have used blue color(background: rgb(5, 68, 104);) and added a hover color effect on menu items. The icons will change the background when you hover or click on the menu items. The sidebar menu is a very simple and simple design that you can undoubtedly learn to make very easily. 

If you want to see a live demo of this structure, you can see the demo section below. You can also copy the required source code from there and use it for your own purposes.

See the Pen
side bar menu
by shantanu jana (@fghty)
on CodePen.


(more…)

Continue ReadingSidebar Menu Using HTML, CSS & JavaScript

Build a Simple Digital Clock with JavaScript, HTML and CSS

Build a Simple Digital Clock with JavaScript, HTML and CSS

In this article, I have shown you how to create a digital clock using HTML, CSS, and JavaScript programming code. If you are a beginner and want to know how to make a digital clock using JavaScript programming code, you can definitely find out from this article. 

Earlier I made many more types of watches like analog, digital, etc. You can see those designs if you want. It is made very commonly. There are three types of time such as hour, minute, and second. Similarly here you can see three types of time.

(more…)

Continue ReadingBuild a Simple Digital Clock with JavaScript, HTML and CSS