javascript portfolio navigation

How we can create simple portfolio navigation using HTML CSS JavaScript? Solution: See this JavaScript Portfolio Navigation With CSS UI, Simple Category Filter.

Previously I have shared a similar program named portfolio filter gallery, but this is a little advance if we compare. Basically, This type of portfolio navigation you will see on most of the websites. And business owners create this navigation for managing portfolio items in category bases. If a website has 3 workers and all workers have submitted their work in the portfolio section, then you can filter out by any selected worker using this program.

Today you will learn to create Simple Category Filter for website’s portfolio section. Basically, there are 9 dummy images, a title, 3 categories navigation, and extra navigation to showing all images. At first, you will is all image with blur effect when you will hover on it then it will back to normal. And when you will click on any category, then only those images will clearly visible which are in the category and others will still blurred.

So, Today I am sharing JavaScript Portfolio Navigation With CSS UI. For creating this program I have used pure JavaScript, not any library or framework I have used. And the design or UI is based on CSS so, You can call this a pure HTML CSS JS program. You can use this program on your website as well, and also this will a good practice for you if you are a beginner.

If you are thinking now how this portfolio navigation actually is, then see the preview given below.

Preview Of Simple Portfolio Category Filter

See this video preview to getting an idea of how this category filter looks like.

Live Demo

Now you can see this visually, you also can see it live by pressing the button given above. If you like this, then get the source code of its.

You May Also Like:

JavaScript Portfolio Navigation With CSS UI Source Code

Before sharing source code, let’s talk about it. First I have created a main div and put a list inside it using HTML <ul> & <li> tags and put another div for placing images. I have placed 9 dummy images using Lorem Picsum, this is dummy image provider service. Every single image I have placed inside a figure tag because putted class names inside the tag.

Now using CSS I have placed all the elements in the right place, as you can see in the preview. With CSS, I gave all the important things to design like size, color, font, etc. There I have used a google font for the heading line, and others are normal. For creating responsive design, I gave all the elements a max-width and content’s width in percentage also I have used CSS @media query.

JavaScript managing the main feature of this program. Basically, JS adding and removing the CSS values to functioning this program. JS code is a little complicated, I can’t explain here in writing. You will understand after getting the codes if you have knowledge of JavaScript. For creating this program you have to create 3 files for that. First for HTML, second for CSS, and the third for JavaScript. Follow the steps to creating this without any error.

index.html

Create an HTML file named ‘index.html‘ and put these codes given below.

style.css

Now create a CSS file named ‘style.css‘ and put these codes given here.

function.js

The last step, Create a JavaScript file named ‘function.js‘ and put the codes.

That’s It. Now you have successfully created JavaScript Portfolio Navigation With CSS UI, Simple Category Filter. If you have any doubt or question comment down below.

Thanks For Visiting, Keep Visiting.

LEAVE A REPLY

Please enter your comment!
Please enter your name here