Bootstrap 4 Navbar with Slider

The Homepage is the default page of any website. When someone visits a particular website address, this is the main page see at the very first moment. We can call it the starting point of the website. The website's Homepage is much more important than we think. It creates the first impression among the visitors and encourages them to visit the rest of the website. This blog will share a snippet based on creating a responsive homepage design with Bootstrap four and animate CSS.


Bootstrap is one of the most potent open-source and free HTML CSS and js framework for developing responsive website design. It consists of lots of design templates on the navigation bar, forms, carousels, buttons, etc. Indeed Bootstrap saved hundreds of hours of the developers to create a website. Bootstrap has got a couple of versions available, and for this snippet, we will use the four versions. I will encourage you to follow the below tutorial from start to finish and have some idea about the coding that has been used to do this project.



I hope you have watched the entire video and understand the necessary coding behind it. I have first linked the Bootstrap four CDN, jquery CDN, and animate CSS CDN in the project. After that, you have to click the top bar's documentation, and then from the left menu, click on components. Select the navbar from there. I have applied the default navbar template from there in my project. Now initially, the navbar will contain a logo, a left navbar, and a search box. I eliminated the search box codes and all nav items of the left navbar; apart from 'Home, I created my navbar, adding some more nav items like about, portfolio, services, and contact. I have added a bootstrap four class called 'ml-auto' to the unordered list 'navbar-nav,' This class will take the left navbar to the right. 

You may also like:

From the Bootstrap four website components, I have clicked the carousel and copied the carousel code with captions and indicators. Then I have added some random images for the carousel. I have also added a header text, some paragraph text, and a call-to-action button.

Let's Move to the CSS. First, I have given the 'carousel-item' class a height of 100vh and a minimum height of 300px. Initially, the caption text will be a the bottom of the webpage, but for moving it in the middle of the carousel, I have given a bottom value of 220px for the 'carousel-caption' class. After that, I have applied some basic CSS to style the rest of the project elements.  I have also made some changes in styling for the project's responsive looks in the small devices. Now for making the carousel caption-text animating, I took the help of animate CSS. I have added the animation of my choice for each element of the carousel caption. Now the problem is all items are animating at the same time. For making the item animate one by one, I have added an animation-delay value for each element.

Bootstrap 4 Homepage with text animation ( Source Code ):

for creating this project, you have to create an HTML and CSS file and put the codes below in those, and save. Make changes according to your choice if necessary.

ADD HTML




ADD CSS 




I hope you liked the project. Please follow the social media profiles of this blog to stay connected with this blog. Thanks for stopping by, and keep visiting.

Post a Comment

Please Do not Enter any spam link in the comment box