Responsive Homepage design with Bootstrap and Animate css

Hello friends, today, I will be sharing a responsive homepage design snippet made using HTML, CSS, and Bootstrap framework. I have used the bootstrap version of 3.3.7 to make this program. The homepage is the entry point of any webpage, and it helps the visitor to discover the pages inside the website. If we can make the homepage eye-catching, then there is a chance that the visitor will explore more of the website. There is a saying that the first impression is the best impression. Bearing that in mind, we have to be extra careful while we design our website homepage.

For designing the project, you have to download the bootstrap CSS and js file from their website and add them to your project. Besides, you have to add animate CSS so that you add the text animation we are making here for the bootstrap slider. You need to add the latest jquery file for the bootstrap slider to work. For the sake of this snippet, I am using CDN versions of each file, but you can add them by downloading it.

First, I will start with HTML markup. I have taken a header tag then implemented the basic bootstrap premade navbar snippet from their website. From there, I have discarded the navbar from the left and the form because I don't need those for this project. I have added a 'navbar-fixed-top' and a 'navbar-inverse' bootstrap class to nav. I have added five nav-items, namely home, about, portfolio, services, and contact, inside the 'navbar-right' unordered list. For the 'navbar-brand,' I have taken a random text named 'Franco.' You can use any name of your choice or a png logo image here. Then I went back to bootstrap's website copy and paste the bootstrap carousel code and paste that underneath the bootstrap nav element. Inside each 'item' div element, I have created a custom div named 'banner' and provided a background-image using inline CSS. for the 'carousel-caption,' i have used an h2,h3, and a p tag where I put the call to action button. For better understanding, I will highly suggest you follow the below tutorial from start to finish and then continue with the rest of the parts here.

I suppose you have watched the entire video and have some idea what I am talking about. If the answer is yes, then let's move to the CSS part of this project.

You may also like: 

In the CSS part, I have taken Poppins as the primary font and added that to the body tag. Then I have given the 'item' div a height of 100vh. I made the border color and background color transparent for the 'navbar-inverse' class. After that, I adjust the 'navbar-brand' by giving it a color, font-size, padding, and font-weight. I then gave 'navbar-right' a margin so that the nav-items align properly. Then I styled the nav-items and banner images that are used to make the bootstrap slider. Initially, the default bootstrap slider caption will be at the bottom of the slider. I gave the 'carousel-caption' a padding-bottom value so that the caption elements come in the middle of the homepage. later, I styled the rest of the elements of the 'carousel-caption.'

For making the snippet responsive, I have changed some values of some elements in CSS media-queries so that the snippet fits nicely in the smaller devices. After I have designed the homepage, I went to animate the CSS website and choose some animation from there, and added those to the h2,h3, and p tag of the 'carousel-caption.' for the animation to happen one after another, I have added a different animation-delay value to each item of the 'carousel-caption' class.

Responsive Homepage Design with bootstrap and animate CSS (Source Code):

to create this snippet, you have to create one HTML and one CSS file; after adding the necessary files that are required for this project, copy the code below and paste them to the respective file.



I hope you liked this snippet. For more, please follow my social media profiles and subscribe to the divinector youtube channel, and stay connected. Thanks for stopping by, and keep visiting.


Please Do not Enter any spam link in the comment box

Post a Comment

Please Do not Enter any spam link in the comment box